[FFmpeg-user] Failed to open codec in avformat_find_stream_info

Mark Filipak markfilipak.windows+ffmpeg at gmail.com
Tue Mar 31 20:16:53 EEST 2020


You can see from the terminal output that I've increased '-analyzeduration' from 5s to 80s and 
'-probesize' from 5MB to 80MB by doubling the values with each try.
I suspect that the actual problem is "Failed to open codec in avformat_find_stream_info".
Do you have any suggestions?

Note that I'm not streaming, so I don't care about latency.

Thanks for your attention & your help,
Mark.

C:\CMD & tiny apps\ffmpeg>ffmpeg -i B:\BDMV\STREAM\00000.m2ts -vf 
"telecine=pattern=5555,bwdif=mode=send_frame" -avoid_negative_ts 1 -analyzeduration 80000000 
-probesize 80000000 -c:v libx265 -crf 20 -preset medium -c:a copy -c:s copy C:\AVOut\8.MKV
ffmpeg version N-94664-g0821bc4eee Copyright (c) 2000-2019 the FFmpeg developers
   built with gcc 9.1.1 (GCC) 20190807
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls 
--enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora 
--enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp 
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex 
--enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid 
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
   libavutil      56. 33.100 / 56. 33.100
   libavcodec     58. 55.101 / 58. 55.101
   libavformat    58. 31.104 / 58. 31.104
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 58.101 /  7. 58.101
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
[mpegts @ 000001bd325bb440] Failed to open codec in avformat_find_stream_info
[mpegts @ 000001bd325bb440] start time for stream 9 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 10 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 11 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 12 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 13 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 14 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 15 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 16 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 17 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 18 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 19 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 20 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 21 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 22 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 23 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 24 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 25 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] start time for stream 26 is not set in estimate_timings_from_pts
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 9 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 10 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 11 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 12 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 13 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 14 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 15 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 16 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 17 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 18 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 19 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 20 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 21 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 22 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 23 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 24 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 25 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 000001bd325bb440] Could not find codec parameters for stream 26 (Subtitle: 
hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'B:\BDMV\STREAM\00000.m2ts':
   Duration: 02:28:51.68, start: 11.650667, bitrate: 22336 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: vc1 (Advanced) (VC-1 / 0x312D4356), yuv420p(progressive), 1920x1080 
[SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:2[0x1101]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), s16, 4608 kb/s
     Stream #0:3[0x1102]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:4[0x1103]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:5[0x1104]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:6[0x1105]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:7[0x1106]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:8[0x1107]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:9[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:10[0x1201]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:11[0x1202]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:12[0x1203]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:13[0x1204]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:14[0x1205]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:15[0x1206]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:16[0x1207]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:17[0x1208]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:18[0x1209]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:19[0x120a]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:20[0x120b]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:21[0x120c]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:22[0x120d]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:23[0x120e]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:24[0x120f]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:25[0x1210]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
     Stream #0:26[0x1211]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream mapping:
   Stream #0:0 -> #0:0 (vc1 (native) -> hevc (libx265))
   Stream #0:1 -> #0:1 (copy)
   Stream #0:9 -> #0:2 (copy)
Press [q] to stop, [?] for help
[Parsed_telecine_0 @ 000001bd33411f40] Telecine pattern 5555 yields up to 3 frames per frame, pts 
advance factor: 8/20
x265 [info]: HEVC encoder version 3.1+11-de920e0a3183
x265 [info]: build info [Windows][GCC 9.1.1][64 bit] 8bit+10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-4.1 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-20.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip signhide tmvp b-intra
x265 [info]: tools: strong-intra-smoothing lslices=6 deblock sao
Output #0, matroska, to 'C:\AVOut\8.MKV':
   Metadata:
     encoder         : Lavf58.31.104
     Stream #0:0: Video: hevc (libx265), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 
1k tbn, 59.94 tbc
     Metadata:
       encoder         : Lavc58.55.101 libx265
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: 18446744073709551615
     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:2: Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF)
frame=  106 fps= 36 q=-0.0 Lsize=      81kB time=00:00:01.71 bitrate= 386.1kbits/s speed=0.576x
video:12kB audio:65kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 5.152026%
x265 [info]: frame I:      1, Avg QP:27.47  kb/s: 290.59
x265 [info]: frame P:     34, Avg QP:28.00  kb/s: 56.92
x265 [info]: frame B:     71, Avg QP:30.72  kb/s: 50.86
x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x265 [info]: consecutive B-frames: 31.4% 11.4% 17.1% 2.9% 37.1%

encoded 106 frames in 2.85s (37.21 fps), 55.07 kb/s, Avg QP:29.82
Exiting normally, received signal 2.


More information about the ffmpeg-user mailing list