What Is CMAF? Guide to Common Media Application Format in Streaming

CK CK 3828 
Created at  
117 0 0

What is CMAF?

CMAF stands for Common Media Application Format (officially standard ISO/IEC 23000-19). Developed by MPEG and published in 2018, CMAF is a standardized media format designed to simplify the encoding, storage, and delivery of over-the-top (OTT) video streaming.

Rather than being a new streaming protocol, CMAF is a standardized container format based on the Fragmented MP4 (fMP4) structure. It was created through a collaboration between major industry leaders—including Apple and Microsoft—to unify HTTP-based video streaming.
 

The Problem CMAF Solved

Before CMAF, the live and on-demand streaming landscape was fractured primarily between two dominant ecosystems:

  • Apple HLS (HTTP Live Streaming): Historically required media packaged in MPEG-2 Transport Stream (.ts) containers.
  • MPEG-DASH: Historically used Fragmented MP4 (.mp4 / .m4s) containers.

 

The Consequences of Ecosystem Fragmentation:

  1. Duplicate Storage Costs: Publishers had to encode, store, and distribute the exact same video stream twice (once in .ts for Apple devices, once in .mp4 for Android, Web, Smart TVs, and Windows).
  2. Inefficient CDN Caching: Content Delivery Networks (CDNs) had to cache two separate versions of the same file, reducing cache efficiency and increasing bandwidth costs.
  3. High Latency: Traditional HLS and DASH delivery models suffered from a standard latency of 15 to 30 seconds behind live events.

 

Key Architectural Features of CMAF

CMAF brings standardization across several core components of video packaging:

 

1. Unified Container Structure (fMP4)

CMAF mandates the use of Fragmented MP4 (fMP4) files. Media files are broken down into independent, self-contained fragments (Header, Index, and Data fragments), allowing playback to begin as soon as the first fragment arrives.

 

2. Common Encryption (CENC)

CMAF supports Common Encryption, allowing media files to be encrypted once using Digital Rights Management (DRM) standards, while still remaining playable across different system DRM agents:

  • Apple FairPlay
  • Google Widevine
  • Microsoft PlayReady

(Note: Most modern CMAF implementations utilize CBCS mode encryption, which is natively supported across iOS, Android, and web platforms).

 

3. Media Profiles and Codecs

CMAF specifies exact standard profiles for modern video and audio codecs to ensure broad device compatibility:

  • Video: H.264 (AVC), H.265 (HEVC), AV1, VVC.
  • Audio: AAC, Dolby Digital Plus (E-AC-3), Opus.
  • Subtitles: IMSC1 (TTML) and WebVTT.

 

CMAF and Low-Latency Streaming (LL-CMAF)

One of CMAF’s most significant advancements is its support for Ultra-Low Latency Streaming (reducing broadcast delay down to 1–3 seconds, matching or beating traditional cable TV).

What Is CMAF? Guide to Common Media Application Format in Streaming

How Low Latency Works in CMAF:

  1. Chunked Encoding: A single CMAF media segment (e.g., 2–6 seconds long) is broken down internally into smaller units called Chunks (e.g., 200–500 milliseconds long).
  2. HTTP Chunked Transfer Encoding: The encoder can publish, and the origin server can stream, individual chunks to the client while the rest of the parent segment is still being created.
  3. Simultaneous Playback: The player begins decoding and displaying Chunk 1 without waiting for Chunk 2, 3, or the full 6-second segment to finalize.

 

CMAF vs. HLS and DASH

It is a common misconception that CMAF replaces HLS or DASH. In reality, CMAF works alongside them.

ComponentRoleExamples
Media Container (CMAF)Defines how audio, video, and text data are packaged into physical files..mp4, .m4s fragments
Streaming Protocol (HLS / DASH)Defines the manifest files (playlists) that direct the client player on which media files to download..m3u8 (HLS), .mpd (DASH)

 

How They Work Together:
A publisher creates one set of CMAF media files stored on the server. They then generate two lightweight manifest files pointing to those exact same media files:

  • An HLS Manifest (.m3u8) for Apple devices.
  • A DASH Manifest (.mpd) for Smart TVs, Android, and web platforms.


Key Benefits of CMAF

  • 50% Reduction in Storage & Encoding Costs: Store only one copy of video files instead of duplicating formats for HLS (.ts) and DASH (.mp4).
  • Increased CDN Cache Efficiency: A single media object is cached at the edge server, significantly raising the cache hit ratio and decreasing server load.
  • Broadcast-Grade Latency: Enables real-time interactivity for sports betting, live auctions, gaming streams, and social media apps via LL-CMAF.
  • Streamlined DRM Workflows: Single-file encryption through CENC reduces multi-DRM deployment complexity.

 

