PDA

View Full Version : Normalize always normalizing to 1.0?


Janzki
8th January 2006, 15:20
I'm trying to normalize the audio of an AVI clip (PCM 44.1 kHz, rendered from Vegas Video 6). However, Normalize() in AviSynth always seems to amplify the audio to the maximum value possible. I tried Normalize(0.98) and Normalize(0.85). When I looked at the results in a wave editor, both clips came out the same. The file sizes are identical too. Am I doing something wrong here?

Mug Funky
8th January 2006, 15:36
you could work around it with:

normalize().amplify(.98)

or

normalize().amplifydb(-1)

you might also want to convert to float before doing any gain operations, and back to 16-bit after. this doesn't affect doing 1 operation (normalize), but will prevent rounding errors if you're doing more than 1 (like the amplify after normalize).

happy audio adventures :)

btw, depending on where your video is going, it's not good practise to normalize to fullscale or anywhere near it. generally you'll want your average level at -20dB and your peak at around -10. of course if it's just for home use do whatever you want :) but you may need to reach for the volume knob if you're watching a DVD afterward.

Janzki
8th January 2006, 15:44
How did I not think of combining Normalize and Amplify...

:thanks:

IanB
9th January 2006, 13:04
Many Normalize bugs, including this one, have been fixed in the latest release, 2.5.6