ffmpeg-drm

Encrypt streaming video into AES-128 HLS and DASH-CENC DRM formats.

15|4|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/damionrashford/media-os --skill ffmpeg-drm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ffmpeg-drm
Source: https://github.com/damionrashford/media-os/tree/main/skills/ffmpeg-drm
Command: npx skills add https://github.com/damionrashford/media-os --skill ffmpeg-drm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

DRM-protected streaming is essential but complex; this skill provides end-to-end guidance to encrypt and package FFmpeg-powered streams (AES-128 HLS, DASH-CENC) with key information, rotation, and signaling to protect content.

Core Features & Use Cases

  • Encrypt HLS AES-128 streams using a keyinfo workflow and FFmpeg
  • Package DASH-CENC content with explicit key/kid and scheme options
  • Rotate keys mid-stream for live ingestion or long-form VOD
  • Generate and manage key material via scripts and perform QA decryption as needed

Quick Start

Encrypt a sample video into an HLS AES-128 stream using the DRM helper to generate a key, keyinfo, and a key URL, then verify the decrypted segment in QA.

Frequently Asked Questions about ffmpeg-drm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I encrypt HLS streams with AES-128 using ffmpeg?

Encrypt HLS streams with AES-128 using ffmpeg by applying the -hls_key_info_file option, which references a generated key and keyinfo file to restrict unauthorized playback and protect video content.

What is the best way to package DASH-CENC content with ffmpeg?

Package DASH-CENC content with ffmpeg by specifying explicit -encryption_key and -encryption_kid options, delivering reproducible DRM pipelines with ClearKey signaling for protected adaptive streaming.

Can I rotate encryption keys mid-stream for live DRM workflows?

Rotate encryption keys mid-stream for live DRM workflows by generating new key material via scripts, allowing secure key rotation during live ingestion or long-form VOD broadcasting without interrupting playback.

Does this ffmpeg DRM workflow support ClearKey signaling?

ClearKey signaling is supported in this ffmpeg DRM workflow, enabling DASH-CENC content encryption with explicit key and kid options for reproducible, standards-based content protection without third-party DRM systems.

How do I validate and decrypt DRM-protected video segments for QA?

Validate and decrypt DRM-protected video segments for QA by using the generated key material and helper scripts to verify the decrypted HLS AES-128 or DASH-CENC output locally before deployment.