[FFmpeg-trac] #10785(undetermined:new): Unnecessary init segment reloads when playing HLS stream
FFmpeg
trac at avcodec.org
Tue Jan 9 15:22:36 EET 2024
#10785: Unnecessary init segment reloads when playing HLS stream
-------------------------------------+-------------------------------------
Reporter: Daniel | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
I have HLS server which initially sends media playlist with init segment
and 3 media segments (fMP4 format). Playlist then grows to 5 media
segments, and after this new segments replace oldest ones so playlist
always contains 5 segments. I noticed that ffplay reloads init segment
every time it is present in media playlist. Exact scenario is as follows -
here is list of files downloaded by ffplay from my HLS server:
- master playlist
- media playlist with init segment and media segments 0-2
- init segment
- media segment 0
- media segment 1
- media segment 2
- media playlist with init segment and media segments 0-3
- init segment
- media segment 3
- media playlist with init segment and media segments 0-4
- init segment
- media segment 4
- media playlist with media segments 1-5
- media segment 5
- media playlist with media segments 2-6
- media segment 6
- ... and so on
Because of this init segment reloading ffplay complains about duplicate
MOOV Atoms, plus video display is not smooth when it happen. I also tested
this with GStreamer and it does not reload init segment (I had to increase
max playlist size to 8 as GStreamer reloads it less often). My
understanding is that init segments is connected to media segment which it
precedes (in my case segment 0), so reloading should not happen, like in
GStreamer.
ffplay version 4.4.2-0ubuntu0.22.04.1
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10785>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list