Hello, I have this simple counter in Avisynth, I would like to add a rectangle somewhere on the screen around the text, say 8 pixels thick, is it possible to do that?
Code:BlankClip(width=640, height=360, length=1, fps=1, color=$FFFFFF) Subtitle("2010 - 64", size=150, x=30, y=100, text_color=$0000ff) \ ++ Subtitle("2011 - 71", size=150, x=30, y=100, text_color=$0000ff) \ ++ Subtitle("2012 - 86", size=150, x=30, y=100, text_color=$0000ff) \ ++ Subtitle("2013 - 90", size=150, x=30, y=100, text_color=$0000ff) \ ++ Subtitle("2014 - 97", size=150, x=30, y=100, text_color=$0000ff)
+ Reply to Thread
Results 1 to 3 of 3
-
-
I'll leave it up to you to fine tune positions and sizes:
Code:BlankClip(width=640, height=360, length=1, fps=1, color=$FFFFFF) Subtitle("2010 - 64", size=150, x=30, y=100, text_color=$0000ff) \ ++ Subtitle("2011 - 71", size=150, x=30, y=100, text_color=$0000ff) \ ++ Subtitle("2012 - 86", size=150, x=30, y=100, text_color=$0000ff) \ ++ Subtitle("2013 - 90", size=150, x=30, y=100, text_color=$0000ff) \ ++ Subtitle("2014 - 97", size=150, x=30, y=100, text_color=$0000ff) # add a red outline box around the text: boxmask = BlankClip(width=600, height=130, color=color_black).AddBorders(8,8,8,8,color=color_white) boxcolor = BlankClip(boxmask, color=color_red) Overlay(last, boxcolor, x=10, y=100, mask=boxmask)
[Attachment 62415 - Click to enlarge]
Similar Threads
-
How to use AviSynth
By ningnong132 in forum Newbie / General discussionsReplies: 5Last Post: 3rd Feb 2021, 19:47 -
FFMpeg Text Draw on Different Position
By Daringbaaz in forum Newbie / General discussionsReplies: 7Last Post: 2nd Dec 2020, 07:12 -
Need help on Avisynth
By SwaYzY in forum RestorationReplies: 7Last Post: 19th Sep 2020, 22:51 -
Creating Subtitles Surrounded by Transparent Rectangle Frame
By devilcoelhodog in forum SubtitleReplies: 17Last Post: 27th Aug 2019, 08:39 -
AVIsynth - Please Help!!! :(
By DiggyDre in forum RestorationReplies: 10Last Post: 14th Feb 2019, 09:13