[FFmpeg-trac] #9782(avformat:new): avformat_find_stream_info too slow with open TS stream

FFmpeg trac at avcodec.org
Wed Jun 15 08:46:57 EEST 2022

#9782: avformat_find_stream_info too slow with open TS stream
             Reporter:  GJJ         |                    Owner:  (none)
                 Type:  defect      |                   Status:  new
             Priority:  important   |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
Changes (by Marton Balint):

 * cc: Marton Balint (added)


 It seems that part of code is some hack for broken files from the old

 I have sent a patch which eliminates it more completetly.


 Also note that for ffmpeg tests I needed to specify -scan_all_pmts 0 to be
 able to test this, otherwise it does not really make a difference, because
 ffmpeg implicitly sets it to 1 which ultimately causes the code in
 avformat_find_stream_info() to effectively read the whole probesize during
Ticket URL: <https://trac.ffmpeg.org/ticket/9782#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list