0
$\begingroup$

Let's say I have an X music track in some lossless format (wav?).

If I convert it to MP3 format with its original volume and get the file "A.mp3".

Then I edit the lossless source and reduce the volume by 50% (in some way without affecting its quality) and convert it to MP3 and get the file "B.mp3".

Will be any size difference between "A.mp3" and "B.mp3"?

Does the volume reduction cause a loss of information?

$\endgroup$
  • $\begingroup$ Short answer: yes, there will be a small difference in the size of files. $\endgroup$ – jojek Jan 15 '18 at 12:39
1
$\begingroup$

Depends on the details, but typically not. For the sake of discussion, we assume CD quality for lossless, i.e. 16 bit, 44.1 kHz.

  1. Reducing volume may or may not reduce information. It depends on what number format it's done in. If you convert 16-bit input to, to for example, 32 floating point, no information would be lost. It may still be lost later, depending on what happens to the data down the road
  2. If you do it directly to the 16-bit input data, you have to basically throw away the LSB (least significant bit), and your bit depth has been reduced to 15 bit.
  3. This has little or no effect on MP3 encoding. Most encoders start with a target bit rate and then minimize the encoding artifacts within these constraints. If you encode 10s wave file at 320kb/s, the resulting file will be very 3.2 Mbit long. The thing that varies with content is the sound quality and not the file length.
  4. The type of "information" that encoders use are "masking" and "signal to noise ratio". These are largely independent from the overall scale, so shifting volume doesn't affect the encoders much.
  5. Most encoders these days come in two variants: constant bit rate and variable bit rate. With "variable bit rate" you may see the file length fluctuate a bit, but generally not by much. With constant bit rate, the file lengths will always be constant.
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.