Ask your coding agent to cut a 40-minute interview into a 60-second Reel. It writes a long ffmpeg command, guesses the frame rate, picks a codec the container cannot hold, re-encodes a file that only needed a stream copy, and reports "done" without opening the result. The output plays — wrong length, wrong aspect, captions out of sync — and you only find out when you watch it.

ffmpeg-skill changes the shape of that job. It gives Claude Code, Cursor, Codex, or any MCP client a local video editor: 42 FFmpeg tools with a machine-readable contract and a fixed workflow — probe, edit losslessly where possible, check, verify. No cloud, no API keys, nothing uploaded; the agent measures before it cuts and checks after it writes. The repository has 10,302 stars on GitHub (checked November 24, 2026).

What ffmpeg-skill is

ffmpeg-skill is an Agent Skill for Claude Code, Cursor, Codex, and any agent that reads SKILL.md: a fixed workflow plus 42 tools that do the actual work with ffmpeg and ffprobe: cut, join, silence removal, fit to duration and aspect, captions and karaoke, overlays and motion graphics, HDR to SDR and LUTs, audio clean-up and typed dynamics, sync with drift correction, multicam, loudness, delivery checks, whole-edit project rendering, and batch folders. Every tool is also callable as an MCP tool (tools/list shows the 12 stable core tools by default; FFMPEG_SKILL_MCP_FULL=1 lists all 42).

In the 4.x line, the 12 core tools keep every name, argument, output key, and exit code working until 5.0; the other 30 are beta and may change an argument or output key in a minor release after one minor of notice. Build repeatable jobs on the core 12; treat the beta 30 as movable.

It is also deliberately not a brain. It does not decide what to cut, whether a deliverable is approvable, what makes a highlight interesting, or what a caption should say — cue text is burned as written, never rewritten to fit. In the author's wider ecosystem this repo is the hands; planning and judgement live in sibling skills.

Install and first run

Install commands are quoted from the repo README, not executed here (unverified).

One command does the setup:

npx ffmpeg-skill setup

It installs the skill for every agent it finds, installs FFmpeg when ffmpeg does not run, and ends with doctor. Or step by step:

npx ffmpeg-skill
npx ffmpeg-skill doctor
npx ffmpeg-skill contract --json

The first installs for Claude Code into ~/.claude/skills/ffmpeg-skill (--cursor, --codex into ~/.agents/skills/, --all, --project). doctor checks every required FFmpeg component is present; contract --json shows what the agent framework will see — for every tool, what it takes, writes, needs, and how the result is verified.

Claude Code plugin (2.1.275 or later):

/plugin install ffmpeg-skill --marketplace kajisho5/ffmpeg-skill

Codex plugin and Gemini CLI extension routes are in the skill's install note; the MCP server starts with npx -y ffmpeg-skill mcp.

FFmpeg itself: macOS needs brew install ffmpeg-full — the plain formula lacks the subtitles, drawtext, and zscale filters, and ffmpeg-full is keg-only, so put $(brew --prefix ffmpeg-full)/bin first on PATH. Ubuntu and Debian use sudo apt install ffmpeg; Windows uses winget install Gyan.FFmpeg. Requirements: FFmpeg 6.1+, Python 3.10+ (standard library only), Node 16+ for the npx installer. The README's pinned-version example is npx ffmpeg-skill@4.1.3.

Then ask your agent:

Take interview.mp4, keep 0:45–1:20 and 5:00–5:25, and make it a 60-second Reel.

The agent runs probe.py, cut.py --segments 0:45-1:20,5:00-5:25 --accurate, fit.py --aspect 9:16 --fit crop, export.py --preset reels, check.py --platform reels, and look.py, then reports the measured result and the contact sheet. Skill page: https://aiskills.one/skill/ffmpeg-skill/

How it actually works

Every job starts with probe.py: the agent decides from the measured duration, fps, resolution, colour, and audio layout, not the file name. Each operation is a script with typed arguments — nothing runs through a shell, no filter graph is accepted from the caller. The tools probe the source and the written file, so the agent checks the actual duration, frame size, and audio before reporting success, and looks at a contact sheet when the picture changed.

The contract is what makes this an agent skill rather than a wrapper script: each tool's input schema is derived at run time from the same argparse parser that defines the CLI, so CI fails the build if it drifts — the contract and the MCP tool definition track the CLI flag-for-flag.

