Opened 4 months ago

Last modified 4 months ago

#10785 new defect

Unnecessary init segment reloads when playing HLS stream

Reported by: Daniel Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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

Change History (1)

Note: See TracTickets for help on using tickets.