[FFmpeg-trac] #6295(undetermined:new): Opening a hls source can time out becuase every item of the playlist is read
FFmpeg
trac at avcodec.org
Thu Apr 13 08:24:57 EEST 2017
#6295: Opening a hls source can time out becuase every item of the playlist is
read
-------------------------------------+-------------------------------------
Reporter: FernetMenta | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: hls | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by FernetMenta):
First pass a hls playlist to ffmpeg like this one:
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8
ffmpeg hls demuxer will read the first segment of the 8 items of this
playlist. Depending on the bandwidth of your internet connection this may
take a while. OP of ticket 17422 reported 6 seconds.
Now pass only one item of this playlist:
http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/1240_vod.m3u8
This is much faster.
The problem is that ffmpeg spends the time in avformat_open_input not in
analyze_streams. The latter allows a timeout. If the hls playlist is long
enough, ffmpeg fails on open.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6295#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list