Help - Search - Members - Calendar
Full Version: Converting 'Normalize' (db) output to use with --scale (lame)
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
AudioMolester
Could anyone tell me how to convert the oputput from 'normalize' (Decibels) to use with the --scale option in 'lame'

For example I have this 'normalize' output
QUOTE

[Bobby@NoIP]$ normalize -n 15\ - example audio.WAV
Computing levels...
level peak gain
-16,7914dBFS -1,0410dBFS 4,7914dB 15 - example audio.WAV


And I want to get a number out of this to use with the --scale option in the 'lame' encoder.

Any hints ?
haregoo
WaveGain

I prefer foobar2000 Diskwriter with "Use Replay Gain".
These are essentially same procedure.
iGold
Yes, use WaveGain instead of normalize.
See this topic and this post in it.
c15zyx
You can use a simple shell script:

album mode:
CODE
GAIN=$(wavegain -a -p -x *.wav);
for all in *.wav
do
    lame --scale $GAIN "$all";
done

radio mode:
CODE
for all in *.wav
do
    lame --scale $(wavegain -p -x "$all") "$all";
done


or simply for a single file:
CODE
lame --scale $(wavegain -p -x file.wav) file.wav


Edit: radio gain is done for each file.
AudioMolester
Thanks everyone who replied. I'm encoding mostly speech CDs so I'l be using the "Albun mode" of WaveGain, neat tool but took a while to find cool.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.