Encode video to fMP4 with a fixed GOP aligned to your segment duration; audio must be in fMP4 AAC containers, not MPEG-TS
Use a packager (Shaka Packager, Bento4, or Unified Streaming) to fragment the fMP4 into CMAF chunks with a common segment duration and shared encryption keys
Generate both an HLS multivariant playlist (referencing .mp4 segments) and a DASH MPD pointing to the same CMAF segments; update EXT-X-VERSION to 7+ for fMP4 HLS
Set the Content-Type header to 'video/mp4' for fMP4 segment responses; using 'video/MP2T' will cause HLS clients to misparse the segments
Verify DRM interoperability by testing a CMAF-encrypted stream with both a Widevine player and a FairPlay player against the same encrypted segments
Known gotchas
CMAF requires 'brand' compatibility: the fMP4 file must include 'cmf2' or 'cmfc' in its compatible_brands list, or strict CMAF validators will reject it
Chunked transfer encoding at the CDN layer is required for LL-DASH and LL-HLS CMAF delivery; standard CDNs that buffer the full segment before forwarding negate the latency benefit
Mixing MPEG-TS and fMP4 representations in the same HLS playlist is not permitted by the spec and causes Safari to fail silently
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp