Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How/why does lossy encoding alter peak amplitude/increase it beyond 1? (Read 14242 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How/why does lossy encoding alter peak amplitude/increase it beyond 1?

Hello all, first post, sorry if this isn't the right sub-forum. I couldn't find this addressed anywhere.

I noticed something odd recently. I ripped a track using cdparanoia, and when I have foobar2000 do a ReplayGain scan on the output WAV file, it prints the info as:
Track gain: -9.68 dB
Track peak: 1.000000

Encoding the output WAV with oggenc2 and having foobar2000 do a RG scan I get:
Track gain: -9.62 dB
Track peak: 1.253938


This seemed odd to me so I looked at other CDs I'd ripped with cdparanoia and FLAC-encoded, and noticed the Track/Album peaks never went over 1.000000, but that lossy-encoded files of those same songs frequently did. I admit I'm an amateur when it comes to audio but this doesn't make sense to me. How can the peak be so different from the lossless file to the lossy file? I guess I just don't understand exactly how RG (or WAV files) works...



Software I'm using:
cdparanoia III release 10.2 (September 11, 2008) from the Debian 7 repository
flac/metaflac 1.2.1 from the Debian 7 repository
OggEnc v2.87 (LancerMod(SSE3) based on aoTuV b6.03 [20110424]) from rarewares.org
foobar2000 v1.2.8 on Windows 7

How/why does lossy encoding alter peak amplitude/increase it beyond 1?

Reply #1
This recent thread is essentially about the same thing.  Post #3 by carpman pretty much covers what you're wondering.

 

How/why does lossy encoding alter peak amplitude/increase it beyond 1?

Reply #2
Why does your title implicate cdparanoia in this? You seem to conclude in the body of your post that the lossy encoder is responsible, and yet your title suggests otherwise.

Anyway, as linked, this is totally normal during lossy encoding. And with reference to cdparanoia, one would assume it avoids limiting and all other audio-altering processes by default due to its stated aim of completely accurate extraction, Therefore, I guess your CD was simply limited in the mastering stage.

How/why does lossy encoding alter peak amplitude/increase it beyond 1?

Reply #3
Thanks guys! The linked thread is informative


Why does your title implicate cdparanoia in this? You seem to conclude in the body of your post that the lossy encoder is responsible, and yet your title suggests otherwise.

Anyway, as linked, this is totally normal during lossy encoding. And with reference to cdparanoia, one would assume it avoids limiting and all other audio-altering processes by default due to its stated aim of completely accurate extraction, Therefore, I guess your CD was simply limited in the mastering stage.


I at first assumed cdparanoia was limiting the peak since I was certain the CD peaked above that (it's loud and compressed)... but of course that doesn't make sense since that peak is a comparison to "digital full scale", so it can't possibly go over 1.0. Didn't mean to imply anything negative about cdparanoia