Log in

View Full Version : subtitle fade


3dfiction
4th August 2009, 14:07
dear friends, i just want adding effects fadein, fadeout to my subtitles. i tried with several parameters but no chance.

some of my tests

v01=AviSource("fr01.avi")

sub1=Subtitle(v01,"Some Text...", font="arial", first_frame=0, last_frame=300)

sub1.Animate(0,300,"Levels",0,1,255,0,0,0,1,255,0,255)


its affect whole animation not just to subtitle. i also tried with fadein command and same issue, affecting to whole video.

i also tried like this

AviSource("fr01.avi")

Animate(0,300,"Subtitle", "Some Text...",160,120,0,300,"Arial",24,$FFFFFFFF,
\ "Some Text...",160,120,0,300,"Arial",24,$00FFFFFF)

the first 2 character of color meaning opacity. FF=full transparent, 00=full opaque

but not animated from full transparent to full opaque, just animating the font colors (and like randomly)

please help...

thanks in advance...

JohannesL
4th August 2009, 14:12
SubtitleEx has a fade effect.
SubtitleEx("Text Here",effects="b,f(inframes,outframes)")

3dfiction
4th August 2009, 14:29
thanks a lot JohannesL. just superb :))

IanB
4th August 2009, 16:55
Also Dissolve() can be used to fade between a subtitled version of a clip and the original.v01=AviSource("fr01.avi")

sub1=Subtitle(v01,"Some Text...", font="arial", first_frame=0, last_frame=300)

Dissolve(v01.Trim(0, 299), sub1, 300)
To fade the text in and out with a 50 frame fade and 300 frame total duration:-
Dissolve(v01.Trim(0, 49), sub1.Trim(0, 299), v01.Trim(250, 0), 50)Note 0 to 299 is 300 frames!