[FFmpeg-trac] #2471(avformat:new): FFMpeg unable to determine video length with streams outside of programs

FFmpeg trac at avcodec.org
Wed Apr 17 09:24:26 CEST 2013


#2471: FFMpeg unable to determine video length with streams outside of programs
------------------------------------+------------------------------------
             Reporter:  nbollom     |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  mpegts      |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Changes (by cehoyos):

 * version:  1.2 => git-master


Comment:

 I wonder if there is a bug:
 FFmpeg reports "max_analyze_duration reached" and raising the value fixes
 the issue:
 {{{
 $ ffmpeg -probesize 12M -analyzeduration 21M -i part.ts
 ffmpeg version N-52167-gb8edf91 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Apr 17 2013 09:23:10 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --disable-indev=jack
   libavutil      52. 26.100 / 52. 26.100
   libavcodec     55.  2.100 / 55.  2.100
   libavformat    55.  2.100 / 55.  2.100
   libavdevice    55.  0.100 / 55.  0.100
   libavfilter     3. 56.101 /  3. 56.101
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  3.100 / 52.  3.100
 [mp1 @ 0x400b840] Header missing
     Last message repeated 5 times
 [mpeg2video @ 0x400c280] Invalid frame dimensions 0x0.
 [mp1 @ 0x400b840] Header missing
     Last message repeated 1 times
 [mpeg2video @ 0x400c280] Invalid frame dimensions 0x0.
 [mp1 @ 0x400b840] Header missing
 [mpeg2video @ 0x400c280] Invalid frame dimensions 0x0.
 [mp1 @ 0x400b840] Header missing
 [mpeg2video @ 0x400c280] Invalid frame dimensions 0x0.
 [mp1 @ 0x400b840] Header missing
     Last message repeated 1 times
 [mpeg2video @ 0x400c280] Invalid frame dimensions 0x0.
 [mp1 @ 0x400b840] Header missing
 [mpeg2video @ 0x400c280] Invalid frame dimensions 0x0.
     Last message repeated 1 times
 [mp1 @ 0x400b840] Header missing
     Last message repeated 6 times
 [mpeg2video @ 0x400c280] Invalid frame dimensions 0x0.
 [mp1 @ 0x400b840] Header missing
     Last message repeated 87 times
 [mpegts @ 0x339f220] Stream #3: not enough frames to estimate rate;
 consider increasing probesize
 [mpegts @ 0x339f220] Stream #7: not enough frames to estimate rate;
 consider increasing probesize
 [mpegts @ 0x339f220] Could not find codec parameters for stream 3
 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [mpegts @ 0x339f220] decoding for stream 4 failed
 [mpegts @ 0x339f220] Could not find codec parameters for stream 4 (Audio:
 mp1 ([6][0][0][0] / 0x0006), 0 channels, s16p): unspecified frame size
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [mpegts @ 0x339f220] Could not find codec parameters for stream 7
 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [NULL @ 0x33c6260] start time is not set in estimate_timings_from_pts
 [NULL @ 0x400d7c0] start time is not set in estimate_timings_from_pts
 [mpegts @ 0x339f220] PES packet size mismatch
 Input #0, mpegts, from 'part.ts':
   Duration: 00:00:38.38, start: 16149.369244, bitrate: 6557 kb/s
   Program 544
   Program 545
   Program 546
   Program 547
   Program 548
   Program 550
   Program 551
   Program 1057
     Stream #0:5[0x207]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:6[0x2d0](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
 stereo, s16p, 256 kb/s
     Stream #0:4[0x247](eng): Audio: mp1 ([6][0][0][0] / 0x0006), 0
 channels, s16p
     Stream #0:7[0x901]: Unknown: none ([11][0][0][0] / 0x000B)
   Program 1058
   Program 1059
   Program 1060
   No Program
     Stream #0:0[0x200]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
 yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x28a](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz,
 stereo, s16p, 256 kb/s
     Stream #0:2[0x240](eng): Subtitle: dvb_teletext ([6][0][0][0] /
 0x0006)
     Stream #0:3[0x1388]: Unknown: none ([11][0][0][0] / 0x000B)
 At least one output file must be specified
 }}}
 The teletext streams are empty afaict, so misdetecting them is no bug imo.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2471#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list