Back

Blog details

What Is CMAF? The Common Media Application Format Explained

AIOZ Network
8 min readDecember 01, 2026
aioz-stream
AIOZ Stream knowledge hub cover with the headline What Is CMAF? The Common Media Application Format

CMAF, the Common Media Application Format, is an ISO standard (ISO/IEC 23000-19) for packaging video and audio as fragmented MP4, so one set of segment files can serve both HLS and DASH players. It is a packaging format, not a codec or a streaming protocol.

TL;DR:

  • CMAF defines how encoded media sits in files: one header per track plus fragmented MP4 segments that an HLS playlist and a DASH manifest can both point at.
  • Apple and Microsoft proposed it in 2016, and MPEG published it in 2018.
  • The standard's objects are track, header, segment, fragment and chunk, and chunks are what make low-latency HLS and DASH possible.
  • In our FFmpeg test, cutting each 4-second segment into eight 0.5-second chunks added a net 260 bytes per video segment.
  • On AIOZ Stream you set container_type per quality: mpegts or mp4 for HLS, fmp4 for DASH. The docs say HEVC on Apple devices needs fMP4/CMAF segments.

What is CMAF?

Before CMAF, if you wanted to reach every screen, you usually packaged each title twice. HLS, which Apple published in 2009, carried MPEG-TS segments, while MPEG-DASH, standardized in 2012, used fragmented MP4. Fora Soft counts the cost: two copies at the origin, two cache objects per segment at the CDN, and separate encryption for each.

Apple and Microsoft proposed a shared format to MPEG in February 2016, according to Wowza's timeline, and the HLS specification added fragmented MP4 segments that September. MPEG published the first edition of ISO/IEC 23000-19 in January 2018. The third edition, ISO/IEC 23000-19:2024, is the current base text.

CMAF is not a codec, because the H.264, HEVC or AV1 bitstream inside stays as encoded, as our guide to how video encoding, codecs and containers fit together explains. It is not a protocol either, since HLS and DASH still decide how your player finds the files. It is a constrained profile of the ISO Base Media File Format, the family behind MP4 and the other common video containers.

The CMAF object model: tracks, segments, fragments and chunks

Apple's page on CMAF with HLS lists the objects the standard defines. Learn the names, because "segment" means slightly different things in HLS, DASH and CMAF. From the top down:

  • Track: one encoded stream, such as your 720p video or your English audio, stored as a header plus fragments. Each track holds one media type.
  • Header: the setup data a player reads once, an ftyp box and a moov box that describe the codec. HLS points to it with EXT-X-MAP, DASH with its initialization attribute.
  • Segment: one or more consecutive fragments from the same track, and the file your player usually downloads.
  • Fragment: one or more chunks that begin on a frame the decoder can start from, so a player can switch quality at its boundary.
  • Chunk: a run of samples from a fragment in one moof and mdat box pair, which a packager can publish before the rest of the segment exists. In plain VOD a fragment is usually a single chunk.

Above the track, a switching set groups the renditions your player can swap between at fragment boundaries, the CMAF name for a bitrate ladder. A presentation combines switching sets, say your video plus two audio languages.

Labelled diagram of CMAF: an HLS media playlist and a DASH manifest both point at the same CMAF header init-0.m4s and the same 4-second segments, each made of moof and mdat chunks

Inside a CMAF package: what our test produced

We packaged a 12-second 720p H.264 and AAC test pattern with FFmpeg 7.0.2 here on 2026-10-29. We used stream copy, so nothing was re-encoded, and FFmpeg's DASH muxer wrote HLS playlists for the same files:

ffmpeg -i src.mp4 -map 0:v -map 0:a -c copy -f dash -seg_duration 4 \
  -use_template 1 -use_timeline 0 -hls_playlist 1 -format_options movflags=cmaf \
  -init_seg_name 'init-$RepresentationID$.m4s' \
  -media_seg_name 'seg-$RepresentationID$-$Number%03d$.m4s' manifest.mpd

That run wrote an init file and three 4-second segments per track, and both manifests name the same .m4s files (date-time lines trimmed):

# media_0.m3u8 (HLS)
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:4
#EXT-X-MAP:URI="init-0.m4s"
#EXTINF:4.000000,
seg-0-001.m4s

