View Full Version : Quick Question About Subtitle
EpheMeroN
13th February 2005, 09:20
I have a short video that I wanna use Subtitle() on to create a quick and easy few-second long intro with to give the video an opening title. When I just use Subtitle(text) it displays it in a tiny font at the top left of the video. How can I center the text in the middle of the screen, change the color from default of yellow to white, and have it displayed for a select number of frames, i.e. 120 frames? I want to fade it in and out as well.
manono
13th February 2005, 09:54
Subtitle Filter Parameters (http://www.avisynth.org/Subtitle)
I'm not quite sure how to make it Fade In/Out. Perhaps you can make it Fade In and Out with the Fade (http://www.avisynth.org/Fade) filter. If you can't get it going, I'm sure there are some guys in this forum that know more about it than I do.
Rather than just have it sit there, you can do some interesting things. Here's a few I've collected:
An animated Text:
blankclip(240)
Animate(1,100,"Subtitle", last,"TEXT SCROLLING AT 24 FRAMES PER SECOND",-100,100,0,99999,"Arial",24, last,"TEXT SCROLLING AT 24 FRAMES PER SECOND",1000,100,0,99999,"Arial",24)
Another Animated text:
blankclip(length=180,color=$1e3278)
Animate(1,120,"Subtitle", last," m a n o n o",640,320,0,99999,"Arial",120,$990000,$33FF00, last," m a n o n o",50,300,0,99999,"Arial",120,$990000,$33FF00)
Another scrolling Text:
blankclip(length=225,color=$1e375a)
Animate(1,150,"Subtitle", last," m a n o n o",640,320,0,99999,"Arial",285,$990000,$33FF00, last," m a n o n o",50,300,0,99999,"Arial",285,$990000,$FFFF00)
AssumeFPS(29.970)
You'll have to adapt each one for your needs (framerate for instance).
Here's Animate (http://www.avisynth.org/Animate) (very handy for making cool subtitle texts), and here's BlankClip (http://www.avisynth.org/BlankClip) (which you probably don't want or need).
matrix
13th February 2005, 15:35
subtitle("My Movie",-1,-1,0,900,"arial",30,$ffffff)
White font, size 30, from frame 0, to 900.
EpheMeroN
13th February 2005, 23:49
subtitle("My Movie",-1,-1,0,900,"arial",30,$ffffff)
That works swell. Thanks. How'd you manually adjust it for it to be perfectly center? I'd like to know for future use. Also, is AviSynth's Subtitle() good just for one line? Or can I do a line break with it and have 2-3 lines of text as well?
@manono: Thanks for all those animated functions. I'll play with those when I get more time.
stickboy
14th February 2005, 02:05
Originally posted by EpheMeroN
That works swell. Thanks. How'd you manually adjust it for it to be perfectly center? I'd like to know for future use.Read the Subtitle documentation (http://www.avisynth.org/Subtitle):
The x and y parameters can be set to -1 to automatically calculate and use the horizontal or vertical center coordinate.
and there's also:
The align parameter allows you to set where the text is placed relative to the (x,y) location and is based on the numeric keypad as follows: ...
IanB
14th February 2005, 03:35
@EpheMeroN,
Use Dissolve() to make the clip fade into and out-of itself with titles.F=24 # Fade count
Mov=AviSource(...)
St=Mov.subtitle("My Movie",-1,-1,0,900,"arial",30,$ffffff)
Dissolve(Mov.Trim(0, -F), St, F) # This Fades In
Dissolve(Trim(0, -900), Mov.Trim(900-F, 0), F) # This Fades Out
IanB
trolltuning
14th February 2005, 15:17
You might want to take a look at a plugin called subtitleEx,
I find it useful if I want more than one line of text especially if I want to use any effects with the text. The author has full documentation on his site.
Wilbert
14th February 2005, 15:33
... and he broke the GPL :angry:
niamh
14th February 2005, 15:48
Here's a script I collected for fade in/out:
#first part for fade in
#
vn=last
#
#logo parameters
Subtitle(first frame, last frame bla bla bla)
#
vl=last
# fade in parameters
Start=0 # Set frame to start fade in
End=150 # Set frame to end fade in
vAn=Trim(Vn, 0, Start-1)
vBn=Trim(Vn, Start, End)
vBl=Trim(Vl, Start, End)
vCl=Trim(Vl, End+1, 0)
vAn + Dissolve(vBn, vBl, End-Start+1) + vCl
#second part for fade out
#
vn=last
# logo parameters
Subtitle(first frame, last frame, bla bla bla)
#
vl=last
#fade-out parameters
Start=350 # Set frame to start fade in
End=500 # Set frame to end fade in
vAn=Trim(Vl, 0, Start-1)
vBn=Trim(Vl, Start, End)
vBl=Trim(Vn, Start, End)
vCl=Trim(Vn, End+1, 0)
vAn + Dissolve(vBn, vBl, End-Start+1) + vCl
#
I will try and find who'd posted it in the first place so I can mention them.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.