Musepack Forums

Musepack Forums (
-   Tech (
-   -   Determining maximum/minimum values on decode (

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 05:31 pm.

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