HLS.Live: why playback gap (vs realtime) is always larger than playlist length?
- Dominant language
- ActionScript
- Stars
- 744
- Forks
- 259
- PR merge metrics
- No merged PRs in 30d
Description
options:
minBufferLength = 3
maxBufferLength = 5
Playlist:
TD = 2 sec
4 file ~ 8 sec (> 3xTD)
Playlist length: ~8 sec.
Buffer length 8-10 sec (> 4xTD), regardless options above.
As a result, the playback gap from real time is significant 9-12 seconds,
but HLS standard (without options) recommend for 3xTD (6 sec.) for players,
and with options above should be 5 seconds.
Why?
P.S.
hls.js { liveSyncDurationCount: 2, liveMaxLatencyDurationCount: 4 }
at the same stream gives delay 4-5 sec stable.
If you wish, I can provide the stream for debugging.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce playback with minBufferLength=3 and maxBufferLength=5 against the reported playlist and compare the observed live gap with the configured limits. Trace the live buffer and latency calculation; done means the playback gap follows the options and the expected HLS target-duration behavior.
Written by the indexing model from the issue text.
Assessment
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100