/media-engineering:media-transcoding-streaming-and-drmfrom media-engineering
Reference for building media delivery pipelines: transcoding, ABR packaging (ladders, per-title encoding, CMAF), streaming protocols (HLS, DASH, low-latency, WebRTC, QUIC), player/CDN concerns, and DRM (Widevine, FairPlay, PlayReady) with licensing and device constraints.
Ships in media-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Part 3 of 5 of the Media Engineering reference (plugin
media-engineering), covering §7–§9. Sibling skills:media-fundamentals-containers-and-codecs(§0–§3),media-production-and-loudness(§4–§6),media-captions-podcasts-rights-and-qc(§10–§14),media-reference(§15–§20). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: Verified August 2026. See §17 →
media-referencefor the currency snapshot and what goes stale first.
How to read this. Reference for engineers building media systems — deliberately distinct from a DSP reference (which covers the algorithms) and a smart-TV reference (which covers app platforms). This is the production, packaging and delivery stack.
Three markers:
- [DURABLE] — formats, workflow structure, and the physical and perceptual constraints. Most of this document.
- [VERSIONED] — codecs, protocols, platforms, rights. ⚠️ Verify.
- [CONTESTED] — genuine disagreement.
⚠️ GOTCHA boxes mark where media pipelines silently corrupt, desync, or get rejected.
The three framings that organize everything below:
- ⚠️ Media is a compatibility problem wearing a compression costume. The hard part is almost never the codec — it's that every device, browser, and platform accepts a different subset of a different container with different DRM, and you must serve all of them (§3 →
media-fundamentals-containers-and-codecs, §8).- Every media decision is a triangle: quality, bitrate, and compute. ⚠️ You pick two. A better codec moves the triangle; it doesn't abolish it — and encoding complexity is the price AV1 and VVC charge for their bitrate savings (§3.2 →
media-fundamentals-containers-and-codecs).- ⚠️ The rights layer is now as load-bearing as the technical one, and it's moving faster. Loudness normalization, content ID, licensing metadata, and the AI training fight all determine what you may ship, not just what you can encode (§12 →
media-captions-podcasts-rights-and-qc, §13 →media-captions-podcasts-rights-and-qc).
[DURABLE] The pipeline shape is stable even as the components change:
INGEST → VALIDATE → DECODE → PROCESS (scale, filter, colour)
→ ENCODE (ABR ladder, multi-codec) → PACKAGE (CMAF)
→ ENCRYPT (DRM) → ORIGIN → CDN → PLAYER
The ABR ladder — multiple renditions at different resolutions and bitrates. ⚠️ Per-title encoding beats a fixed ladder substantially, because content complexity varies enormously. Convex-hull / per-shot approaches go further.
⚠️ The packaging rules that break ABR if you get them wrong: all renditions must share aligned keyframes/IDR positions so the player can switch cleanly; segment duration (typically 2–6 s) trades latency against CDN efficiency; and CMAF lets one set of segments serve both HLS and DASH, which halves your storage and origin cost — ⚠️ and is the main reason to package CMAF rather than separate TS and fMP4 outputs.
Tools: FFmpeg (⚠️ the substrate of essentially the entire industry — learn it), GStreamer (pipeline framework), Shaka Packager and Bento4 (packaging), x264/x265/SVT-AV1/libaom/dav1d (encoders and decoders), MediaInfo for inspection, plus the cloud services (AWS MediaConvert/MediaLive, Google Transcoder, Mux, Bitmovin, Cloudflare Stream).
⚠️ Practical realities: transcoding is CPU/GPU-expensive and embarrassingly parallel — chunk it; hardware encoders (NVENC, QSV, and dedicated ASICs) are far faster and somewhat lower quality at a given bitrate than software at slow presets; cache and reuse rather than re-transcoding; and store the mezzanine, because you will need to re-encode when a new codec arrives.
| Protocol | Latency | Notes |
|---|---|---|
| HLS | 20–45 s classic | Apple's; universal support; ⚠️ CDN-native, which is the whole point |
| LL-HLS | ~2–6 s | Partial segments and blocking playlist reload |
| DASH | similar | ISO standard; more flexible; ⚠️ no native Safari/iOS support |
| LL-DASH | ~2–6 s | Chunked CMAF |
| WebRTC | ~sub-second | ⚠️ Interactive latency, and expensive/complex beyond small audiences — SFUs, TURN, load balancing |
| SRT / RIST | — | ⚠️ Contribution/ingest over lossy links, not distribution |
| RTMP | ~2–5 s | ⚠️ Legacy, still the ingest default, doesn't scale for distribution |
| MoQ | ~0.15–1 s | §8.2 |
[DURABLE] The structural tension that has defined live streaming for two decades: HLS and DASH scale beautifully through HTTP CDNs and add latency; WebRTC gives sub-second interactivity and scales expensively. ⚠️ Any platform wanting both has historically had to run two stacks.
[VERSIONED — the most significant delivery change in years, and still not finished.]
MoQ is an IETF effort to get WebRTC-class latency with CDN-class scale, built as a pub/sub system over QUIC, usable via raw QUIC or WebTransport in browsers.
The data model is worth learning because it's genuinely different from segment-based streaming: Object (smallest unit, typically a frame) → Subgroup (objects sharing a QUIC stream, priority and dependency) → Group (independently decodable, e.g. a GoP; a switching point, droppable under congestion) → Track (a named media stream). ⚠️ A reserved catalog track describes available tracks — the MoQ equivalent of a DASH MPD or HLS playlist.
Two streaming formats sit on top: CMSF — CMAF/fMP4 segments played via MSE, DRM-capable via EME, ~0.5–1 s latency, best for broad compatibility; and MSF — raw LOC frames decoded via WebCodecs, latency below 150 ms, best for real-time communication and contribution.
Why 2026 is the inflection: the IETF working group moved through monthly draft revisions toward Working Group Last Call; Cloudflare deployed MoQ relays across its edge in 330+ cities; eleven vendors demonstrated interoperable implementations at NAB 2026 (Ant Media, AWS, Bitmovin, Broadpeak, CacheFly, Cloudflare, Nomad Media, Norsk, Oracle, Red5, Synamedia); Meta and Google are co-editors of the transport spec; and browser support via WebTransport over HTTP/3 reached a March 2026 baseline of Chrome, Firefox, and Safari 26.4+. One open-source implementation reports 200–300 ms latency in production.
⚠️ GOTCHA — the honest counter-position, which the enthusiasm tends to omit. MoQ as of mid-2026 still needs a sharply defined "killer" use case that doesn't already have a working solution, and the standard remains months away from RFC. Practically: track it, prototype with it, and plan for it as another transport alongside SRT and WebRTC — do not rebuild your production stack on it yet. New protocols enter production through gateways and SDK support, not wholesale replacement.
ABR algorithms — buffer-based, throughput-based, and hybrid (BOLA, MPC). ⚠️ The startup-quality-versus-startup-time trade is a product decision, not a technical one. Players: hls.js, dash.js, Shaka Player, Video.js, ExoPlayer/Media3, AVPlayer. CDN concerns: cache-key design, origin shield, multi-CDN with switching, and ⚠️ prefetch and warming for predictable events — a live sports start is a thundering herd. QoE metrics that matter: startup time, rebuffer ratio, average bitrate, bitrate switches, play failure rate, and exit-before-video-start.
[DURABLE] Three systems, and you need all of them.
Widevine (Google — ⚠️ security levels L1/L2/L3 determine what resolution you're
allowed to serve), PlayReady (Microsoft), FairPlay (Apple).
⚠️ CENC (Common Encryption) is what makes this tractable: encrypt once, serve keys for
multiple DRM systems from the same content. cenc (CTR) vs cbcs (CBC) modes —
⚠️ FairPlay requires cbcs, and CMAF standardized on it, but older Widevine/PlayReady
deployments expect cenc, so many pipelines still ship both.
⚠️ Practical realities: licence servers and key rotation; HDCP requirements on the output path (⚠️ which is why 4K refuses to play over some HDMI setups); studio security requirements that mandate hardware-backed DRM for premium content; forensic watermarking for leak tracing; and ⚠️ the fact that DRM stops casual copying, not determined attackers — its actual function is contractual compliance with content owners.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
media-engineering, video-streaming, abr-packaging, drm, transcoding
Other plugins' skills for the same job
5 skills in this plugin
/media-captions-podcasts-rights-and-qcUse when handling accessibility, podcasts, rights, or quality control: captions and subtitles (WebVTT, TTML, SCC, burn-in) and the accessibility requirements, podcast infrastructure including RSS, hosting, prefix analytics and dynamic ad insertion, metadata and rights identifiers (ISRC, ISWC, ISNI, EIDR, C2PA), the AI generation layer and the live music-licensing litigation, and testing and QC for media pipelines./media-fundamentals-containers-and-codecsUse when choosing a format or debugging a file that will not play: the fundamentals of digital media (sample rates, bit depth, frame rates, chroma subsampling, colour spaces), containers and muxing (MP4, MKV, MXF, fragmented MP4, timestamps and track layout), and codecs — the audio family, the 2026 video landscape (H.264, HEVC, AV1, VVC) with its licensing and hardware-support realities, and the encoding knobs that actually matter. Includes the router for the whole media-engineering reference./media-production-and-loudnessUse when working on the production side: audio production (DAWs, plugin formats such as VST3, AU and AAX, latency and buffer sizes, sample-accurate automation), video production (NLEs, intermediate codecs, colour management, timecode and sync, frame-rate pulldown), and loudness — LUFS, true peak, the broadcast standards, and why a mix that sounds right in the studio is quiet on streaming platforms./media-referenceUse when checking a media anti-pattern, weighing a contested question, confirming whether a codec, delivery-protocol or AI-rights claim is still current (snapshot verified August 2026), finding the books, specs and communities, or needing the numbers, a format picker, and the when-it-is-broken triage list. Companion to the other media-engineering skills.npx claudepluginhub the-vibey-project/vibey --plugin media-engineering