Help - Search - Members - Calendar
Full Version: LAME 3.95.1 --freeformat bug
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
getID3()
LAME 3.95.1 seems to have problems decoding freeformat:

Seems to encode to freeformat ok:
CODE
C:\>lame --freeformat -b 640 test48.wav 640-48.mp3
LAME version 3.95 MMX  (http://www.mp3dev.org/)
CPU features: MMX (ASM used), SSE, SSE2
Using polyphase lowpass  filter, transition band: 20323 Hz - 20903 Hz
Warning: many decoders cannot handle free format bitstreams
Warning: many decoders cannot handle free format bitrates >320 kbps (see documen
tation)
Encoding test48.wav to 640-48.mp3
Encoding as 48 kHz 640 kbps j-stereo MPEG-1 Layer III (2.4x) qval=3
   Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
  208/210    (99%)|    0:00/    0:00|    0:00/    0:00|   13.867x|    0:00
Writing LAME Tag...done
ReplayGain: -10.8dB
But it doesn't decode properly. Notice it is interpreting the file as 44100 instead of 48000 that it was encoded at:
CODE
C:\>lame --decode 640-48.mp3
bitstream problem: resyncing...
input:  640-48.mp3  (44.1 kHz, 2 channels, MPEG-1 Layer III)
output: 640-48.mp3.wav  (16 bit, Microsoft WAVE)
skipping initial 1105 samples (encoder+decoder delay)
bitstream problem: resyncing...
Frame#     1/2182    96 kbps         bitstream problem: resyncing...
Frame#     2/2182    48 kbps         bitstream problem: resyncing...
Frame#     3/2182   192 kbps         bitstream problem: resyncing...
Frame#     4/2182   384 kbps  L  R   bitstream problem: resyncing...
Frame#     5/2182    56 kbps         bitstream problem: resyncing...
Frame#     6/2182   256 kbps


If I do the same encode-decode on a 44100 file I get a whole deluge of this kind of error message:
CODE
Frame#   187/497    640 kbps   MS    fatal error.  MAXFRAMESIZE not large enough.
Frame#   188/497    640 kbps   MS    fatal error.  MAXFRAMESIZE not large enough.
Frame#   189/497    640 kbps   MS    fatal error.  MAXFRAMESIZE not large enough.
Frame#   190/497    640 kbps   MS    fatal error.  MAXFRAMESIZE not large enough.
Frame#   191/497    640 kbps   MS    fatal error.  MAXFRAMESIZE not large enough.
Frame#   192/497    640 kbps   MS    fatal error.  MAXFRAMESIZE not large enough.
Frame#   192/497    640 kbps   MS
(and yes, the screen output just stops like that)


The 44100 decoded output is heavily-artifacted but definitely recognizable compared the input, whereas the 48000 decoded output bears no resemblance to the input.
gazzyk1ns
Just for reference, in this thread in the listening tests forum, people are reporting that 3.95.x can't decode at all...

I just tested this myself and bizarrely, it got halfway through decoding, reported an error ("bitstream problem, resyncing")... although it did actually decode the whole thing perfectly! Well, I say perfectly, I only checked that it was complete, and there weren't any obvious artifacts.
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.