DEV Community

Cover image for CMSF vs. CMAF: What’s the Difference for Video Streaming?
Maria Artamonova
Maria Artamonova

Posted on Originally published at red5.net

CMSF vs. CMAF: What’s the Difference for Video Streaming?

CMSF vs CMAF is not a choice between two competing media formats. CMAF defines a standardized way to package segmented media, while CMSF maps CMAF-packaged media into MOQ (Media over QUIC) workflows. In practical terms, CMSF carries familiar CMAF capabilities into a modern publish-and-subscribe transport architecture. That convenience can make CMSF attractive for adaptive bitrate streaming, content protection, and reuse of existing media workflows. However, applications that prioritize the lowest possible latency, including remotely operated drones, may benefit more from the lighter LOC container.

This guide explains the relationship between the formats, how CMSF works with MOQ, and how to choose between CMAF-based CMSF packaging and LOC.

CMSF vs CMAF: Quick Comparison

The central CMSF vs CMAF distinction is scope. CMAF specifies how media is structured. CMSF specifies how that CMAF structure is represented in an MOQ streaming workflow. LOC is included in the table because it is the lower-overhead packaging alternative that often determines whether CMSF is the right choice.

What Is CMAF?

CMAF, or Common Media Application Format, is a standardized media application format for segmented audio, video, subtitles, and related data. It is defined by ISO/IEC 23000-19 and builds on the ISO Base Media File Format. CMAF is a packaging format, not a transport protocol.

A CMAF presentation can contain multiple tracks representing different bitrates, resolutions, audio options, or languages. Compatible tracks can form a switching set, allowing a player to change representations as network conditions change. This supports adaptive bitrate streaming without requiring every delivery protocol to use a different copy of the encoded media.

CMAF is widely associated with HTTP delivery because the same fragmented media can be referenced by HLS playlists and MPEG-DASH manifests. Apple also documents how CMAF works with HLS. Reusing the same media objects can reduce duplicated packaging and storage while improving cache efficiency.

In a CMSF vs CMAF comparison, CMAF provides the underlying media structure. It does not by itself define MOQ subscriptions, tracks, groups, objects, priorities, or relay behavior.

What Is CMSF?

CMSF stands for CMAF-Compliant MOQT Streaming Format. The IETF CMSF Internet-Draft defines it as an extension of the MOQT Streaming Format for delivering CMAF- and LOC-compliant media over MOQ Transport. As an Internet-Draft, CMSF remains a work in progress and may change before publication as an RFC.

CMSF does not replace CMAF or create a separate codec. It describes how CMAF headers, tracks, fragments, chunks, switching sets, encryption information, and timing relate to the MOQ streaming model. The simplest way to understand CMSF vs CMAF is that CMAF supplies the packaging rules, while CMSF supplies the MOQ-specific mapping. This CMSF vs CMAF relationship lets the two specifications operate at different layers.

Each CMAF track in a switching set is carried as a separate MOQT track. CMSF requires those tracks to be time-aligned so a subscriber can move between alternative encodings without disrupting the presentation. Each MOQT object contains at least one CMAF chunk, and group boundaries align with CMAF fragment boundaries.

This design preserves capabilities familiar to CMAF workflows while making the media available through MOQ’s subscription and relay model. Red5 previously covered the evolution of CMSF, MSF, and LOC in its overview of the MOQ media layer player framework.

How Is CMSF Used With MOQ?

MOQ separates media transport from media packaging. The MOQT specification defines a publish-and-subscribe transport in which media is organized into tracks, groups, and objects and can be forwarded through relays. CMSF tells publishers and subscribers how CMAF-packaged media fits into those structures.

A publisher first exposes a catalog describing the available audio, video, or data tracks. CMSF catalog entries can identify codecs, bitrates, dimensions, frame rates, initialization data, alternative groups, and content-protection information. A subscriber can then request the tracks it needs instead of receiving every available representation.

