[FFmpeg-trac] #377(undetermined:new): ffmpeg reports inaccurate length of some gxf files

FFmpeg trac at avcodec.org
Mon Aug 1 21:54:00 CEST 2011


#377: ffmpeg reports inaccurate length of some gxf files
-----------------------------------+------------------------
 Reporter:  acloutier              |        Type:  defect
   Status:  new                    |    Priority:  important
Component:  undetermined           |     Version:  git
 Keywords:  gxf ffmpeg length bug  |  Blocked By:
 Blocking:                         |  Reproduced:  0
 Analyzed:  0                      |
-----------------------------------+------------------------
 ffmpeg inaccurately reports the length of a good number of our gxf files.
 The last known version that reported the length correctly was 0.5.2
 released versions 0.6.1, 0.6.3, 0.7.1, 0.7.1-rc1, and 0.8 also have this
 bug.

 Example command line and output from the latest git version of ffmpeg:

 {{{
 ffmpeg -v 9 -loglevel 99 -i 20010920195800001.gxf
 ffmpeg version N-31720-g03cbe6c, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Aug  1 2011 15:34:44 with gcc 4.5.2
   configuration: --prefix=/usr --enable-shared --enable-libmp3lame
 --enable-gpl --enable-libfaac --enable-libvorbis --enable-pthreads
 --enable-libfaac --enable-libxvid --enable-x11grab --enable-libx264
 --enable-libtheora --enable-nonfree --disable-stripping --enable-avfilter
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3
   WARNING: library configuration mismatch
   postproc    configuration: --extra-version=4:0.6.2-1ubuntu1
 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau
 --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex
 --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib
 --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-
 vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab
 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-
 shared --disable-static --disable-ffmpeg --disable-ffplay
   libavutil    51. 11. 1 / 51. 11. 1
   libavcodec   53.  9. 0 / 53.  9. 0
   libavformat  53.  6. 0 / 53.  6. 0
   libavdevice  53.  2. 0 / 53.  2. 0
   libavfilter   2. 27. 5 /  2. 27. 5
   libswscale    2.  0. 0 /  2.  0. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [gxf @ 0x9f253a0] Format gxf probed with size=2048 and score=100
 [mpeg2video @ 0x9f271e0] Unsupported bit depth: 0
 [gxf @ 0x9f253a0] Probe buffer size limit 5000000 reached

 Seems stream 0 codec frame rate differs from container frame rate: 59.94
 (60000/1001) -> 59.94 (60000/1001)
 Input #0, gxf, from '20010920195800001.gxf':
   Duration: 01:00:55.06, start: 0.000000, bitrate: 17599 kb/s
     Stream #0.0, 101, 1001/120000: Video: mpeg2video (4:2:2), yuv422p,
 720x512 [SAR 128:135 DAR 4:3], 1001/60000, 10000 kb/s, 119.88 fps, 59.94
 tbr, 119.88 tbn, 59.94 tbc
     Stream #0.1, 5, 1001/120000: Audio: pcm_s16le, 48000 Hz, 1 channels,
 s16, 768 kb/s
     Stream #0.2, 5, 1001/120000: Audio: pcm_s16le, 48000 Hz, 1 channels,
 s16, 768 kb/s
     Stream #0.3, 1, 1001/120000: Data: [0][0][0][0] / 0x0000
 At least one output file must be specified
 }}}



 This is the output from 0.5.2 with the correct length:

 {{{
 /opt/ffmpeg/0.5.2/bin/ffmpeg -v 9 -i 20010920195800001.gxf
 FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
   configuration: --prefix=/opt/ffmpeg/0.5.2 --extra-cflags=-O3 -fPIC
 -ffast-math --extra-ldflags=-O3 -fPIC -ffast-math --extra-
 libs=-L/usr/local/lib -R/usr/local/lib --disable-mmx --disable-mmx2
 --disable-ssse3 --enable-gpl --enable-nonfree --disable-ffserver
 --disable-ffplay --disable-stripping --disable-debug --disable-ipv6
 --disable-protocol=udp --disable-encoder=nellymoser --disable-network
 --enable-swscale --enable-libmp3lame --enable-pthreads --enable-libfaac
 --enable-libfaad --enable-libx264 --disable-vhook
   libavutil     49.15. 0 / 49.15. 0
   libavcodec    52.20. 1 / 52.20. 1
   libavformat   52.31. 0 / 52.31. 0
   libavdevice   52. 1. 0 / 52. 1. 0
   libswscale     0. 7. 1 /  0. 7. 1
   built on Dec 22 2010 16:30:13, gcc: 4.5.1

 Seems stream 0 codec frame rate differs from container frame rate: 59.94
 (60000/1001) -> 29.97 (30000/1001)
 Input #0, gxf, from '/data/rawVideo/2001/09/20/20010920195800001.gxf':
   Duration: 02:01:50.13, start: 0.000000, bitrate: 8799 kb/s
     Stream #0.0, 1001/60000: Video: mpeg2video, yuv422p, 720x512 [PAR
 128:135 DAR 4:3], 1001/60000, 10000 kb/s, 29.97 tbr, 59.94 tbn, 59.94 tbc
     Stream #0.1, 1001/60000: Audio: pcm_s16le, 48000 Hz, mono, s16, 768
 kb/s
     Stream #0.2, 1001/60000: Audio: pcm_s16le, 48000 Hz, mono, s16, 768
 kb/s
     Stream #0.3, 1001/60000: Data: 0x0000
 At least one output file must be specified

 }}}

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


More information about the FFmpeg-trac mailing list