[FFmpeg-trac] #4249(undetermined:new): max values for -analyzeduration and -probesize not sufficient for probing all streams of some ISO files (DVD)

FFmpeg trac at avcodec.org
Sat Jan 10 18:12:48 CET 2015


#4249: max values for -analyzeduration and -probesize not sufficient for probing
all streams of some ISO files (DVD)
-------------------------------------+-------------------------------------
             Reporter:  bubbleguuum  |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I have an ISO file which is a DVD RIP done with DVD Shrink.

 I'm using ffprobe on that ISO to list all available streams (using
 -show_streams but omitted in command-line below for brevity).

 Despite specifying max -probesize and -analyzeduration  (value: MAX_INT =
 2147483647), this is not sufficient for ffprobe to anaylyse all streams
 and it exits early.

 In the log trace below, the ISO has a total of 11 streams, bu stream #11
 is not being fully identified (no channel count and it is AC3, not mp2)
 due to max_analyze_duration being reached before, and ffprobe exiting
 early.

 It's even worse with some other ISO having more than 20 streams, with
 rarely more than the first 10 stream being identified properly before
 ffprobe/ffmpeg exits.

 Ideally, there should be an option for specifying unlimited
 probesize/analyze duration, to be able to probe all streams no matter how
 much time it takes.

 This issue should be easily reproducible by making an ISO of any DVD movie
 having more than 10 or 12 streams.

 If there is a ffprobe switch that allow to probe all the streams and that
 I'm not aware of, please let me know.

 How to reproduce:
 {{{
 $ ffprobe -v 9 -loglevel 99 -analyzeduration 2147483647 -probesize
 2147483647 -i HOBBIT_AN_UNEXPECTED_JOURNEY.ISO
 ffprobe version 2.2.3 Copyright (c) 2007-2014 the FFmpeg developers
   built on Jun 19 2014 20:24:25 with gcc 4.8.3 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm
 --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
 libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-
 libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-
 decklink --enable-zlib
   libavutil      52. 66.100 / 52. 66.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  2.100 /  4.  2.100
   libswscale      2.  5.102 /  2.  5.102
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 [mpeg @ 043ad660] Format mpeg probed with size=1048576 and score=52
 [mpeg @ 043ad660] Before avformat_find_stream_info() pos: 0 bytes
 read:1048576 seeks:0
 [mpeg @ 043ad660] probing stream 1 pp:2500
 [mpeg @ 043ad660] Probe with size=2012, packets=1 detected mpegvideo with
 score=25
 [mpeg @ 043ad660] probed stream 1
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 35 with DTS
 1480355, packet 36 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 35 with DTS
 1476755, packet 36 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 36 with DTS
 11555, packet 37 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 36 with DTS 7955,
 packet 37 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 38 with DTS
 54755, packet 39 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 38 with DTS
 51155, packet 39 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 40 with DTS
 65555, packet 41 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 40 with DTS
 61955, packet 41 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 41 with DTS
 11555, packet 42 with DTS 4826
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 41 with DTS 7955,
 packet 42 with DTS 1226
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 135 with DTS
 4022426, packet 136 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 1170 with DTS
 4062026, packet 1171 with DTS 1812
 [mpeg @ 043ad660] Non-increasing DTS in stream 2: packet 1410 with DTS
 4065626, packet 1411 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 229 with DTS
 4023012, packet 230 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 2299 with DTS
 4062612, packet 2300 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 237 with DTS
 313955, packet 238 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 2307 with DTS
 310355, packet 2308 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 3: packet 9 with DTS
 313955, packet 10 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 4: packet 9 with DTS
 313955, packet 10 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 238 with DTS
 11555, packet 239 with DTS 4826
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 2308 with DTS
 7955, packet 2309 with DTS 1226
 [mpeg @ 043ad660] Non-increasing DTS in stream 2: packet 2821 with DTS
 4066212, packet 2822 with DTS 4826
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 332 with DTS
 4022426, packet 333 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 3437 with DTS
 4062026, packet 3438 with DTS 1812
 [mpeg @ 043ad660] Non-increasing DTS in stream 3: packet 11 with DTS
 480026, packet 12 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 4: packet 11 with DTS
 480026, packet 12 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 2: packet 4232 with DTS
 4065626, packet 4233 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 426 with DTS
 4023012, packet 427 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 4566 with DTS
 4062612, packet 4567 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 434 with DTS
 313955, packet 435 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 4574 with DTS
 310355, packet 4575 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 3: packet 20 with DTS
 313955, packet 21 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 4: packet 20 with DTS
 313955, packet 21 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 435 with DTS
 11555, packet 436 with DTS 4826
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 4575 with DTS
 7955, packet 4576 with DTS 1226
 [mpeg @ 043ad660] Non-increasing DTS in stream 2: packet 5643 with DTS
 4066212, packet 5644 with DTS 4826
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 529 with DTS
 4022426, packet 530 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 5704 with DTS
 4062026, packet 5705 with DTS 1812
 [mpeg @ 043ad660] Non-increasing DTS in stream 3: packet 22 with DTS
 480026, packet 23 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 4: packet 22 with DTS
 480026, packet 23 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 2: packet 7054 with DTS
 4065626, packet 7055 with DTS 5412
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 623 with DTS
 4023012, packet 624 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 6833 with DTS
 4062612, packet 6834 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 631 with DTS
 313955, packet 632 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 6841 with DTS
 310355, packet 6842 with DTS 7955
 [mpeg @ 043ad660] Non-increasing DTS in stream 3: packet 31 with DTS
 313955, packet 32 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 4: packet 31 with DTS
 313955, packet 32 with DTS 11555
 [mpeg @ 043ad660] Non-increasing DTS in stream 0: packet 632 with DTS
 11555, packet 633 with DTS 4826
 [mpeg @ 043ad660] Non-increasing DTS in stream 1: packet 6842 with DTS
 7955, packet 6843 with DTS 1226
 [mpeg @ 043ad660] Non-increasing DTS in stream 2: packet 8465 with DTS
 4066212, packet 8466 with DTS 4826
 [mpeg @ 043ad660] max_analyze_duration 2147483647 reached at 2147920000
 microseconds
 [mpeg @ 043ad660] Could not find codec parameters for stream 11 (Audio:
 mp2, 0 channels): unspecified frame size
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [mpeg @ 043ad660] After avformat_find_stream_info() pos: 0 bytes
 read:948424848 seeks:2 frames:240640
 Input #0, mpeg, from 'HOBBIT_AN_UNEXPECTED_JOURNEY.ISO':
   Duration: 00:00:10.75, start: 0.053622, bitrate: N/A
     Stream #0:0[0x1bf], 4414, 1/90000: Data: dvd_nav_packet, 1/90000
     Stream #0:1[0x1e0], 52956, 1/90000: Video: mpeg2video (Main),
 yuv420p(tv, bt470bg), 720x576 [SAR 64:45 DAR 16:9], 1/50, max. 7500 kb/s,
 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:2[0x80], 66107, 1/90000: Audio: ac3, 48000 Hz, 5.1(side),
 fltp, 384 kb/s
     Stream #0:3[0x21], 394, 1/90000: Subtitle: dvd_subtitle
     Stream #0:4[0x20], 517, 1/90000: Subtitle: dvd_subtitle
     Stream #0:5[0x82], 57641, 1/90000: Audio: ac3, 48000 Hz, 5.1(side),
 fltp, 384 kb/s
     Stream #0:6[0x81], 57641, 1/90000: Audio: ac3, 48000 Hz, 5.1(side),
 fltp, 384 kb/s
     Stream #0:7[0x22], 469, 1/90000: Subtitle: dvd_subtitle
     Stream #0:8[0x23], 498, 1/90000: Subtitle: dvd_subtitle
     Stream #0:9[0x24], 2, 1/90000: Subtitle: dvd_subtitle
     Stream #0:10[0x25], 1, 1/90000: Subtitle: dvd_subtitle
     Stream #0:11[0x1d7], 0, 1/90000: Audio: mp2, 0 channels
 Unsupported codec with id 1145979222 for input stream 0
 detected 8 logical cores
 [AVIOContext @ 003cb560] Statistics: 948424848 bytes read, 2 seeks
 }}}

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


More information about the FFmpeg-trac mailing list