To reduce latency in our live HLS service, we are experimenting with short segment durations (1–2 seconds). We have noticed that ABR switching occurs more frequently than expected.
Looking at the console logs, variants appear to enter and leave what is referred to as a "penalty box" under conditions such as -12889 (a segment returning 0 bytes after 1.0 × target_duration) and -12888 (a playlist remaining unchanged beyond 1.5 × target_duration).
Are there recommended practices to reduce this excessive switching? Specifically:
Is there an API to control this penalty box behavior?
Would preparing an LL-HLS stream with 1-second parts settle this down?
Alternatively, would 4-second segments with a slightly smaller configuredTimeOffsetFromLive help stabilize this?
Topic:
Media Technologies
SubTopic:
Streaming
1
2
121