Musepack Forums  

Go Back   Musepack Forums > Main > Tech

Reply
 
Thread Tools Search this Thread Display Modes
Old 23 January 2006, 04:40 pm   #1
Bob
Member
 
Join Date: Dec 2005
Posts: 7
Default 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.
Bob is offline   Reply With Quote
Old 23 January 2006, 07:25 pm   #2
Shy
Admin
 
Shy's Avatar
 
Join Date: Jul 2004
Posts: 370
Default

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.
Shy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 12:20 pm.


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