Opened 12 months ago

Last modified 11 months 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


At Kodi we have a couple of issues regarding hls.

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 Changed 11 months ago by cehoyos

How can I reproduce the issue with ffmpeg?

comment:2 Changed 11 months ago by FernetMenta

First pass a hls playlist to ffmpeg like this one:

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:

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.

Note: See TracTickets for help on using tickets.