ffmpeg

ffmpeg is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 44 tokens per session (2,394 once invoked), scanned A, original, MIT.

A guide for using FFmpeg, an open-source command-line tool for converting, processing, streaming, and packaging audio and video. It covers encoding settings, hardware acceleration, filters, and batch automation.

In plain words
What is it for?
Use it to transcode media, create HLS or DASH streams, apply filter chains, use NVIDIA, Intel, Apple, or VAAPI hardware acceleration, and automate batches with Python.
Why use it?
It helps turn complex media-processing tasks into repeatable commands and scripts, while diagnosing problems such as poor quality, slow encoding, or incompatible formats.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the mas-video-lab plugin — 7 skills shipped together

Good fit Use it to transcode media, create HLS or DASH streams, apply filter chains, use NVIDIA, Intel, Apple, or VAAPI hardware acceleration, and automate batches with Python.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/ffmpeg
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alivirgo/Major-AI-Skills --skill ffmpeg
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install mas-video-lab, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ffmpeg

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/ffmpeg/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/ffmpeg)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/ffmpeg"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/ffmpeg/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ffmpeg

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/ffmpeg"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/ffmpeg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,394 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.02394
Opus 5 $0.00022 $0.01197
Sonnet 5 $0.00009 $0.00479
Haiku 4.5 $0.00004 $0.00239

Measured 11d ago against content hash 2b5b0bcd26e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ffmpeg scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(cmd, capture_output=True, text=True)
plugins/mas-video-lab/skills/ffmpeg/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FFmpeg Media Engineering AI Skill Guide (Claude)

Overview & Engine Architecture

FFmpeg is the universal open-source command-line framework for video/audio decoding, transcoding, streaming, muxing, and complex filtergraph processing. Claude operates as a Principal Video Streaming and Codec Engineer, specializing in codec rate control (CRF, CBR, VBR, CQP), hardware acceleration (NVIDIA NVENC, Intel QuickSync/QSV, Apple VideoToolbox, VAAPI), adaptive bitrate HLS/DASH packaging, and Python asyncio batch automation.

FFmpeg Core Subsystems & Pipeline Architecture

┌─────────────────────────────────────────────────────────────┐
│                 FFmpeg Transcoding Pipeline                 │
│                                                             │
│  Demuxing & Decoding Layer                                  │
│  ├── `libavformat` (Container Demuxer: MP4, MKV, MOV, TS)   │
│  ├── `libavcodec` (Decoders: H.264, HEVC, AV1, ProRes, AAC) │
│  └── Hardware Decoders (`cuvid`, `qsv`, `videotoolbox`)     │
│                                                             │
│  Processing & Encoding Layer                                │
│  ├── `libavfilter` (Complex Filtergraphs: scale, pad, fps)  │
│  ├── `libswscale` & `libswresample` (Color & Audio Resample)│
│  └── Hardware Encoders (`h264_nvenc`, `hevc_qsv`, `libsvtav1`)│
└─────────────────────────────────────────────────────────────┘

Operational Capabilities & Agent Directives

  1. Hardware-Accelerated Codec Optimization: Configure optimal encoding flags for target hardware platforms (-hwaccel cuda -c:v h264_nvenc -preset p7 -tune hq -rc vbr -cq 19).
  2. Deterministic Filtergraph Authoring: Author multi-input/multi-output -filter_complex graphs for watermark overlay, side-by-side video stitching, loudness normalization (loudnorm), and subtitle burn-in.
  3. Adaptive Bitrate (ABR) HLS Streaming: Construct multi-rendition HLS pipelines (1080p, 720p, 480p) with keyframe interval alignment (-g 60 -keyint_min 60 -sc_threshold 0).
  4. Automated Stream Health Diagnostics: Analyze ffprobe JSON outputs to detect variable framerates (VFR), corrupted audio PTS/DTS timestamps, and pixel format incompatibilities.

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 162 lines · 44 tokens per session scan A 2b5b0bcd26e7

Subscribe to this mod's changes

ffmpeg is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 2,394 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

openscreen-design

Use this skill to generate well-branded interfaces and assets for OpenScreen (an AI-native screen-recording studio & video editor), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

getopenscreen/openscreen · 62 tokens

faceless-explainer

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a…

heygen-com/hyperframes · 98 tokens

pr-to-video

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR…

heygen-com/hyperframes · 104 tokens

slideshow

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't…

heygen-com/hyperframes · 83 tokens

figma

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link…

heygen-com/hyperframes · 89 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens