What CMAF stands for
CMAF stands for Common Media Application Format. It is an international standard, ISO/IEC 23000-19, published by MPEG in 2018 after Apple and Microsoft proposed it in 2016. It defines how audio, video and subtitles are packaged into segments of fragmented MP4 (fMP4, based on the ISO base media file format), so the same segments can be listed in an HLS playlist (.m3u8) and in a DASH manifest (.mpd).
Three things it is not, because they cause most of the confusion. It is not a streaming protocol: HLS and DASH are still how the player finds and downloads the media. It is not a codec: inside a CMAF segment you find H.264, HEVC, AV1 or another supported codec. And it is not a player. CMAF is the packaging, the set of rules for the box the media travels in.
The problem CMAF solves
For years, HLS used MPEG-TS segments (.ts files) and DASH used fragmented MP4. A service that wanted to reach Apple devices through HLS and other devices through DASH had to package everything twice, store two copies and let its CDN cache both, which halves the chance that any given file is already in cache. In 2016 Apple added fMP4 support to HLS, documented today in its HTTP Live Streaming resources, and CMAF turned that into a common format both could share.
| Without CMAF | With CMAF |
|---|---|
| .ts segments for HLS and fMP4 segments for DASH | One set of fMP4 segments for both |
| Two copies in storage and in CDN caches | One copy plus two small manifests |
| Packaging work done twice | Package once |
| Each format competes for cache space | A better cache hit ratio at the CDN |
One condition applies: a single copy only works when every target device accepts the same codec and the same encryption mode. When they do not, you still package variants, as the section on DRM below explains.
What a CMAF stream looks like
/live/channel/
master.m3u8 HLS playlist
manifest.mpd DASH manifest
video/1080p/init.mp4 initialization segment
video/1080p/seg_1.m4s media segment
video/1080p/seg_2.m4s
video/720p/init.mp4
video/720p/seg_1.m4s
audio/init.mp4
audio/seg_1.m4s Each track has an initialization segment with the codec configuration, followed by a series of media segments (.m4s). The HLS playlist and the DASH manifest are two small text files pointing at exactly the same .m4s files.
CMAF names the pieces precisely. A chunk is the smallest unit, one fragment header plus its media data. A fragment is one or more chunks that starts with a keyframe. A segment is one or more fragments, and it is the unit a manifest lists. Those small chunks are what makes low latency possible.
CMAF and low latency: chunks
Classic HLS latency comes from waiting. A 6 second segment cannot be published until all 6 seconds are encoded, and the player wants a few segments in hand before it starts. CMAF chunks break that wait: a chunk of a few hundred milliseconds can leave the packager as soon as it is encoded, while the rest of the segment is still being written. Low-latency DASH delivers those chunks with HTTP chunked transfer encoding, and Low-Latency HLS publishes them as partial segments announced in the playlist.
| Approach | Typical latency | How it works |
|---|---|---|
| HLS with 6 s segments | 15 to 30 s | The player waits for complete segments and buffers several |
| Low-Latency HLS | About 2 to 5 s | Partial segments with preload hints in the playlist |
| Low-latency DASH with CMAF chunks | About 2 to 5 s | Chunks sent with chunked transfer encoding |
| WebRTC | Under 1 s | No segments: frames travel over a real-time session, usually relayed by a media server |
On XtreamCast, the standard HLS player keeps about 30 seconds of margin on purpose, for stability. The LL-HLS add-on brings a channel to about 3 seconds for USD 20/month, activated by our team with no change to your encoder; we explain the mechanics in our guide to LL-HLS.
Codecs, encryption and DRM in CMAF
CMAF defines media profiles for the common codecs: H.264 (AVC), HEVC and AV1 on the video side, AAC and Dolby's AC-3 and E-AC-3 among others for audio, and WebVTT and IMSC for subtitles.
Encryption is where "one file for every device" gets complicated. CMAF uses Common Encryption (CENC), which has two main modes: cenc, based on AES-CTR, and cbcs, based on AES-CBC with a pattern. Apple's FairPlay uses cbcs, and Widevine and PlayReady support cbcs on current devices, so one cbcs copy can serve all three DRM systems on modern hardware. Older devices that only handle cenc still need a second copy. If DRM is on your roadmap, our guide to DRM with Widevine and FairPlay covers the rest.
XtreamCast does not offer DRM. Channel protection relies on SecureToken, country geoblocking and player domain restriction, all described on our security page.
Who uses CMAF, and do you need to care?
CMAF is mainstream on the packaging side: professional packagers and cloud services output it (AWS Elemental MediaConvert, for example, has a dedicated CMAF output), and the common players, from Safari to hls.js, dash.js and Shaka Player, play fragmented MP4. Whether you should care depends on your size.
- Large services that deliver HLS and DASH, with DRM and large CDN bills: CMAF pays off in storage, packaging and cache efficiency.
- Medium operators: if your packager already does it, use it; migrating only for CMAF rarely justifies the work.
- Small operators and HLS-only channels: it changes little. The container is your platform's job, not yours.
XtreamCast customers are in that last case. We deliver HLS and not DASH, so CMAF's main benefit, sharing segments between the two, does not apply. You send H.264 and AAC by RTMP or SRT, and the server packages the HLS that Player Advance™ plays. What matters more for smooth quality switching is keyframe alignment across renditions, which XtreamTranscoder takes care of when it adds 720p, 480p and 240p to your original.
If you are moving to CMAF, check this first
- The devices in your audience. Some older smart TVs and set-top boxes only play HLS with .ts segments.
- Codec and encryption mode per device, especially cbcs versus cenc if you use DRM.
- Keyframe alignment across every rendition, so segment boundaries match and players can switch cleanly.
- Player versions and their low-latency modes, in hls.js, dash.js, Shaka or native players.
- CDN behavior with chunked transfer and with the blocking playlist requests that LL-HLS uses.
CMAF also comes up in conversations about what might replace segments altogether. That is Media over QUIC, which we cover in what MoQ is. And to see where CMAF sits among delivery protocols, read RTMP vs HLS vs WebRTC.
Low-latency HLS without repackaging anything yourself
Send H.264 and AAC by RTMP or SRT and XtreamCast packages the HLS. Add LL-HLS to a channel for about 3 seconds of delay, with no change to your encoder.