[FFmpeg-trac] #2931(avformat:open): mp3: wrong duration

FFmpeg trac at avcodec.org
Fri May 9 17:07:20 CEST 2014


#2931: mp3: wrong duration
--------------------------------------+------------------------------------
             Reporter:  ami_stuff     |                    Owner:
                 Type:  defect        |                   Status:  open
             Priority:  normal        |                Component:  avformat
              Version:  git-master    |               Resolution:
             Keywords:  mp3 duration  |               Blocked By:
             Blocking:                |  Reproduced by developer:  1
Analyzed by developer:  0             |
--------------------------------------+------------------------------------
Changes (by Underground78):

 * cc: underground78@… (added)


Comment:

 I think [http://www.datafilehost.com/d/22536911 this sample] exhibits the
 same issue.

 The real duration is 1:20 but the embedded cover art seems to confuse
 avformat.

 {{{
 > ffmpeg.exe -i Purity.mp3
 ffmpeg version N-63013-g4cdea92 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on May  6 2014 22:02:02 with gcc 4.8.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc
 --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-
 librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex
 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-
 aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs
 --enable-libxvid --enable-decklink --enable-zlib
   libavutil      52. 81.100 / 52. 81.100
   libavcodec     55. 60.103 / 55. 60.103
   libavformat    55. 37.102 / 55. 37.102
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 [mp3 @ 028f9600] Format mp3 detected only with low score of 24,
 misdetection possible!
 [mp3 @ 028f9600] Estimating duration from bitrate, this may be inaccurate
 Input #0, mp3, from 'Purity.mp3':
   Metadata:
     title           : Purity
     artist          : Halcyonic Falcon X
     genre           : Video Game
     encoded_by      : LAME in FL Studio 9
     TBPM            : 120
     album           : Epic Battle Fantasy 3: Adventure Story
     date            : 2011
   Duration: 00:01:55.52, start: 0.000000, bitrate: 319 kb/s
     Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
     Stream #0:1: Video: mjpeg, yuvj444p(pc), 1800x1800, 90k tbr, 90k tbn,
 90k tbc
     Metadata:
       title           :
       comment         : Other
 }}}

 Ref: [https://trac.mpc-hc.org/ticket/4322 MPC-HC Ticket #4322].

--
Ticket URL: <https://trac.ffmpeg.org/ticket/2931#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list