Help - Search - Members - Calendar
Full Version: MP3 file plays in WMP, Songbird but fails to decode with LAME
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
klon
Hi,
I am having trouble decoding an MP3 file encoded as 320kbit CBR, stereo, 44,1kHz. I am using LAME.EXE 32-bits 3.97 on Windows. I would assume the file was corrupt but it plays fine on both Windows Media Player, VLC and Songbird.

Here is the complete output:

.\bin>lame --decode test.mp3 test.wav
bitstream problem: resyncing...
input: test.mp3
(32 kHz, 2 channels, MPEG-1 Layer III)
output: test.wav (16 bit, Microsoft WAVE)
skipping initial 1105 samples (encoder+decoder delay)
Frame# 1/15775 160 kbps L R bitstream problem: resyncing...
Frame# 2/15775 320 kbps bitstream problem: resyncing...
Frame# 3/15775 192 kbps bitstream problem: resyncing...
Frame# 4/15775 192 kbps bitstream problem: resyncing...
Frame# 5/15775 80 kbps L R bitstream problem: resyncing...
Frame# 6/15775 80 kbps L R bitstream problem: resyncing...
Frame# 7/15775 256 kbps LMSR bitstream problem: resyncing...
Frame# 8/15775 56 kbps LMSR bitstream problem: resyncing...
Frame# 9/15775 224 kbps bitstream problem: resyncing...
Frame# 10/15775 128 kbps L R bitstream problem: resyncing...
Frame# 11/15775 384 kbps bitstream problem: resyncing...
Frame# 12/15775 224 kbps L R bitstream problem: resyncing...
Frame# 13/15775 96 kbps bitstream problem: resyncing...
Frame# 14/15775 160 kbps bitstream problem: resyncing...
Frame# 15/15775 320 kbps bitstream problem: resyncing...
Frame# 16/15775 64 kbps bitstream problem: resyncing...
Frame# 17/15775 160 kbps L R bitstream problem: resyncing...
Frame# 18/15775 160 kbps L R bitstream problem: resyncing...
Frame# 19/15775 56 kbps LMSR bitstream problem: resyncing...
Frame# 20/15775 224 kbps MS ibitstream problem: resyncing...
Frame# 21/15775 192 kbps LMSR ibitstream problem: resyncing...
Frame# 22/15775 192 kbps L R bitstream problem: resyncing...
Frame# 23/15775 64 kbps bitstream problem: resyncing...
Frame# 24/15775 224 kbps bitstream problem: resyncing...
Frame# 25/15775 224 kbps bitstream problem: resyncing...
Frame# 26/15775 320 kbps bitstream problem: resyncing...
Frame# 27/15775 384 kbps LMSR ibitstream problem: resyncing...
Frame# 28/15775 32 kbps bitstream problem: resyncing...


Any ideas?

Thanks in advance,
Jonas
robert
The decoder sees some sync word, likely to be in ID3v2, maybe some cover art? Did you try lame 3.98.2 too?
pdq
Any possibility this is one of those trojans that is a wma file disguised as an mp3?
klon
QUOTE (robert @ Oct 7 2008, 22:43) *
The decoder sees some sync word, likely to be in ID3v2, maybe some cover art? Did you try lame 3.98.2 too?


Yes, tried the 3.98.2 binary from http://www.rarewares.org and it gives the same output.

I just noticed LAME thinks the input file is 32kHz. According to Songbird and WMP the MP3 has no ID3v2 tag.
robert
Are your sure your test.mp3 is an MP3? Maybe upload the first 4 kilo bytes of that file.

Or, if it indeed is, does it contain some APE tag or other stuff in front of the audio stream?
klon
QUOTE (robert @ Oct 8 2008, 12:08) *
Are your sure your test.mp3 is an MP3? Maybe upload the first 4 kilo bytes of that file.

Or, if it indeed is, does it contain some APE tag or other stuff in front of the audio stream?


I tried Foobar2000 now and it plays the file and shows the expected file properties. Also if I right-click and choose Utils-> Rebuild MP3 Stream on the file it fixes it so it works with LAME --decode.

My guess is that the file is somehow not standard MP3 and the players are more forgiving than LAME or there is a bug in LAME.

How do I upload a sample of the file?

Uploaded 4kb MP3 in upload forum.
bfollett
Try running the file through mp3val and see if it can whip it into shape. It's fixed a lot of questionable mp3's for me.

Bob
Dynamic
QUOTE (klon @ Oct 8 2008, 12:36) *
How do I upload a sample of the file?


If you have DOS or Windows you could follow the instructions in this post I put in the Uploads Forum.
Antonski
QUOTE (robert @ Oct 7 2008, 23:43) *
The decoder sees some sync word, likely to be in ID3v2, maybe some cover art??


There seems to be no tags at all. Could it be that the LAME header is somehow broken?
BTW, the file is not recognized by EncSpot, with or without "Lame Tag" checked in the options tab.

~~
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-2009 Invision Power Services, Inc.