Help - Search - Members - Calendar
Full Version: WaveGain prior or --scale during encoding
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
timcupery
I've seen a number of comments here claiming that, if you want an mp3 file to have a gain value not available in increments of 1.5 dB, that it's better to use the scale command during encoding (e.g., --preset medium --scale 0.83) than to use WaveGain to lower the volume of the wav files before encoding them. The justification for using --scale instead of WaveGain is that WaveGain is a slightly lossy process, while --scale is not.

However, it seems to me that the processes would be equivalent. That is, WaveGain calculates new sample values that are some multiplicative of the old. Which is exactly what I expect --scale does to the sample values as it is encoding them to mp3. The only way I can see that --scale is preferable to WaveGain is that --scale might not be limited by 16-bit audio, while WaveGain necessarily transforms a 16-bit wav into another 16-bit wav.

Any illumination or debate on this point would be helpful to me and others. Thanks.

[And yes, I realize that the new ReplayGain APE tags allow infininite incrementalization; I would use them if there were an easier way to modify them, so that I could set a louder album's target bitrate to 90.5 dB, for example. If there is an easier way to do this, I'd appreciate the knowledge. But even so, most current mp3 players won't read APE replaygain tags, so I like having a file that ahs the volume I desire independent of tags.]
2Bdecided
Hi Tim,

QUOTE
The only way I can see that --scale is preferable to WaveGain is that --scale might not be limited by 16-bit audio, while WaveGain necessarily transforms a 16-bit wav into another 16-bit wav.


Yes, that's the point. --scale is carried out using floating point arithmetic.


If you read this read:
http://www.hydrogenaudio.org/forums/index....showtopic=10637
...you'll know all there is to know!

Cheers,
David.
john33
QUOTE(timcupery @ Apr 27 2004, 11:41 AM)
The only way I can see that --scale is preferable to WaveGain is that --scale might not be limited by 16-bit audio, while WaveGain necessarily transforms a 16-bit wav into another 16-bit wav.

It's not quite as simple as that. It rather depends on the input options of the encoder as WaveGain's calculations are performed after conversion to float and a full range of output bitwidths is supported.
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.