Menu

#289 Wrong duration of mp3 (encoded with 3.98 V3) in Audition 1.5

Compatibility
open-invalid
nobody
None
3
2008-02-14
2007-11-23
Anonymous
No

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.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Forget to mention: I observed this effect with "-V 3 --vbr-new" and "-V 3" options. "-V 2" works ok.

     
  • Robert Hegemann

    Robert Hegemann - 2008-01-03
    • priority: 5 --> 3
     
  • Robert Hegemann

    Robert Hegemann - 2008-01-03

    Logged In: YES
    user_id=1106
    Originator: NO

    Does Audition use the lame_enc.dll or the lame.exe?

     
  • WERWRWR

    WERWRWR - 2008-02-11

    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.

     
  • Nobody/Anonymous

    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"!)

     
  • Robert Hegemann

    Robert Hegemann - 2008-02-13
    • status: open --> pending-invalid
     
  • Robert Hegemann

    Robert Hegemann - 2008-02-13

    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

     
  • WERWRWR

    WERWRWR - 2008-02-14

    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.

     
  • WERWRWR

    WERWRWR - 2008-02-14
    • status: pending-invalid --> open-invalid
     
  • Robert Hegemann

    Robert Hegemann - 2008-03-18

    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

     
  • WERWRWR

    WERWRWR - 2008-03-21

    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.

     

Log in to post a comment.