Opened 8 years ago
Last modified 8 years ago
#6295 new defect
Opening a hls source can time out becuase every item of the playlist is read
Reported by: | FernetMenta | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | hls |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
At Kodi we have a couple of issues regarding hls.
http://trac.kodi.tv/ticket/17422
http://trac.kodi.tv/ticket/17396
hls demuxer reads first segment of every item in the playlist. This can even result in a timeout and the stream does not start at all.
Change History (2)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
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.
How can I reproduce the issue with
ffmpeg
?