[FFmpeg-user] Failed to open codec in avformat_find_stream_info

Mark Filipak markfilipak.windows+ffmpeg at gmail.com
Wed Apr 1 16:13:07 EEST 2020


On 04/01/2020 06:53 AM, Mark Filipak wrote:
> On 04/01/2020 04:21 AM, Ted Park wrote:
-snip-
>> The folder/file hierarchy is one of the few things well known and relatively consistent in format, 
>> that’s how libbluray would find the playlist. Then it executes the playlist to determine which 
>> media files, and the range within the files to read.
> 
> Ah, so it's automatic.
> 
> Test:
> What I'll try is making the ISO on the SS RAID, mount it, and ffmepg the mounted ISO to my 16TB JOBD 
> media server (as I usually do). ...It's hard to imagine that BD drive latency was the source of the 
> failure -- the BD drive is built-in and is fast -- but this will be a conclusive test.

The test...
Failure. And now I have 2 issues:
1, "Failed to open codec in avformat_find_stream_info" is still there, and
2, I realized I need '-map 0' and now get "No wav codec tag found for codec pcm_bluray".
Oh, dear.

pcm_bluray either doesn't exist, or it's not in the documentation. I assume this is LPCM, and I do 
want that. I'm copying through all audio, '-c:a copy', so I don't understand why ffmpeg would need 
the codec and would be looking for codec pcm_bluray.

And I still don't understand what '-map 0' does, but I'll try to find it in the docs and read it 
again. I keep forgetting about it.


C:\>ffmpeg -i IN.M2TS -vf "telecine=pattern=5555,bwdif=mode=send_frame" -avoid_negative_ts 1 -c:v 
libx264 -crf 20 -preset slower -tune film -c:a copy -c:s copy -map 0 OUT.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 @ 0000024956f7a0c0] Failed to open codec in avformat_find_stream_info
[mpegts @ 0000024956f7a0c0] start time for stream 9 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 10 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 11 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 12 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 13 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 14 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 15 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 16 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 17 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 18 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 19 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 20 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 21 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 22 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 23 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 24 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 25 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] start time for stream 26 is not set in estimate_timings_from_pts
[mpegts @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 @ 0000024956f7a0c0] 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 'IN.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) -> h264 (libx264))
   Stream #0:1 -> #0:1 (copy)
   Stream #0:2 -> #0:2 (copy)
   Stream #0:3 -> #0:3 (copy)
   Stream #0:4 -> #0:4 (copy)
   Stream #0:5 -> #0:5 (copy)
   Stream #0:6 -> #0:6 (copy)
   Stream #0:7 -> #0:7 (copy)
   Stream #0:8 -> #0:8 (copy)
   Stream #0:9 -> #0:9 (copy)
   Stream #0:10 -> #0:10 (copy)
   Stream #0:11 -> #0:11 (copy)
   Stream #0:12 -> #0:12 (copy)
   Stream #0:13 -> #0:13 (copy)
   Stream #0:14 -> #0:14 (copy)
   Stream #0:15 -> #0:15 (copy)
   Stream #0:16 -> #0:16 (copy)
   Stream #0:17 -> #0:17 (copy)
   Stream #0:18 -> #0:18 (copy)
   Stream #0:19 -> #0:19 (copy)
   Stream #0:20 -> #0:20 (copy)
   Stream #0:21 -> #0:21 (copy)
   Stream #0:22 -> #0:22 (copy)
   Stream #0:23 -> #0:23 (copy)
   Stream #0:24 -> #0:24 (copy)
   Stream #0:25 -> #0:25 (copy)
   Stream #0:26 -> #0:26 (copy)
Press [q] to stop, [?] for help
[Parsed_telecine_0 @ 0000024956f79f40] Telecine pattern 5555 yields up to 3 frames per frame, pts 
advance factor: 8/20
[libx264 @ 0000024957dcdc00] using SAR=1/1
[libx264 @ 0000024957dcdc00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000024957dcdc00] profile High, level 5.0, 4:2:0, 8-bit
[libx264 @ 0000024957dcdc00] 264 - core 158 r2984 3759fcb - H.264/MPEG-4 AVC codec - Copyleft 
2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=8 deblock=1:-1:-1 
analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=16 chroma_me=1 
trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=12 
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 
keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=20.0 
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[matroska @ 00000249575bd700] No wav codec tag found for codec pcm_bluray
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --
Conversion failed!


More information about the ffmpeg-user mailing list