New submission from Jason Garrett-Glaser <[email protected]>:

As per all other Facebook-reported bugs, delete the uploaded file once the bug
is fixed.

"facebook_broken_duration_mpeg2.avi" in incoming has the following problem:

$ ffmpeg -i facebook_broken_duration_mpeg2.avi
FFmpeg version SVN-r19475, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-memalign-hack --prefix=/mingw
--cross-prefix=i686-mingw32- --cc=ccache-i686-mingw32-gcc --target-os=mingw32
--arch=i686 --cpu=i686 --enable-avisynth --enable-gpl --enable-zlib
--enable-bzlib --enable-libgsm --enable-libfaad --enable-pthreads
--enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame
--enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libx264
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.32. 0 / 52.32. 0
  libavformat   52.36. 0 / 52.36. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Jul 21 2009 04:02:19, gcc: 4.2.4

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 25.00 (25/1)
Input #0, avi, from 'facebook_broken_duration_mpeg2.avi':
  Duration: 00:55:11.04, start: 0.000000, bitrate: 461 kb/s
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 9100
kb/s, 25 tbr, 25 tbn, 50 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
At least one output file must be specified

As can be seen, the duration is 55:11... except that the video isn't even 5
minutes long.  It doesn't appear to be truncated, and furthermore the video
bitrate is 9100kbps while the overall file bitrate is 461kbps, something that
makes no sense either.

----------
messages: 6645
priority: normal
status: new
substatus: new
title: ffmpeg incorrectly detects duration of MPEG-2 AVI file
topic: avformat
type: bug

_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1307>
_____________________________________________________

Reply via email to