Musepack Forums

Musepack Forums (https://forum.musepack.net/index.php)
-   Tech (https://forum.musepack.net/forumdisplay.php?f=7)
-   -   Determining maximum/minimum values on decode (https://forum.musepack.net/showthread.php?t=263)

Bob 23 January 2006 04:40 pm

Determining maximum/minimum values on decode
 
Is there a way I can determine what the maximum/minimum values in a stream are before I decode it? I'm getting values exceeding +- 1.0

I'm trying to avoid clipping the output, I'd rather scale it instead.

Shy 23 January 2006 07:25 pm

You could apply ReplayGain on the encoded file and view the peak value. It's not possible to avoid internal clipping with any lossy codec. The peak value will never be over 1.0 with the original wave file, only with a lossy file.
The louder and denser (more "compressed") the audio is (example: most modern poorly mastered pop albums) the more clipped the encoded file will be.

Scaling is never recommended, especially if you want to do it to avoid clipping which is useless because that clipping is not audible. Clipping in lossy codecs is not ordinary clipping as you may think, it's very different than say taking a wave file and changing its volume with a wave editor, thus causing (possibly very audible) clipping.


All times are GMT. The time now is 01:57 am.

Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2019, vBulletin Solutions Inc.