# manifest.mpd (DASH, excerpt)
<SegmentTemplate timescale="1000000" duration="4000000"
  initialization="init-$RepresentationID$.m4s"
  media="seg-$RepresentationID$-$Number%03d$.m4s" startNumber="1">

A short Python script that walks the top-level boxes showed the expected layout, with ftyp and moov in the header and one moof and mdat pair per segment:

init-0.m4s     ftyp moov             brands: iso6 cmfc mp41
seg-0-001.m4s  styp sidx moof mdat   brands: msdh msix

The header lists the CMAF structural brand cmfc only because we passed movflags=cmaf. Without that flag FFmpeg wrote no CMAF brand at all, and even with it the segments carried the DASH brands msdh and msix. The MP4 registration authority lists cmfc and cmf2 as structural brands, plus media profile brands such as cfhd (AVC HD) and chd1 (HEVC HDR10). If you serve strict players or run a validator, check what your packager writes rather than trusting the flag name.

Is CMAF the same as HLS or DASH?

No. HLS and DASH are delivery formats: each defines a manifest and how your player walks it. CMAF defines the media files those manifests point at. The HLS second-edition draft (RFC 8216bis) puts the link plainly: a CMAF header meets every rule for an fMP4 init section, and a CMAF segment meets the rules for an fMP4 segment.

MPEG-TS segmentsCMAF segments
StandardISO/IEC 13818-1 (broadcast transport stream)ISO/IEC 23000-19 (fragmented MP4)
Codec setupRepeated in every segmentOnce, in the CMAF header
Plays in HLSYesYes, via EXT-X-MAP
Plays in DASHNoYes
One copy for HLS and DASHNoYes, the reason it exists

You'll find the byte-level comparison in our guide to MPEG-TS vs fMP4 for HLS segments, and our HLS vs MPEG-DASH comparison covers manifests and device support. For WebRTC, RTMP and SRT, see the overview of video streaming protocols.

How does CMAF lower live streaming latency?

A segment can't be published until it is fully encoded, so a 4-second segment adds a delay equal to its duration. RFC 8216bis calls this publishing latency. Chunks remove the wait, because the packager can release each chunk as soon as its frames exist and your player can fetch a segment while it is still growing.

LL-HLS lists chunks as partial segments with EXT-X-PART tags, and the draft names CMAF chunks as its example. Low-latency DASH keeps the normal segment address and lets the player request it early over chunked transfer encoding.

We re-ran the packaging above with FFmpeg's low-latency DASH options, a 0.5-second fragment duration and streaming mode (the two file-name flags as before):

ffmpeg -i src.mp4 -map 0:v -map 0:a -c copy -f dash -seg_duration 4 \
  -frag_type duration -frag_duration 0.5 -streaming 1 -ldash 1 \
  -use_template 1 -use_timeline 0 -hls_playlist 1 -format_options movflags=cmaf manifest.mpd

Each 4-second video segment now held eight moof and mdat pairs instead of one. The MPD gained availabilityTimeOffset="3.500", which tells a DASH player it may ask for a segment 3.5 seconds before the segment is complete. The media bytes stayed identical, and the first video segment grew only from 1,603,880 to 1,604,140 bytes: seven more moof and mdat headers added 312 bytes, while the dropped sidx index box saved 52.

Our HLS playlist didn't change, because FFmpeg's DASH muxer writes no EXT-X-PART tags, so you need a packager that publishes partial segments for low-latency HLS. Chunks also fix only one stage: your encoder, CDN and player buffer add delay too, as our glass-to-glass latency breakdown shows.

Where CMAF still trips teams up

  • Separate audio: CMAF segments generally can't mix media types, so in HLS your audio becomes its own media playlist joined by EXT-X-MEDIA. The master playlist from our run did this with an EXT-X-MEDIA audio group.
  • Encryption scheme: one encrypted copy for FairPlay, Widevine and PlayReady needs the cbcs scheme, since FairPlay can't read cenc. Our guide to Widevine, FairPlay and PlayReady covers the client versions.
  • Missing tags: Apple says CMAF playlists should carry EXT-X-INDEPENDENT-SEGMENTS, because CMAF fragments decode on their own. FFmpeg's output above didn't include it.

How AIOZ Stream handles it

When you create a video through the AIOZ Stream API, each entry in qualities sets a resolution, a type and a container_type. The Video API reference says: "For hls, container_type supports mpegts or mp4. For dash, container_type supports fmp4." It adds that on Safari, iOS and tvOS, HLS supports HEVC/H.265 "only when segments are fMP4/CMAF", while H.264 works with both MPEG-TS and fMP4/CMAF.

So a ladder with HEVC for Apple devices plus a DASH rendition could look like this, built from the documented fields (not run, since we have no AIOZ credentials here):

POST https://api.aiozstream.network/api/media/create
{
  "title": "My Video",
  "type": "video",
  "qualities": [
    { "resolution": "2160p", "type": "hls", "container_type": "mp4",
      "video_config": { "codec": "h265", "bitrate": 20000000, "index": 0 } },
    { "resolution": "1080p", "type": "dash", "container_type": "fmp4",
      "video_config": { "codec": "h264", "bitrate": 5000000, "index": 0 } }
  ]
}

Both bitrates sit under the documented caps (30 Mbit/s at 2160p, 6 Mbit/s at 1080p). A finished video returns an hls_url ending in /m3u8 and a dash_url ending in /manifest. For live sessions, the dashboard offers Low Latency Mode (Beta), which the docs describe as reducing the delay between you and your audience.

What the docs don't cover yet: whether the HLS mp4 option writes CMAF brands, whether HLS and DASH qualities share one set of segments, and which mechanism Low Latency Mode uses.

Next step: set container_type per quality in the AIOZ Stream Video API reference.

FAQ

Is CMAF a codec or a protocol?
Neither. It's a packaging format: it fixes how your encoded video and audio sit in fragmented MP4 files, while codecs compress the media and HLS or DASH deliver it.

What is the difference between CMAF and fMP4?
CMAF is fragmented MP4 with extra rules: one media type per track, fragments that start on a decodable frame, and registered brands and media profiles. Every CMAF segment is fMP4, but not every fMP4 segment is CMAF.

Does CMAF reduce latency on its own?
Only with chunks and a delivery path that publishes them early, such as LL-HLS partial segments or low-latency DASH. A CMAF package with whole 4-second segments has the same publishing delay as plain fMP4.

Do I need CMAF to play HEVC in HLS on Apple devices?
You need fragmented MP4 segments, since Apple's HLS rules don't allow HEVC in MPEG-TS.

Which players support CMAF?
Apple's native player on iOS 10, macOS 10.12, tvOS 10 and later, plus web players such as hls.js, Shaka Player and dash.js, per Fora Soft. In your browser they feed the fragments to Media Source Extensions, as our guide to how web video players work explains.

For short definitions of fMP4, MPD and the other terms here, see the video streaming glossary.

References

We only send updates when meaningful changes ship, and you can unsubscribe anytime

Related Content

blog thumbnail

What Is MPEG-DASH? How the MPD Manifest File Works

MPEG-DASH streams adaptive video over HTTP from an XML MPD file. See a real MPD: Periods, AdaptationSets, Representations, segment addressing and live MPDs.

aioz-stream
8 min readDecember 04, 2026
blog thumbnail

What Is CMAF? The Common Media Application Format Explained

What is CMAF? The ISO format that packages video as fragmented MP4 so one set of files serves HLS and DASH, with its chunks, brands and low-latency role.

aioz-stream
8 min readDecember 01, 2026
blog thumbnail

CBR vs VBR vs CRF and When to Use Each Rate Control Mode

CBR vs VBR vs CRF explained: what each video rate control mode holds fixed, how maxrate and bufsize cap it, our x264 test results, and which mode to use where.

aioz-stream
7 min readNovember 27, 2026
blog thumbnail

Live Streaming API Tutorial for Sessions and Real-Time Stats

A live streaming API tutorial for AIOZ Stream: create a session, push RTMP, poll real-time stats every 5 to 30 seconds, then list the saved recordings.

aioz-stream
7 min readNovember 24, 2026
blog thumbnail

Restream to Multiple Platforms With AIOZ Stream Multicast

Restream to multiple platforms by sending one feed to a relay. Learn the bandwidth math, platform rules and how AIOZ Stream multicast forwards your RTMP stream.

aioz-stream
6 min readNovember 20, 2026
blog thumbnail

MPEG-TS vs fMP4 for HLS Segments and When to Use Each

MPEG-TS vs fMP4 for HLS: how 188-byte TS packets and fMP4 init segments differ, what each costs in overhead, which codecs need fMP4, and when TS still fits.

aioz-stream
7 min readNovember 17, 2026