[FFmpeg-trac] #2186(avformat:open): program detection in transport stream broken

FFmpeg trac at avcodec.org
Tue Feb 5 17:59:48 CET 2013


#2186: program detection in transport stream broken
-------------------------------------+-------------------------------------
             Reporter:  hugo         |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  mpegts       |               Blocked By:
  regression                         |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by heleppkes):

 I have another sample file which has this problem, reverting 4c41fc8 fixes
 it, Michaels patch on the ML however does not.

 I tried cutting a small sample out of it, but that sample did not
 reproduce the problem anymore.
 If anyone is interested in the 1.2gb file, i can make it available.

 For the record, here are ffmpeg outputs, from "ffmpeg -v 9 -loglevel 99 -i
 file.ts"

 Broken (git master)
 {{{
 ffmpeg version N-49608-g2b20397 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb  5 2013 17:52:45 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl
   libavutil      52. 17.101 / 52. 17.101
   libavcodec     54. 91.100 / 54. 91.100
   libavformat    54. 61.104 / 54. 61.104
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 35.101 /  3. 35.101
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set libav* logging level)
 with argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set libav*
 logging level) with argument '99'.
 Reading option '-i' ... matched as input file with argument
 'd:/Downloads/Pirunpelto.ts'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set libav* logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input file d:/Downloads/Pirunpelto.ts.
 Successfully parsed a group of options.
 Opening an input file: d:/Downloads/Pirunpelto.ts.
 [mpegts @ 02F69BC0] Format mpegts probed with size=2048 and score=100
 [mpegts @ 02F69BC0] stream=0 stream_type=3 pid=44 prog_reg_desc=
 [mpegts @ 02F69BC0] stream=1 stream_type=2 pid=45 prog_reg_desc=
 [mpegts @ 02F69BC0] File position before avformat_find_stream_info() is 0
 [mpegts @ 02F69BC0] max_analyze_duration 5000000 reached at 5016000
 microseconds
 [mpegts @ 02F69BC0] stream=2 stream_type=0 pid=47 prog_reg_desc=
 [mpegts @ 02F69BC0] probing stream 2 pp:2500
 [mpegts @ 02F69BC0] Probe with size=672, packets=1 detected mp3 with
 score=1
 [mpegts @ 02F69BC0] probing stream 2 pp:2499
 [mpegts @ 02F69BC0] Probe with size=1344, packets=2 detected mp3 with
 score=1
 [mpegts @ 02F69BC0] probing stream 2 pp:2498
 [mpegts @ 02F69BC0] probing stream 2 pp:2497
 [mpegts @ 02F69BC0] Probe with size=2688, packets=4 detected mp3 with
 score=51
 [mpegts @ 02F69BC0] probed stream 2
 [mpegts @ 02F69BC0] stream=3 stream_type=6 pid=46 prog_reg_desc=
 [mpegts @ 02F69BC0] stream=2 stream_type=3 pid=47 prog_reg_desc=
 [mpegts @ 02F69BC0] PES packet size mismatch
 [mpegts @ 02F69BC0] File position after avformat_find_stream_info() is 0
 Input #0, mpegts, from 'd:/Downloads/Pirunpelto.ts':
   Duration: 00:55:58.32, start: 17274.978278, bitrate: 3212 kb/s
   Program 1
     Stream #0:1[0x45], 112, 1/90000: Video: mpeg2video (Main)
 ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1/50, 25
 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:3[0x46](fin), 0, 1/90000: Subtitle: dvb_subtitle
 ([6][0][0][0] / 0x0006)
     Stream #0:2[0x47](eng), 0, 1/90000: Audio: mp3 ([3][0][0][0] /
 0x0003), 0 channels
   No Program
     Stream #0:0[0x44](fin), 211, 1/90000: Audio: mp2 ([3][0][0][0] /
 0x0003), 48000 Hz, stereo, s16p, 224 kb/s
 Successfully opened the file.
 At least one output file must be specified
 [AVIOContext @ 02F72240] Statistics: 2510992 bytes read, 2 seeks
 }}}

 Working (git master with 4c41fc8 reverted)
 {{{
 ffmpeg version N-49609-g8af37e4 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb  5 2013 17:58:16 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl
   libavutil      52. 17.101 / 52. 17.101
   libavcodec     54. 91.100 / 54. 91.100
   libavformat    54. 61.104 / 54. 61.104
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 35.101 /  3. 35.101
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set libav* logging level)
 with argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set libav*
 logging level) with argument '99'.
 Reading option '-i' ... matched as input file with argument
 'd:/Downloads/Pirunpelto.ts'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set libav* logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input file d:/Downloads/Pirunpelto.ts.
 Successfully parsed a group of options.
 Opening an input file: d:/Downloads/Pirunpelto.ts.
 [mpegts @ 02E79BC0] Format mpegts probed with size=2048 and score=100
 [mpegts @ 02E79BC0] stream=0 stream_type=3 pid=44 prog_reg_desc=
 [mpegts @ 02E79BC0] stream=1 stream_type=2 pid=45 prog_reg_desc=
 [mpegts @ 02E79BC0] File position before avformat_find_stream_info() is 0
 [mpegts @ 02E79BC0] max_analyze_duration 5000000 reached at 5016000
 microseconds
 [mpegts @ 02E79BC0] stream=2 stream_type=0 pid=47 prog_reg_desc=
 [mpegts @ 02E79BC0] probing stream 2 pp:2500
 [mpegts @ 02E79BC0] Probe with size=672, packets=1 detected mp3 with
 score=1
 [mpegts @ 02E79BC0] probing stream 2 pp:2499
 [mpegts @ 02E79BC0] Probe with size=1344, packets=2 detected mp3 with
 score=1
 [mpegts @ 02E79BC0] probing stream 2 pp:2498
 [mpegts @ 02E79BC0] probing stream 2 pp:2497
 [mpegts @ 02E79BC0] Probe with size=2688, packets=4 detected mp3 with
 score=51
 [mpegts @ 02E79BC0] probed stream 2
 [mpegts @ 02E79BC0] stream=3 stream_type=6 pid=46 prog_reg_desc=
 [mpegts @ 02E79BC0] stream=2 stream_type=3 pid=47 prog_reg_desc=
 [mpegts @ 02E79BC0] PES packet size mismatch
 [mpegts @ 02E79BC0] File position after avformat_find_stream_info() is 0
 Input #0, mpegts, from 'd:/Downloads/Pirunpelto.ts':
   Duration: 00:55:58.97, start: 17274.978278, bitrate: 3211 kb/s
   Program 1
     Stream #0:0[0x44](fin), 211, 1/90000: Audio: mp2 ([3][0][0][0] /
 0x0003), 48000 Hz, stereo, s16p, 224 kb/s
     Stream #0:1[0x45], 112, 1/90000: Video: mpeg2video (Main)
 ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1/50, 25
 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:3[0x46](fin), 0, 1/90000: Subtitle: dvb_subtitle
 ([6][0][0][0] / 0x0006)
     Stream #0:2[0x47](eng), 0, 1/90000: Audio: mp3 ([3][0][0][0] /
 0x0003), 0 channels
 Successfully opened the file.
 At least one output file must be specified
 [AVIOContext @ 02E82240] Statistics: 2510992 bytes read, 2 seeks

 }}}

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


More information about the FFmpeg-trac mailing list