Current Challenges and Considerations

  • Legacy Device Compatibility: Very old legacy devices (e.g., older Smart TVs, older iOS devices) do not natively support fMP4 files via HLS and still require traditional MPEG-2 TS files.
  • Encryption Mode Mismatches: Historically, Apple favored CBCS mode encryption while Microsoft/Google used CTR (CENC) mode. While the industry has mostly converged on CBCS, legacy hardware may still require CTR.

 

[Stupid Question] So does that mean CMAF is a video file, or is it a manifest like m3u8?

CMAF (Common Media Application Format) is a video media file format, specifically based on the fMP4 (Fragmented MP4) container specification, and not a manifest like .m3u8 or .mpd.

Here is a breakdown of how they differ and work together:

1. CMAF (Common Media Application Format)

  • What it is: The actual media container format holding encoded audio, video, or subtitle data.
  • Format: It uses fragmented MP4 files (e.g., .m4s, .mp4).
  • Role: It standardizes how media segments are packaged so that a single set of video files can be played back across different ecosystems (Apple, Android, Web, Smart TVs) without duplicating storage into separate .ts or .mp4 formats.

2. m3u8 / MPD (Manifest Files)

  • What it is: A text-based playlist / instruction document (Manifest).
  • Role: It contains the metadata, URLs, index, and order of the media segment files so the video player knows which CMAF chunk/segment to request and play next.
    • HLS Manifest: .m3u8
    • DASH Manifest: .mpd

Key Summary

CMAF is the actual fragmented video/audio file, while m3u8 is the playlist/manifest file that directs the player on how to fetch and play those CMAF video files.

What Is CMAF? Guide to Common Media Application Format in Streaming

Tags CMAF DASH Manifest Fragmented MP4 HLS Manifest MPD Video Media File Format fMP4 m3u8 m4s mp4 mpd Facebook X
Comments 0
Similar posts
  1. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    266
  2. CloudFront Settings for Dynamic HLS Streaming
    679
  3. Progressive MP4 is an application of streaming techniques using the standardized MP4 container invented by MPEG LA consortium
    1,145
  4. Change the manifest loading timeout in HLS.js
    1,084
  1. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    308
  2. From SDI to MXL: Inside the Cloud-Native Infrastructure Powering Next-Gen Live Broadcast
    653
  3. Smooth switching with EXT-X-DISCONTINUITY in HLS
    546
  4. Disabling Audio Tracks in HLS.js
    437
  5. A Deep Dive Into Internet Advertising Ecosystem on Video Streaming Industry
    687
  6. When to use #EXT-X-DISCONTINUITY in HLS?
    1,590
  7. A prefect Apache server settings to avoid CORS error for HLS
    641
  8. SafeFrame is a web standard developed by IAB
    546
  9. CSAI vs SSAI
    615
  10. Ad Marker: SCTE-35 Message Encoder based in Python
    841
  11. Ad marker: SCTE-35 enhanced
    610
  12. FFmpeg compile options based on configure
    1,189
  13. Script checking internet restriction with FFmpeg
    729
  14. When HTTP redirection is not working with ffmpeg in Amazon EC2 Environment
    492
  15. FFmpeg compile option to support SCTE-35
    876
Recently updated
  1. How to Reinstall Microsoft Office After Formatting Your PC via Microsoft Account
    106
  2. Mastering tmux for Continuous Engineering and AI Workflows
    90
  3. What Are H5 Games Ads?
    685
  4. How to Bypass VPN for Specific cURL Requests on Mac
    139
  5. Demystifying BGP and OSPF: A Complete Guide to Network Routing Protocols
    581
  6. What Is a Canonical Redirect and How Can It Boost Your SEO?
    92
  7. How to Set Up a GitHub Organization: Requirements and Step-by-Step Guide
    138
  8. Google OAuth Token Expiration: Causes and Solutions
    192
  9. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    141
  10. Why SPF and DKIM Are Essential for Linux Email Servers?
    137
  11. How do I create animated background for Google Meet?
    27,220
  12. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    850
  13. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    270
  14. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    246
  15. Array of arguments passed to script in PHP
    172
  16. Invalid Auction Storms in Ad Tech
    191
  17. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    301
  18. The Two Clocks of Ad Server Architecture
    183
  19. Frequency Cap Architecture Overview
    651
  20. Collecting Proof-of-Play from 100,000 Screens
    262
  21. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    448
  22. What is RedisVL?
    198
  23. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    430
  24. TPU & GPU Cluster Management Tools
    469
  25. The Concept of Scaffolding in AI Agents
    409
  26. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    731
  27. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    403
  28. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    531
  29. Machine Learning: Training vs. Ranking
    347
  30. The Continuous Learning Machine: Designing a Loop That Actually Turns
    340