[FFmpeg-user] Failed to open codec in avformat_find_stream_info

Mark Filipak markfilipak.windows+ffmpeg at gmail.com
Wed Apr 1 10:27:30 EEST 2020


On 04/01/2020 02:45 AM, Ted Park wrote:
> Hi,
> 
>> Oh, I see. So you think the inability to get the subtitle streams is related to the component that accesses the BD? Right? If so, I'm a bit mystified because I don't see how ffmpeg would know which MPLS (playlist file) relates to the M2TSs that I concatenated or even where the MPLS was located on the disc.
>>
>> Does that mean I should also point ffmpeg to the particular MPLS? I think I know how to suss out the particular MPLS, but how would I point ffmpeg to it? Or am I completely missing the point -- it would be the first time in the last minute or so. :-)
> 
> I was assuming it was a commercial pressed Blu-Ray. If so, then it is most likely copy protected...

Of course you are considering that possibility. No issue there. One word: AnyDVD-HD.

I've not encountered the "Failed to open codec in avformat_find_stream_info" before. I searched 
extensively prior to my 1st post but couldn't find anything definitive.

 From what you've written, I infer that ffmpeg *does* access the MPLS file somehow. Is that right? 
Assuming you answer is "Yes," and assuming that is what's producing the difficulty, I can say that 
AnyDVD-HD does make some on-the-fly alterations to what is reported to a query of the drive (though, 
as I wrote above, that's not previously been an issue).

Am I out of luck or is there some other cause for not fetching the subtitles (i.e., streams 9 to 26, 
below)?

(Note that I have other means of getting the subs, but it's pretty painful: Step 1, extract the 
video from the source by whatever means (ffmpeg or MKVToolNix). Step 2, transcode the source via 
HandBrake into a 2nd file. Step 3, bring files 1 & 2 into MKVToolNix. Step 4, deselect file 2's 
video stream but leave its subs enabled. Step 5, mkvmerge 1 & 2 into a 3rd destination file. If I 
could get ffmpeg to save the subs directly, then I would not need all those steps. Of course, if I 
didn't give a damn about subs, then I could skip all of this, but I do care about subs because I'm 
getting old enough that I sometimes need subs in segments that have muffled dialog.)

[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


More information about the ffmpeg-user mailing list