![]() |
|
![]() |
#1 |
Member
Join Date: Dec 2005
Posts: 7
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
Admin
Join Date: Jul 2004
Posts: 372
![]() |
![]()
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. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|