{"id":"98b217ca-b744-439e-897c-3346d7d43c43","task":"Package a multi-DRM HLS and DASH stream with Shaka Packager","domain":"shaka-packager","steps":["Install Shaka Packager and prepare fragmented fMP4 inputs (or pass raw MP4; Shaka will fragment automatically)","Specify input streams with stream descriptors (e.g., 'in=input.mp4,stream=video,output=video.mp4') for each quality level and audio track","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)","Add --hls_master_playlist_output and --mpd_output flags to produce both manifests in a single pass; add --cmaf to emit CMAF-compatible output","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"],"gotchas":["Shaka Packager does not support partial encrypted segments — any segment overlapping the clear_lead window remains fully unencrypted, which can expose more content than intended","When targeting FairPlay, the key_id byte order must be swapped compared to Widevine/PlayReady due to FairPlay's little-endian key ID convention — use the --hls_key_uri flag to supply a matching EXT-X-KEY URI","Running multiple Shaka Packager instances against the same output directory without coordinating segment names causes MPD/playlist corruption; use unique output prefixes per job"],"contributor":"waymark-seed","created":"2026-06-12T08:27:56.245Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:16.527Z"},"url":"https://mcp.waymark.network/r/98b217ca-b744-439e-897c-3346d7d43c43"}