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

FFmpeg trac at avcodec.org
Mon Jun 20 10:07: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           |
Comment (by GJJ):

 Replying to [comment:7 Marton Balint]:
 > 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

 ✅passed in my test.
 @Marton Balint Thks for your patch
Ticket URL: <https://trac.ffmpeg.org/ticket/9782#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list