[FFmpeg-trac] #3777(avformat:new): Wrong duration for mp3 file

FFmpeg trac at avcodec.org
Thu Jul 17 15:05:09 CEST 2014


#3777: Wrong duration for mp3 file
-------------------------------------+-------------------------------------
               Reporter:  cehoyos    |                  Owner:
                   Type:  defect     |                 Status:  new
               Priority:  normal     |              Component:  avformat
                Version:  git-       |               Keywords:  mp3
  master                             |  duration
             Blocked By:             |               Blocking:
Reproduced by developer:  0          |  Analyzed by developer:  0
-------------------------------------+-------------------------------------
 http://thread.gmane.org/gmane.comp.video.ffmpeg.user/52966
 A user provided a mp3 sample that shows an incorrect too short duration
 (while the sample in ticket #2931 shows a too long duration). MPlayer and
 vlc show the correct duration if libavformat is not used.
 {{{
 $ ffmpeg -i 114.mp3 -f null -
 ffmpeg version N-64722-ge5cb779 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jul 17 2014 15:02:55 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      52. 92.101 / 52. 92.101
   libavcodec     55. 69.100 / 55. 69.100
   libavformat    55. 48.101 / 55. 48.101
   libavdevice    55. 13.102 / 55. 13.102
   libavfilter     4. 11.102 /  4. 11.102
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mp3, from '114.mp3':
   Duration: 00:00:06.79, start: 0.025057, bitrate: 1017 kb/s
     Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
     Metadata:
       encoder         : LAME3.96r
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf55.48.101
     Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
     Metadata:
       encoder         : Lavc55.69.100 pcm_s16le
 Stream mapping:
   Stream #0:0 -> #0:0 (mp3 (native) -> pcm_s16le (native))
 Press [q] to stop, [?] for help
 size=N/A time=00:00:53.94 bitrate=N/A
 video:0kB audio:9293kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3777>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list