Log in

View Full Version : How can I apply a fadeout-type effect on an audio file?


Chainmax
3rd November 2006, 01:32
I'm currently creating a DVD for my brother out of some family footage and want to create a nice animated intro. I intend for it to have a ~1min music clip as a background. Thing is, the beginning and ending of said clip don't flow smoothly which would make a loop quite jarring.
I think some kind of fadeout applied to the end of the file would solve the problem but have no idea how to do it. I can use Nero Wave Tools or Audacity for the task. If it's any help, here are two small samples of the beggining and end:


http://rapidshare.com/files/1751394/Beginning.wav.html

http://rapidshare.com/files/1751391/Ending.wav.html

Mug Funky
3rd November 2006, 02:13
fadein()/fadeout() in avisynth does the audio too. you can try something like this:

audiodub(last,last.fadein(5).fadeout(5))

or just use an audio program, then you'll find hundreds of ways to do it and get it perfect. it's not hard.

Chainmax
3rd November 2006, 12:13
If FadeIn/FadeOut works for audio too then that's not what I'm looking for, as they work by fading out from within the file. What I'm looking for is something that starts fading out at the end of the files and finishes reaches silence an x amount of seconds later. I'll try to see if Nero Wave Editor or Audacity can do this, but in the meantime I'd like to hear suggestions.

Chainmax
8th November 2006, 00:09
Nero Wave Editor can't do it. It can do a FadeOut on selected range, but what I need is a FadeOut that begins at the end of the file and ends in silence an x amount of second later.

scharfis_brain
8th November 2006, 00:51
dissolve() is your friend...

dexy
8th November 2006, 01:37
You can apply fade out to video and/or audio separatelly using adobe premier, even with some earlier versions, it s easy. I do not recommend to you to use only audio fade out, exept in some cases.

Ebobtron
8th November 2006, 05:22
@Chainmax
I don't what to to be bitchy (Ok, I am often bitchy), but I can not compile the question. I downloaded your clips. ??

There is real professional help here. I was a sound and control engineer, others here currently work in the digital audio and video fields. Your answers are here but you must ask a question.

I admire your english I never learned enough french to write it.
Never studied mind reading either.

Explain please why you wish to fade nothing, which is what you describe.
What I'm looking for is something that starts fading out at the end of the files and finishes reaches silence an x amount of seconds later.

I am going to guess "scharfis_brain" nailed it.

Chainmax
8th November 2006, 05:32
scharfis_brain: I tried this

a=WAVSource("X:\wherever\Intro - Fixed.wav")

b=WAVSource("X:\wherever\Intro - Fixed.wav")

Dissolve(a,b)

and got an error message saying no video stream was found, but the documentation mentions the possiility of an audio-only stream. Also, if I add ,overlap=something, I get an error message saying that Dissolve doesn't have a named argument "overlap" although the documentation mentions it. What's going on?


dexy: I don't need to fade the video, just the audio so that it loops seamlessly.


[edit]Ebobtron, what I'm asking is actually quite simple: I want to alter a sound file so that it can loop seamlessly. I figured a good way to do so would be to add, say, 1s to the file during which the ending would fade to silence. No need for mind reading or advanced english studies (or credential-flaunting and belittlement either) are needed to interpret my question, as evidenced by scharfis_brain's reply which perfectly suits my needs.

Ebobtron
8th November 2006, 07:19
@Chainmax
If your playing a quessing game you might acknowledge the quote from my post.
I am going to guess "scharfis_brain" nailed it.

I noted that I was being a bit bitchy, about the quality of the question. I admired your command of written english. Should I have said "please, let me help you".

No need for mind reading or advanced english studies (or credential-flaunting and belittlement either) are needed to interpret my question, as evidenced by scharfis_brain's reply which perfectly suits my needs.It needs only a guess.

So my current guess is that, Dissolve doesn't have a named argument "overlap". And Dissolve needs video, other things do too.

I have the information you need, but I would rather apologize for having asked you a question about your question.

Chainmax
8th November 2006, 16:25
...
I noted that I was being a bit bitchy, about the quality of the question. I admired your command of written english. Should I have said "please, let me help you".

Your answer felt sarcastic to me (how else would you qualify "I admire your english I never learned enough french to write it"?) and I reacted to that.


...
So my current guess is that, Dissolve doesn't have a named argument "overlap". And Dissolve needs video, other things do too.

I have the information you need, but I would rather apologize for having asked you a question about your question.

I'm not sure what named argument means, but the documentation lists it as an argument as it also names the possiility of audio-only clips, so I don't know what am I doing wrong.

Ebobtron
8th November 2006, 17:41
Your answer felt sarcastic to me (how else would you qualify "I admire your english I never learned enough french to write it"?) and I reacted to that.
Again my apologies, this time for my poorly written compliment. I admire your English"." My second Lang is French, but I never learned well enough to write French"."


I'm not sure what named argument means, but the documentation lists it as an argument as it also names the possiility of audio-only clips, so I don't know what am I doing wrong.

Taken from AviSynth Doc $Date: 2005/01/21 07:48:43 $
"Dissolve (clip1, clip2 [, ...], int overlap, float "fps")"
I see no "=" in the above, I believe it means "named argument not"

Dissolve(a,b,50,25) mixing a into b the result is 50 frames shorter the a+b

overlap=something
named was a hint. You can not do hints?

Happily, I don't know if dissolve's support for audio is working, and I don't care. Learn how to use blankclip, then the fades and trim work.

Read, experiment, experiment, experiment, learn.

If I can apologize for something else, please, let me know.

jdrumstik
8th November 2006, 19:34
Well, Maybe I'm missing something but wouldn't it be a lot easier to simply extract the aduio in virtualdub and then use the fade effects in audacity and overlap the two tracks. Or just fade out if you want.

dexy
9th November 2006, 00:34
Yes, extract the audio and then apply fadeout in sound forge or some similar program, then bring back the audio to video again.