Help - Search - Members - Calendar
Full Version: Possible Decoding Bug In Lame
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
Jan S.
I tried decode an mp3 file and I get the following error:
CODE
input:  C:\Documents and Settings\Jan Stanstrup\Skrivebord\test.mp3
       (32 kHz, 2 channels, MPEG-1 Layer III)
output: C:\Documents and Settings\Jan Stanstrup\Skrivebord\test.wav
       (16 bit, Microsoft WAVE)
skipping initial 1105 samples (encoder+decoder delay)
Frame#     1/11399  320 kbps         bitstream problem: resyncing...
Frame#     2/11399   99 kbps         bitstream problem: resyncing...
Frame#     3/11399   96 kbps         bitstream problem: resyncing...
Frame#     4/11399   96 kbps         bitstream problem: resyncing...
Frame#     5/11399   96 kbps         bitstream problem: resyncing...
Error: sample frequency has changed in MP3 file - not supported
Frame#     6/11399  100 kbps         bitstream problem: resyncing...
Error: sample frequency has changed in MP3 file - not supported
Frame#     7/11399  324 kbps         bitstream problem: resyncing...
Error: sample frequency has changed in MP3 file - not supported
Frame#     8/11399  100 kbps         bitstream problem: resyncing...
Error: sample frequency has changed in MP3 file - not supported
Frame#     9/11399  128 kbps         bitstream problem: resyncing...
Error: sample frequency has changed in MP3 file - not supported
Frame#    10/11399  132 kbps

The list just goes on and on.

Notice that it says 32 kHz which is not what winamp reports.
It's a 192kbps btw and plays fine.
I have checked with other files and the problem seems to be file related.

Here's a cut (actually my upload stopped) of the mp3 file...:
http://powertothepeople.homestead.com/files/test.mp3
Jan S.
The mother of all evil.

ID3-tags!!!

It was id3-tags that caused this. rolleyes.gif

Still...isn't this just bad handling of id3-tags?
madah
Yes lame should be fixed to skip ID3/ID3v2 tags during decoding!

Also check my posting here:
http://www.audio-illumination.org/forums/i...906b7ee307db936
rjamorim
There is (was?) another bug in lame, related to encoding.

I believe Lame's libsndfile implementation is wrong, because it chokes on all my test files (IMA ADPCM, AIFF, aLaw, MS ADPCM...). Lame reports the input as RAW PCM and the encoded result is noise. The same files are handled properly by Winamp with PP's in_wave, CoolEdit, WaveGain...
Gabriel
A stupid question, but is your binary compiled with libsndfile?
Jan S.
I tried both the compile here: http://www.audio-illumination.org/forums/i...281ba1ae9cf486d

and Mitiok's.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.