Log in

View Full Version : Fade out / Fade in


safigo
7th November 2002, 11:49
Hi!
First of all, I'm sorry for my english; it isn't very good. In second place, I don't know if I should post here the next question, so I'm sorry again.

And the question is:
I've got a movie in 2 cd's. Is there any program able to make fade out and fade in at the end and at the beggining of the movie, respectively? Because I wouldn't want to finish and start the movie abruptly. So, is there any program able to make fade out/in?

Thanks.

hakko504
7th November 2002, 12:15
Chris LaRosa (http://www.geocities.com/cplarosa/video/) has a filter called Tweak for VirtualDub that can provide FadeIn/FadeOut. The latest build of AviSynth (2.06+) (http://cultact-server.novi.dk/kpo/avisynth/avs_cvs.html) also has both FadeIn and FadeOut.

jorel
13th March 2003, 09:28
@ hakko504
:)
help me please.

i need a script for fade in/out for video and audio to make transitions.

after search using the word "fade",i found lots of threads.
safigo post this page with the same answer:
http://forum.doom9.org/showthread.php?s=&threadid=37279&highlight=fade
and nobody answer him.

the page in the link and this page here,i found after 59 threads that the search found.
in all others have the word "fade"...but nothing about how to use the fade.
i read in avisynth site,but don't understand things like this:

"FadeIn(clip clip, int num_frames [, int color])
FadeIO(clip clip, int num_frames [, int color])
FadeOut(clip clip, int num_frames [, int color])

FadeIn2(clip clip, int num_frames [, int color])
FadeIO2(clip clip, int num_frames [, int color])
FadeOut2(clip clip, int num_frames [, int color])"

for me it's really complicated.
i need a sample script cos i really don't understand how i can do it
and with a sample script,will be easy for me!

thank you in advance!
:)

hakko504
13th March 2003, 10:33
Sample script... Well, something like this maybe.#Set playspeed of video. 30fps => 1m24s clip.
videospeed=30

#load version clip (built in as RGB24)
video1=version().assumefps(videospeed).killaudio()
#Extend the clip
video1=video1+video1+video1+video1
#Get some properties
cliplength=video1.framecount
addwidth=(640-video1.width)/2
addheight=480-video1.height
#Scroll the clip down and up, fading in/out at the top.
part1=animate(0,cliplength,"addborders",video1,addwidth,0,addwidth,addheight,video1,addwidth,addheight,addwidth,0).fadeIn(30)
part2=animate(0,cliplength,"addborders",video1,addwidth,addheight,addwidth,0,video1,addwidth,0,addwidth,addheight).fadeOut(30)

#Load colorbars (built in as RGB32)
video2=colorbars(part1.width,part1.height).killaudio().assumefps(videospeed).convertToRGB24()
#fade 10s both in and out
part3=video2.trim(0,300).fadeIO(60)

#return all
return(part3+part1+part2+part3)

jorel
14th March 2003, 00:20
hakko504,

:)

thank you very much!

now i'm trying to learn with your sample!

;)