[FFmpeg-trac] #599(undetermined:new): Retrieving bad duration from h264 mov file

FFmpeg trac at avcodec.org
Fri Oct 28 23:16:11 CEST 2011


#599: Retrieving bad duration from h264 mov file
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:  defect
  faroutliving                       |                 Priority:  normal
               Status:  new          |                  Version:  git-
            Component:               |  master
  undetermined                       |               Blocked By:
             Keywords:  h264 bad     |  Reproduced by developer:  0
  duration                           |
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 When executing the command "ffmpeg -i h264_bad_duration.mov", ffmpeg
 returns the below details. The important (wrong) part is Duration. The
 video duration is (roughly) 30 seconds, but ffmpeg shows it as 5:34.49. It
 does appear to play correctly in mplayer (though it reports the same wrong
 duration, which should be no surprise).

 File located at http://usmediavault.com/h264_bad_duration.mov

 I tried uploading to upload.ffmpeg.org, but was unable to.

 Thanks for looking at this.

 Deron Kazmaier
 deron at faroutliving.com

 ------------------------------------------------------------------------------

 ffmpeg version N-34139-gad2d597, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Oct 28 2011 12:57:49 with gcc 4.5.2
   configuration: --enable-gpl
   libavutil    51. 22. 0 / 51. 22. 0
   libavcodec   53. 23. 0 / 53. 23. 0
   libavformat  53. 17. 0 / 53. 17. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 45. 1 /  2. 45. 1
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0

 Seems stream 1 codec frame rate differs from container frame rate:
 11988.00 (11988/1) -> 59.94 (2997/50)
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'h264_bad_duration.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2011-10-27 20:31:39
   Duration: 00:05:34.49, start: 0.000000, bitrate: 2775 kb/s
     Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
 stereo, s16, 1536 kb/s
     Metadata:
       creation_time   : 2011-10-27 20:31:39
       handler_name    : ?Apple Alias Data Handler
     Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
 1280x720, 2636 kb/s, 5.37 fps, 59.94 tbr, 5994 tbn, 11988 tbc
     Metadata:
       creation_time   : 2011-10-27 20:31:39
       handler_name    : ?Apple Alias Data Handler
 At least one output file must be specified

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


More information about the FFmpeg-trac mailing list