Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th August 2009, 14:07   #1  |  Link
3dfiction
Registered User
 
Join Date: Jun 2005
Posts: 11
subtitle fade

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...
3dfiction is offline   Reply With Quote
Old 4th August 2009, 14:12   #2  |  Link
JohannesL
AviSynth/x264 user
 
JohannesL's Avatar
 
Join Date: Jan 2009
Posts: 149
SubtitleEx has a fade effect.
Code:
SubtitleEx("Text Here",effects="b,f(inframes,outframes)")
__________________
archlinux
JohannesL is offline   Reply With Quote
Old 4th August 2009, 14:29   #3  |  Link
3dfiction
Registered User
 
Join Date: Jun 2005
Posts: 11
thanks a lot JohannesL. just superb )
3dfiction is offline   Reply With Quote
Old 4th August 2009, 16:55   #4  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
Also Dissolve() can be used to fade between a subtitled version of a clip and the original.
Code:
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:-
Code:
Dissolve(v01.Trim(0, 49), sub1.Trim(0, 299), v01.Trim(250, 0), 50)
Note 0 to 299 is 300 frames!
IanB is offline   Reply With Quote
Reply

Tags
subtitle

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.