Source files are protected: a destination matching a declared input is refused, and direct edits require --overwrite. After an edit, ask for the review page:

npx ffmpeg-skill review project.json --result run.json

It writes one local HTML file: sources, every step with its checks, the result in a phone frame with the platform's safe area, and a timeline. Nothing is uploaded.

What to use it for

Cut a talk into a vertical short. Probe, cut, fit to 9:16, export with the reels preset, check against the platform spec — one sentence to the agent, six measured steps underneath.

Add captions and karaoke. caption.py burns word-by-word captions with a karaoke highlight (--animate pop is the README's example). Speech captions need one local engine installed separately — pip install faster-whisper is the simplest — and the audio never leaves your machine.

Reframe and normalise. fit.py moves 16:9 to 9:16, loudness.py normalises to -14 LUFS with a -1 true peak, silence.py removes dead air; HDR to SDR and LUTs cover phone footage.

Deliver to a platform in one command. Delivery templates ship for tiktok, reels, shorts, youtube-shorts, youtube, x, linkedin, facebook, podcast, and audiogram. render.py fills the template — 9:16 crop, captions above the description bar, -14 LUFS, the export preset — and check.py verifies the file:

python3 ~/.claude/skills/ffmpeg-skill/scripts/render.py talk.mp4 --template tiktok --cues cues.txt

What to watch out for

Verification is the point — and its limit. The README reports 92/92 verification steps passed on a 10-file real-device corpus (GoPro, DJI, iPhone with Dolby Vision, HDR10, Android screen recordings) — the maintainer's own measurement, on Linux and macOS; the full corpus has not run on Windows yet. The design paper behind the skill scores ffmpeg-skill itself as only partially conformant with the discipline it defines. Treat verification as a strong habit, not a guarantee.

Beta tools move. The 12 core tools are stable until 5.0; the other 30 may drop or rename an argument or an output key in a minor release after one minor of notice. Pin a tagged version rather than main, and re-run npx ffmpeg-skill to refresh an installed copy — nothing updates by itself, and releases land several times a week.

Not in the Claude plugin directory yet. The directory only accepts script-shipping plugins from organizations Anthropic has marked Verified, with no way to apply yet, so the submission is on hold. Cursor Marketplace, Gemini CLI gallery, and Glama are submitted and awaiting review.

Two smaller notes. On macOS the plain ffmpeg formula lacks the filters this skill needs — use ffmpeg-full and fix your PATH first, or doctor will tell you. And the skill burns cue text as written; if a caption reads wrong, fix the cue, not the render.

FAQ

How do I install ffmpeg-skill? Run npx ffmpeg-skill setup for every agent, or npx ffmpeg-skill for Claude Code (--cursor, --codex, --all), then npx ffmpeg-skill doctor. Claude Code plugin: /plugin install ffmpeg-skill --marketplace kajisho5/ffmpeg-skill (2.1.275 or later). Commands are quoted from the README, not executed here (unverified).

Can I edit video offline with ffmpeg-skill? Yes — no cloud, no API keys, Python standard library only. If ffmpeg and python3 are on your PATH, it works offline, on footage you would rather not upload. Speech captions need a local engine such as faster-whisper.

How do I add captions with ffmpeg-skill? caption.py burns captions from a cues file, with --animate pop and --karaoke for a word-by-word highlight. Speech captions need a local engine first (pip install faster-whisper is the simplest); the audio never leaves your machine.

How do I export a Reel or TikTok with ffmpeg-skill? Run python3 ~/.claude/skills/ffmpeg-skill/scripts/render.py talk.mp4 --template tiktok --cues cues.txt — the template fills the 9:16 crop, captions, -14 LUFS, and the platform preset, then check.py verifies the file.

Is ffmpeg-skill free? Yes — MIT licensed, no paid tier, no account, no API key. The only costs are your own machine and, for speech captions, a local engine you install yourself.

The bottom line

Raw ffmpeg rewards people who already know its flags; everyone else gets a file that plays wrong. ffmpeg-skill does not make the creative decisions for you — it makes the mechanical ones measurable: probe first, cut with typed tools, check the file written, and show the result in a review page before you ship it. Install it once, keep your footage local, and let the agent do the disciplined part.

More: ffmpeg-skill — https://aiskills.one/skill/ffmpeg-skill/