Operating principle
A Multivariant Playlist lists the available Variant Streams. After choosing a variant, the player reads one or more Media Playlists, for example separate video and audio, and retrieves segments over HTTP. A live playlist changes as the packager publishes new segments.
Each EXT-X-STREAM-INF describes one Variant Stream. Its BANDWIDTH is expressed in bits per second. For existing segments, take the sum of the peak segment rates for each playable combination of renditions in that variant and declare the largest sum. For a single Media Playlist, use its peak segment rate.
For each Media Playlist, evaluate contiguous runs of segments lasting 0.5 to 1.5 target durations. Divide the bits in each run by its duration and take the maximum. This includes container bytes and excludes HTTP, TCP and IP overhead. When advertising a live variant before all segments exist, estimate BANDWIDTH from a representative period of similar material encoded with the same settings. CDN planning uses the measured audience mix of delivered rates.
Budget one Variant Stream
One video playlist peaks at 5.8 Mb/s. The US-English and French audio playlists peak at 0.128 and 0.256 Mb/s and only one can play with that video at a time. For already-created segments the largest playable sum is 5.8 + 0.256 = 6.056 Mb/s, so BANDWIDTH is 6056000. Other variants advertised in the same Multivariant Playlist have their own declarations.
Where it fits
HLS sits between an HTTP packager or origin and a compatible playback client. Use it for OTT live channels, event streaming and video on demand. Upstream contribution, packaging and edge delivery each have their own capacity and resilience requirements.
Advantages and limitations
Advantages. HTTP delivery lets segments be cached at the edge. Multiple renditions let clients adapt to changing network conditions and device capabilities.
Limitations. Live delay includes encoding, packaging, publication and player buffering. A larger rendition ladder adds encoding, quality-control and storage work. A latency commitment needs a device, workload and measurement boundary.
Maturity
RFC 8216 (2017) documents the base protocol. For Low-Latency HLS, consult Apple’s current authoring requirements and the second-edition protocol draft. A packager can publish partial segments, while a client can ask the server to hold a playlist request until the requested update is available. Check that the origin, CDN and players support the same delivery directives. Measure live delay at the target devices.
Procurement checks
- Establish the playback matrix.Record devices, OS versions, codecs, audio tracks, subtitles and protection profiles. Exercise representative combinations on actual devices.
- Test a live switch.Introduce a controlled throughput drop and recovery. Inspect the segment timeline alongside the player log for switching delay, stalls, discontinuities and audio continuity.
- Specify the load boundary.Separate viewer-facing edge egress from origin traffic. Use the byte cache-hit ratio to estimate how much media traffic is offloaded from the origin. A request hit ratio weights small and large objects equally. The delivered bytes still cross the edge toward the viewer.
Edge egress estimate
Estimate the aggregate media rate leaving a unicast CDN edge for a live audience. Use the audience-weighted average delivered bitrate, including audio and container overhead.
Viewers × Mb/s per viewer × (1 + extra capacity / 100) ÷ 1,000 = Gb/s
The margin is added to aggregate media demand. A 20% addition sizes capacity at 1.2 times demand. To hold 20% of installed capacity in reserve instead, divide demand by 0.8. Model protocol overhead, retries, regional imbalance and failover separately for a committed capacity figure. Units are decimal.