StreamTest

HLS segment durations vary widely

Inconsistent segment lengths make buffer estimation and ABR switching erratic.

What it means

The longest and shortest segments differ by more than about 1.5x, excluding the final segment of a VOD playlist which is legitimately short.

Why it matters

Players reason about the buffer in seconds and about download time per segment. When segment length jumps around, both estimates go wrong: the player either over-buffers, adding latency, or under-buffers and rebuffers. It also makes bitrate switching land at unpredictable moments.

How to fix it

  1. Set the encoder GOP length to divide evenly into the target segment duration, so the packager can always cut where it wants to.
  2. Variable-length segments usually mean the packager is cutting at whatever keyframe it can find rather than at a fixed cadence.
  3. A run of short segments after a discontinuity is normal and can be ignored.

Check your own stream

The free HLS analyzer runs this check on every analysis and links each finding straight back here.

Open the HLS analyzer

Frequently asked questions

What does "HLS segment durations vary widely" mean?
The longest and shortest segments differ by more than about 1.5x, excluding the final segment of a VOD playlist which is legitimately short.
Why does it matter?
Players reason about the buffer in seconds and about download time per segment. When segment length jumps around, both estimates go wrong: the player either over-buffers, adding latency, or under-buffers and rebuffers. It also makes bitrate switching land at unpredictable moments.
How do I fix it?
1. Set the encoder GOP length to divide evenly into the target segment duration, so the packager can always cut where it wants to. 2. Variable-length segments usually mean the packager is cutting at whatever keyframe it can find rather than at a fixed cadence. 3. A run of short segments after a discontinuity is normal and can be ignored.
How can I detect this automatically?
Paste your HLS streaming URL into StreamTest's free HLS analyzer. It runs this check on every analysis, flags the finding, and links straight back to this page — no sign-up required.

Related HLS checks