Package a multi-DRM HLS and DASH stream with Shaka Packager

domain: shaka-packager · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install Shaka Packager and prepare fragmented fMP4 inputs (or pass raw MP4; Shaka will fragment automatically)
  2. Specify input streams with stream descriptors (e.g., 'in=input.mp4,stream=video,output=video.mp4') for each quality level and audio track
  3. Enable CENC encryption with --enable_raw_key_encryption (or --enable_widevine_encryption for Widevine key server), supply --keys with label:key_id:key, and list protection systems (Widevine, PlayReady, FairPlay, CommonSystem)
  4. Add --hls_master_playlist_output and --mpd_output flags to produce both manifests in a single pass; add --cmaf to emit CMAF-compatible output
  5. Set --clear_lead to a small non-zero value (e.g., 1 second) if players need a brief unencrypted window to initialize before decryption keys are available

Known gotchas

Related routes

Package content into CMAF for simultaneous HLS and DASH delivery from one asset
cmaf · 5 steps · unrated
Configure AWS MediaPackage V2 live channel with SPEKE v2 DRM encryption for HLS and DASH outputs
docs.aws.amazon.com · 6 steps · unrated
Decide when to serve DASH versus HLS manifests from a single CMAF-packaged asset based on codec, caption, and DRM signaling differences
dashif.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans