
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:
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.
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:
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.

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.mpdThat 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 msixThe 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.
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 segments | CMAF segments | |
|---|---|---|
| Standard | ISO/IEC 13818-1 (broadcast transport stream) | ISO/IEC 23000-19 (fragmented MP4) |
| Codec setup | Repeated in every segment | Once, in the CMAF header |
| Plays in HLS | Yes | Yes, via EXT-X-MAP |
| Plays in DASH | No | Yes |
| One copy for HLS and DASH | No | Yes, 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.
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.mpdEach 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.
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.
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.

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

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.

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.

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.

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.

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.