[FFmpeg-trac] #5847(undetermined:new): Duration estimate and bitrate calculation wrong when file is over 4Gb

FFmpeg trac at avcodec.org
Fri Sep 16 05:49:36 EEST 2016


#5847: Duration estimate and bitrate calculation wrong when file is over 4Gb
-------------------------------------+-------------------------------------
             Reporter:  petere       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 When I concatenate vob files the duration is estimated correctly up to 4Gb
 then after this the duration and bitrate is wrong.
 How to reproduce:
 {{{
 % Correct, file size is 3,919,550,464 bytes containing vobs 1-4
 G:\DVD
 Rip\BATMAN_BEGINS_DISC_1\VIDEO_TS>c:\work\mezzmo\build\current\ffmpeg64\ffmpeg.exe
 -i g:\batmanbegins-concat.vob
 ffmpeg version N-78742-gf477849 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 4.9.2 (GCC)
   configuration: --enable-memalign-hack --arch=x86_64 --target-os=mingw32
 --cross-prefix=x86_64-w64-mingw32- --enable-static --disable-shared
 --enable-zlib --disable-postproc --prefix=/home/peter/ffmpeg/build/gpl64
 --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264
 -lpthread -lstdc++' --enable-runtime-cpudetect --extra-
 cflags=-I/home/peter/cc32/include --extra-ldflags=-L/home/peter/cc64/lib
 --pkg-config=pkg-config --pkg-config-flags=--static --disable-w32threads
 --enable-libvpx --enable-libvorbis --enable-libtheora --enable-libx265
 --enable-libmfx --enable-gnutls --extra-libs='-lz -lnettle -lhogweed -lgmp
 -lidn -lws2_32 -lcrypt32'
   libavutil      55. 19.100 / 55. 19.100
   libavcodec     57. 25.101 / 57. 25.101
   libavformat    57. 26.100 / 57. 26.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 36.100 /  6. 36.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
 Input #0, mpeg, from 'g:\batmanbegins-concat.vob':
   Duration: 01:16:33.61, start: 0.045622, bitrate: 6826 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576
 [SAR 64:45 DAR 16:9], max. 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
     Stream #0:3[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
 At least one output file must be specified

 Incorrect, file size is 4,993,290,240 bytes containing vobs 1-5
 G:\DVD
 Rip\BATMAN_BEGINS_DISC_1\VIDEO_TS>C:\Users\petere\Downloads\ffmpeg-20160915
 -6f062eb-win32-static\ffmpeg-20160915-6f062eb-win32-static\bin\ffmpeg.exe
 -i g:\batmanbegins-concat.vob
 ffmpeg version N-81664-g6f062eb Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.0 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-
 bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-
 gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b
 --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm
 --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264
 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-
 libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex
 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-
 amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-
 libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-
 libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
   libavutil      55. 29.100 / 55. 29.100
   libavcodec     57. 55.101 / 57. 55.101
   libavformat    57. 49.100 / 57. 49.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 62.100 /  6. 62.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, mpeg, from 'g:\batmanbegins-concat.vob':
   Duration: 00:20:23.88, start: 0.045622, bitrate: 32639 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576
 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
     Stream #0:3[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
 At least one output file must be specified

 Happens with any concatenated vob over 4Gb, just use a file concat tool to
 merge the vobs.
 }}}
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

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


More information about the FFmpeg-trac mailing list