IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
WaveGain prior or --scale during encoding, are they really different?
timcupery
post Apr 27 2004, 12:41
Post #1





Group: Members
Posts: 607
Joined: 19-December 01
From: Tar Heel country
Member No.: 683



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.]
Go to the top of the page
 
+Quote Post
2Bdecided
post Apr 27 2004, 13:26
Post #2


ReplayGain developer


Group: Developer
Posts: 3203
Joined: 5-November 01
From: North Yorkshire
Member No.: 409



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.
Go to the top of the page
 
+Quote Post
john33
post Apr 27 2004, 14:33
Post #3


xcLame and OggDropXPd Developer


Group: Developer
Posts: 3419
Joined: 30-September 01
From: Bracknell, UK
Member No.: 111



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.


--------------------
John
----------------------------------------------------------------
My compiles and utilities are at http://www.rarewares.org/
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd November 2009 - 02:47