For a multi-bitrate video presentation, each CMAF representation becomes a separate MOQT track. Matching alternative-group values indicate that the tracks belong to the same switching set. Time alignment enables the player to move from one bitrate to another, while MOQ handles object delivery and relay-based distribution. In this part of CMSF vs CMAF, CMSF connects CMAF’s alternatives to MOQT subscriptions.

CMSF maps CMAF representations to separate MOQT tracks, carries CMAF chunks in aligned MOQT objects and groups, and allows subscribers to request the tracks they need. Source: IETF CMSF Internet-Draft.

That division of responsibilities is central to CMSF vs CMAF: CMSF does not make CMAF “faster” on its own. It makes CMAF media usable within an MOQ architecture that supports selective subscriptions, prioritization, and modern relay distribution.

Why CMSF Is Convenient

The main advantage in the CMSF vs CMAF relationship is reuse. Organizations with CMAF-aware encoders, packagers, players, and protection workflows do not have to discard that model to experiment with MOQ delivery. CMSF carries established media structures into the newer transport environment.

Established DRM and Content Protection

CMSF supports content protection through ISO Common Encryption at the CMAF media layer.

Common Encryption schemes supported by CMSF. The current draft recommends CBCS for broader hardware-decoder compatibility. Source: IETF CMSF Internet-Draft, Table 3.

Its catalog can signal commercial DRM systems, including Widevine, PlayReady, and FairPlay Streaming, while encrypted samples remain compatible with content decryption modules and secure playback pipelines. The underlying browser model for protected playback is standardized through the W3C’s Encrypted Media Extensions.

This is more than a checkbox for premium video. Sports, entertainment, and licensed programming may require hardware-backed decryption, license acquisition, key rotation, and integration with established DRM services. CMSF can reuse those mechanisms rather than forcing an application to build protection solely at the application layer.

DRM systems identified in the CMSF catalog, including Widevine, PlayReady, FairPlay, and ClearKey. Source: IETF CMSF Internet-Draft, Table 4.

DRM reuse is one of the clearest practical benefits in a CMSF vs CMAF analysis.

Adaptive Bitrate Streaming

CMAF switching sets already provide a structured model for alternative encodings. CMSF maps these representations to aligned MOQT tracks, preserving the information a player needs to select an appropriate bitrate. That makes CMSF useful when changing network capacity matters as much as speed. Here, CMSF vs CMAF means transport mapping versus the original switching structure.

Live and On Demand Media

The CMSF draft targets both live and on demand content. A shared streaming format can therefore support a live presentation, delayed playback, and stored content without forcing every mode into a completely separate packaging system. This flexibility is one reason CMSF vs CMAF should be understood as an extension relationship rather than a replacement decision.

CMSF vs CMAF and LOC: The Latency Tradeoff

The convenience of CMSF comes with additional structure. CMAF relies on ISO BMFF boxes, initialization information, fragments, chunks, and timing rules. CMSF retains that structure and maps it into MOQ objects. Processing and buffering choices within this richer pipeline can add latency compared with a deliberately minimal container.

LOC, or Low Overhead Media Container, provides compact framing for encoded media samples. It is designed to work efficiently with WebCodecs and other applications that can consume elementary media with minimal container processing. Fewer packaging requirements can help an implementation move a captured frame from encoder to network and from network to decoder sooner.

However, LOC does not automatically provide every convenience associated with mature CMAF workflows. A team choosing LOC may need to do more application-specific work around packaging, playback, content protection, metadata, or interoperability. CMSF offers more existing structure; LOC offers a leaner path.

Neither specification guarantees a universal end-to-end latency number. Camera capture, encoding configuration, group-of-pictures length, network conditions, relay behavior, jitter buffering, decoding, and rendering all affect the result. The meaningful CMSF vs CMAF decision is therefore not “Which acronym is faster?” but “How much packaging convenience can this application afford before latency becomes unacceptable?”

Why Drones May Favor LOC

For entertainment streaming, a modest amount of buffering may be acceptable if it supports stable adaptive playback and strong DRM. For drone live streaming, every additional delay can affect how quickly an operator observes an obstacle, changes direction, or responds to a developing situation.

