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: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
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
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)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
The 44100 decoded output is heavily-artifacted but definitely recognizable compared the input, whereas the 48000 decoded output bears no resemblance to the input.