View Full Version : Fade sound video separately?
squadjot
30th April 2009, 16:42
DirectShowSource("myfile.wmv")
Trim(24875,25375,false)
FadeIn(15)
FadeOut(15)
So far this works..but not quite what i want.
I want the video to fade out before the sound.. and give the sound have a longer fade.. In the end i want the sound to continue, just a sec or two after the video did fade to black.
VIDEO: _.----------.____
AUDIO: _.--------------._
How to do that? =)
Gavino
30th April 2009, 17:06
Replace FadeOut(15) by
AudioDub(FadeOut(15), FadeOut(n))
where n is the no of frames corresponding to the audio fade time (n< 15).
squadjot
30th April 2009, 22:27
Hmm..thank's but not what i want.
1. Lets say i have 500 frames of video and sound
2. I want to fade the video to black at frame 350 , and at frame 375 its all black..
3. The sound starts fading out at 400, and is completely faded at frame 500
stickboy
30th April 2009, 22:37
Use a combination of Trim, FadeOut, and AudioDub.
squadjot
1st May 2009, 01:23
:/ .. i can't figure out how.. damn!
What if i had a video containing only black with no sound.. could i make a transition to that..and then fade sound a couple of seconds after?
JohannesL
1st May 2009, 01:36
Hmm..thank's but not what i want.
1. Lets say i have 500 frames of video and sound
2. I want to fade the video to black at frame 350 , and at frame 375 its all black..
3. The sound starts fading out at 400, and is completely faded at frame 500
org = AVISource("500Frames.avi")
trm = org.Trim(0,375).FadeOut(25) ++ org.BlankClip(125)
AudioDub(trm,org.FadeOut(100))
squadjot
1st May 2009, 03:14
Thanks alot guys, especially JohannesL for forming out the script for me.
I didn't try much off the OOP approach of the scripting..but cool..this will be a good way to start..
THANKS!
squadjot
1st May 2009, 15:22
Oke, i now implented it in my project nad it works, just like i wanted
org = DirectShowSource("movfil.wmv")
clip = org.Trim(24875,25375,false)
trm = clip.Trim(0,375).FadeOut(25) ++ org.BlankClip(125)
AudioDub(trm,clip.FadeOut(100))
I'm still quite unclear about how AudioDub works tho...
squadjot
1st May 2009, 15:25
Hmm.. after looking a bit, i guess it's simple?
AudioDub(VideoSource,AudioSource) ?
JohannesL
1st May 2009, 17:37
Correct. For information about every built-in AviSynth function, please refer to the MediaWiki.
http://avisynth.org/mediawiki/AudioDub
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.