I converted some audiotrack of length 3:31.933 or 9346260 samples (stereo, 44100Hz) with lame 3.98 (beta 5, Aug 12 2007 and beta 6, Nov 1 2007). Foobar2000 and Winamp shows its length correctly, but Audition 1.5 determined it as 3:13.000 or 8511320 samples.
Encoding of pure silence of 9346260 samples results in the same effect.
lame 3.97 works correctly with Audition 1.5.
Logged In: NO
Forget to mention: I observed this effect with "-V 3 --vbr-new" and "-V 3" options. "-V 2" works ok.
Logged In: YES
user_id=1106
Originator: NO
Does Audition use the lame_enc.dll or the lame.exe?
Logged In: YES
user_id=184686
Originator: NO
I confirm incorrect track length behaviour with 3.97 compiled on Cygwin. The problem appears (at least) with -V 4, -V 5, -V 6, but not when using defaults (implicit) options.
If mp3 in opened in foobar2000, the track length typically displays ~30 minutes instead of 5.
Logged In: NO
For the sake of completness, my entire command line was
lame -t -S -V 5 test.wav test.mp3
(Note the "-t"!)
Logged In: YES
user_id=1106
Originator: NO
Dear nobobdy,
if you disable the LAME/Xing tag frame via '-t', then any stupid program like Audacity will tell you the wrong duration. This is not a bug of LAME, it's just that those programs do not scan the entire mp3 file to determine the correct length, but look for the information stored in the LAME/Xing tag. Windows Media Player is a different beast, looking at ID3v2 tags only.
Ciao Robert
Logged In: YES
user_id=184686
Originator: NO
Robert,
I also tried using -T ("force writing LAME tag") and got the same result (wrong length).
For testing, I used a recent build of foobar2000, which I consider quite well-behaved when it comes to handling MP3s.
Logged In: YES
user_id=1106
Originator: NO
bachtiar,
when using foobar2000, which tool writes ID3v2 tags, LAME or foobar?
Does foobar add a TLEN tag, which seems to be important for Windows Media Player?
Robert
Logged In: YES
user_id=184686
Originator: NO
Perhaps I wasn't clear enough: I use foobar2000 only to open mp3s and check their length. The files are just like LAME writes them.