PDA

View Full Version : Normalize audio with Avisynth and VirtualDub


vigi_lante
6th April 2004, 14:21
I would like to know which option in VirtualDub I need to select so I can normalize the audio correctly with a Avisynth script.

For example:

I write these lines in my Avisynth script...

video = AviSource("C:\video.avi")
audio = WavSource("C:\video.avi")
audio = Normalize(audio, 0.95)
return AudioDub(video, audio)

Now, inside VirtualDub, what I need to select on Audio tab ? Considering that I want to do a two pass encode...

On the fist pass...I know that I need to select: Audio -> No Audio

But what I need to select in the second pass ? Considering that I want that Avisynth normalize the sound and VirtualDub to compress it ?

Thanks!

Ark
6th April 2004, 15:37
You can more simply encode only the video vith VDub and the audio with Besweet (see the Audio encoding related section on this forum here (http://forum.doom9.org/forumdisplay.php?s=&forumid=11) ).

Besweet can easily normalize the track (and do many other things) and recompress it to wav, mp3, ogg vorbis and others.

So you can open the .avi in vdub and save only the audio part to a .wav file, then open it in Besweet, reencode it, and mux recompressed audio and video again with vdub.

P.S. Are you from Italy??

Wilbert
6th April 2004, 15:42
AviSource("C:\video.avi")
Normalize(0.95)

probably also works. Just select mp3 (or whatever) in vdub on BOTH passes. You can also do what Arky says.

Arky
7th April 2004, 19:04
I said that?! :p


Arky ;o)

vigi_lante
13th April 2004, 21:22
Thanks everyone. But after some tests, Adobe Audition (aka Cool Edit) handle the job pretty well. Mainly to cut off commercials based on the waveform (never trust in your eyes).