Ch. 15 · Low-Latency and Real-Time Streaming

한국어日本語
9 min

LL-HLS, LL-DASH, and CMAF Chunks

How to send pieces (chunks or parts) before a segment is finished, bringing latency down to a few seconds.

In regular HLS and DASH, the biggest bottleneck was that a segment is only delivered once it is complete. The shared idea of the low-latency extensions is simple: split the segment into smaller pieces and send them piece by piece before the segment ends. The foundation for these pieces is the CMAF format (CMAF intro).

CMAF chunks

A CMAF segment is a fragmented MP4, and a single segment can be made up of several chunks. Each chunk is a moof (fragment info) + mdat (the actual media data) pair, which makes it the smallest unit for sending and preparing playback. However, a chunk is not always decodable on its own: usually only the first chunk of a segment starts with a keyframe, and the chunks after it may reference earlier frames. The encoder and packager don't wait for the segment to end; they send out each chunk as it fills up.

Regular segment Sending starts only after the whole segment is made → CMAF chunks Each chunk is sent as soon as it's made → the player can start preparing playback as it arrives Even with the same segment length, the first piece reaches the viewer much sooner
Regular segment vs. chunked delivery: part of it goes out before it's complete

LL-DASH: streaming chunks over HTTP

The key to LL-DASH (CMAF low-latency) is sending chunks via HTTP chunked transfer. When the server is asked for a segment file that isn't finished yet, it starts streaming the chunks it has made so far. The manifest (MPD) is known to carry information saying the segment is available to request before it is complete, along with hints such as a target latency. For the specific field names and values, see the DASH-IF low-latency guidelines.

LL-HLS: parts and blocking requests

LL-HLS is Apple's low-latency extension to HLS. It splits segments into smaller parts (partial segments) and publishes them in the playlist, and the player is designed to receive the next part the moment it appears. Below are the representative components introduced in Apple's HLS specification.

ComponentWhat it does
Partial Segment (EXT-X-PART)Splits a segment into shorter pieces and publishes them in the playlist early
Blocking Playlist ReloadThe player asks to be told when the next, not-yet-existing part appears; the server holds the response until it's ready, then sends it — this removes the delay from repeated polling
Preload Hint (EXT-X-PRELOAD-HINT)Announces the address of an upcoming part in advance so the player can issue the request early
Playlist Delta UpdateSends only the changed portion instead of the whole playlist, making responses lighter

For exact tag and query names and requirements, check Apple's HLS specification (IETF RFC 8216 and later revisions) and the Apple Developer documentation.

What the two approaches have in common

Both LL-HLS and LL-DASH work by sending CMAF-based pieces before they're complete, with the player picking them up right away. So CMAF's advantage of letting two manifests share the same piece files carries over to low latency. Both still run over HTTP, so a big advantage is that you can keep using your existing CDN and ABR (quality ladder) setup. However, the CDN, packager, and player you use must all support low latency.

FFmpeg alone may fall short

FFmpeg's hls and dash muxers are widely used for producing regular segments, and the DASH side is known to have low-latency options (-ldash, -streaming, and so on). But it is hard to expect FFmpeg alone to deliver a service with all of LL-HLS's parts, blocking reload, and preload hints. Low-latency packaging and serving is often handled by a dedicated media server or a cloud service. Check which options are supported in your own build with ffmpeg -h muxer=dash.

Making regular (non-low-latency) HLS pieces: an example with 2-second segments matched to a 2-second keyframe interval
ffmpeg -i INPUT \
  -c:v libx264 -preset veryfast -tune zerolatency -g 60 -keyint_min 60 -sc_threshold 0 \
  -c:a aac \
  -f hls -hls_time 2 -hls_list_size 6 \
  -hls_flags delete_segments+independent_segments \
  live.m3u8

The command above is an example where hls_time 2 (2-second segments) lines up with -g 60 (2 seconds at 30fps). This alone does not give you LL-HLS; it is a regular HLS setup that uses relatively short segments. independent_segments marks that each segment can be decoded independently.

LL-HLSLow-latency HLS

Apple's low-latency extension of HLS, adding parts (partial segments), blocking reload, and preload hints.

LL-DASHLow-latency DASH

A DASH approach that delivers CMAF chunks via HTTP chunked transfer, starting before the segment is complete.

CMAF chunkCMAF chunk

A sub-piece of a CMAF segment made of a moof+mdat pair. The unit of transfer in low latency.

Partial segmentPartial segment

A finer piece of a segment in LL-HLS. It is listed in the playlist as EXT-X-PART.

Chunked transferChunked transfer encoding

An HTTP transfer method that sends pieces one after another without knowing the total length of the response.

Check yourself

What is the key way LL-DASH gets lower latency than regular segments?

Check yourself

What does LL-HLS's Blocking Playlist Reload do?