[FFmpeg-trac] #599(avformat:open): Retrieving bad duration from h264 mov file
FFmpeg
trac at avcodec.org
Sat Oct 29 09:23:14 CEST 2011
#599: Retrieving bad duration from h264 mov file
--------------------------------------+------------------------------------
Reporter: faroutliving | Owner:
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: mov duration | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
--------------------------------------+------------------------------------
Changes (by cehoyos):
* keywords: h264 bad duration => mov duration
* status: new => open
* component: undetermined => avformat
* reproduced: 0 => 1
Old description:
> 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
New description:
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
}}}
--
Comment:
QuickTime and vlc show the correct duration of 29 seconds.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/599#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list