A remotely piloted drone, inspection robot, or teleoperation system often has a different priority order from an OTT service. Immediate visual feedback may matter more than compatibility with an existing fragmented-MP4 packaging chain. The device may also have limited compute, memory, power, or uplink capacity.

In those cases, LOC can be the better fit because its lower container overhead helps minimize work between encoding and delivery. This does not mean LOC always produces lower measured latency in every implementation. It means LOC removes packaging complexity that may be unnecessary for a latency-critical application.

CMSF can still make sense for some drone workflows. Recorded inspection footage may need encryption, multi-bitrate playback, archiving, and later on demand review. A system may even use LOC for the operator’s immediate control view and CMAF-based packaging for protected distribution or stored playback. This hybrid CMSF vs CMAF decision should follow the application rather than force every output through one path.

When Should You Use CMSF?

Choose CMSF when the application needs MOQ distribution and benefits from existing CMAF capabilities. Typical requirements include multiple bitrate tracks, established DRM integration, protected premium content, familiar ISO BMFF processing, or a consistent approach to live and on demand playback. For these priorities, the CMSF vs CMAF relationship preserves rather than replaces existing packaging.

In a practical CMSF vs CMAF evaluation, CMSF is appropriate when CMAF is already part of the media pipeline and MOQ is the desired transport. The format can reduce the amount of new packaging and player logic required to connect those two layers.

When Should You Use LOC?

Choose LOC when the smallest possible packaging layer is more valuable than compatibility with CMAF tooling. Strong candidates include drones, robotics, remote control, machine vision, real-time monitoring, and resource-constrained devices. These applications are also good candidates for ultra-low latency streaming, where delays below one second can determine whether interaction feels immediate.

LOC may also suit teams building directly around WebCodecs or custom media processing. The tradeoff is that developers must evaluate how they will handle features that a CMAF-based ecosystem already supports, especially content protection and established playback integrations. That implementation work belongs in every CMSF vs CMAF and LOC evaluation.

CMSF vs CMAF Decision Table

FAQs

Is CMSF the Same as CMAF?

No. CMAF is a standardized media packaging format. CMSF is an IETF work in progress that defines how CMAF-packaged media is carried within an MOQ streaming format. The answer to CMSF vs CMAF is therefore “MOQ mapping versus base media packaging,” not two interchangeable standards.

Does CMSF Require MOQ?

Yes. CMSF is specifically designed as a CMAF-compliant implementation of the MOQT Streaming Format. CMAF itself does not require MOQ and can be used with other delivery systems, including HLS and MPEG-DASH.

Does CMSF Support DRM?

Yes. The current draft supports CMAF content protection using ISO Common Encryption and catalog signaling for DRM systems such as Widevine, PlayReady, and FairPlay Streaming. Actual compatibility depends on the selected encryption scheme, device, player, license service, and content decryption module.

Is LOC Always Faster Than CMSF?

No specification guarantees that LOC will always achieve a particular end-to-end latency. LOC has less container overhead, which can make it preferable for latency-sensitive implementations. Actual performance depends on the entire capture, encode, network, relay, decode, buffer, and render pipeline.

Can One Application Use Both CMSF and LOC?

Yes. A system can select packaging according to the output. For example, it could prioritize LOC for a drone operator’s control feed and use CMAF-based CMSF tracks where DRM, adaptive bitrate playback, or on demand access is more important. This turns CMSF vs CMAF from a binary choice into a workload-specific design.

Conclusion

The essential CMSF vs CMAF relationship is straightforward: CMAF defines reusable segmented media packaging, and CMSF adapts that packaging to an MOQ streaming format. CMSF provides a convenient path to adaptive bitrate switching, established DRM ecosystems, and live or on demand delivery over MOQ.

That convenience is not free. For latency-critical applications such as drones, robots, and remote-control systems, LOC’s lighter framing may leave more room in the latency budget. The right choice depends on whether the application values mature packaging capabilities or the leanest possible path from encoder to decoder. Teams should test both approaches across the complete production pipeline rather than treating either format as universally superior.

Top comments (0)