Opened 10 years ago

Closed 10 years ago

#3348 closed defect (fixed)

Could not find codec parameters for stream

Reported by: wpto Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mpegts regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Could not find codec parameters for stream 1 (Video: mpeg2v ideo ([2][0][0][0] / 0x0002)): unspecified size

Current Version:

ffmpeg started on 2014-01-25 at 19:58:12
Report written to "ffmpeg-20140125-195812.log"
Command line:
ffmpeg -report -i test.ts
ffmpeg version N-60174-g214a3b8 Copyright (c) 2000-2014 the FFmpeg developers

built on Jan 25 2014 18:49:28 with gcc 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5.1)
configuration: --enable-shared --enable-gpl --enable-libfaac --enable-libx264 --enable-nonfree --enable-postproc --enable-version3
libavutil 52. 63.100 / 52. 63.100
libavcodec 55. 49.100 / 55. 49.100
libavformat 55. 26.100 / 55. 26.100
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 1.101 / 4. 1.101
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100

Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input file with argument 'test.ts'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file test.ts.
Successfully parsed a group of options.
Opening an input file: test.ts.
[mpegts @ 0x24d3dc0] Format mpegts probed with size=2048 and score=100
[mpegts @ 0x24d3dc0] stream=0 stream_type=3 pid=44 prog_reg_desc=
[mpegts @ 0x24d3dc0] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0
[mpegts @ 0x24d3dc0] All programs have pmt, headers found
[mpegts @ 0x24d3dc0] All info found
[mpegts @ 0x24d3dc0] stream=1 stream_type=2 pid=45 prog_reg_desc=
[mpegts @ 0x24d3dc0] PES packet size mismatch
[mpegts @ 0x24d3dc0] PES packet size mismatch
[mpegts @ 0x24d3dc0] Could not find codec parameters for stream 1 (Video: mpeg2video ([2][0][0][0] / 0x0002)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x24d3dc0] After avformat_find_stream_info() pos: 0 bytes read:282768 seeks:2 frames:1
Input #0, mpegts, from 'test.ts':

Duration: 00:00:05.67, start: 72291.097622, bitrate: 1445 kb/s
Program 1

Stream #0:0[0x44](pol), 1, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
Stream #0:1[0x45](), 0, 1/90000: Video: mpeg2video ([2][0][0][0] / 0x0002), 90k tbn

Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x24dc4e0] Statistics: 282768 bytes read, 2 seeks

My Old Version:

ffmpeg started on 2014-01-25 at 19:57:00
Report written to "ffmpeg-20140125-195700.log"
Command line:
ffmpeg -report -i test.ts
ffmpeg version N-56945-g23824b9 Copyright (c) 2000-2013 the FFmpeg developers

built on Oct 7 2013 12:53:56 with gcc 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5.1)
configuration: --enable-shared --enable-gpl --enable-libfaac --enable-libx264 --enable-nonfree --enable-postproc --enable-version3
libavutil 52. 46.101 / 52. 46.101
libavcodec 55. 35.100 / 55. 35.100
libavformat 55. 19.100 / 55. 19.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 88.101 / 3. 88.101
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100

Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input file with argument 'test.ts'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file test.ts.
Successfully parsed a group of options.
Opening an input file: test.ts.
[mpegts @ 0x255bdc0] Format mpegts probed with size=2048 and score=100
[mpegts @ 0x255bdc0] stream=0 stream_type=3 pid=44 prog_reg_desc=
[mpegts @ 0x255bdc0] File position before avformat_find_stream_info() is 0
[mpegts @ 0x255bdc0] stream=1 stream_type=2 pid=45 prog_reg_desc=
[mpegts @ 0x255bdc0] max_analyze_duration 5000000 reached at 5016000 microseconds
rfps: 24.916667 0.015704
rfps: 24.916667 0.005524
rfps: 25.000000 0.000544
rfps: 25.000000 0.000544
rfps: 25.083333 0.005161
rfps: 25.166667 0.019375
rfps: 49.916667 0.007338
rfps: 49.916667 0.007338
rfps: 50.000000 0.002176
rfps: 50.000000 0.002176
rfps: 50.083333 0.006611
[mpegts @ 0x255bdc0] PES packet size mismatch
[mpegts @ 0x255bdc0] PES packet size mismatch
[mpegts @ 0x255bdc0] File position after avformat_find_stream_info() is 0
Input #0, mpegts, from 'test.ts':

Duration: 00:00:05.70, start: 72291.097622, bitrate: 1437 kb/s
Program 1

Stream #0:0[0x44](pol), 211, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
Stream #0:1[0x45](), 73, 1/90000: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 704x576 [SAR 16:11 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc

Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x2564420] Statistics: 1101968 bytes read, 2 seeks

Attachments (3)

test.ts (1000.0 KB ) - added by wpto 10 years ago.
CV-ffmpeg-20140125-195812.log (2.4 KB ) - added by wpto 10 years ago.
OV-ffmpeg-20140125-195700.log (2.5 KB ) - added by wpto 10 years ago.

Download all attachments as: .zip

Change History (5)

by wpto, 10 years ago

Attachment: test.ts added

by wpto, 10 years ago

by wpto, 10 years ago

comment:1 by Carl Eugen Hoyos, 10 years ago

Component: undeterminedavformat
Keywords: mpegts regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

Regression since 6eda91ad

$ ffmpeg -analyzeduration 2G -probesize 2G -i test.ts
ffmpeg version N-60177-g965fa6b Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan 26 2014 03:02:59 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 49.100 / 55. 49.100
  libavformat    55. 26.100 / 55. 26.100
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  1.101 /  4.  1.101
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mpegts @ 0x2d8c220] PES packet size mismatch
    Last message repeated 1 times
[mpegts @ 0x2d8c220] Could not find codec parameters for stream 1 (Video: mpeg2video ([2][0][0][0] / 0x0002)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'test.ts':
  Duration: 00:00:05.67, start: 72291.097622, bitrate: 1445 kb/s
  Program 1
    Stream #0:0[0x44](pol): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
    Stream #0:1[0x45](): Video: mpeg2video ([2][0][0][0] / 0x0002), 90k tbn
At least one output file must be specified

comment:2 by Michael Niedermayer, 10 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.