Give a coding agent local FFmpeg tools
Install ffmpeg-skill so Claude Code, Cursor, Codex or an MCP client edits video with local FFmpeg and checks the file.
Published here · 3 sources · Resume reading
Cloud video editors want uploads and API keys. ffmpeg-skill keeps the cut on your machine: a coding agent drives local FFmpeg tools (CI-tested on FFmpeg 6.1, 7.1, 8 and 9), then probes the written file for duration, size and loudness before you call the job done. License: MIT. [1]
Related reading: AI coding tools: one per job, Craft Anything clean-room rebuild and Five local AI desktop tools. Browse the Dev tools topic.
Install with npx
npx ffmpeg-skill setupThe README also shows npx ffmpeg-skill as the entry. The npm package is ffmpeg-skill. You need a local ffmpeg and python3 on PATH. CI on the project tests FFmpeg 6.1, 7.1, 8 and 9. [1][2]
You should see setup finish without asking for a cloud API key or account. [1]
Call real tools with named flags
The skill teaches a fixed workflow: probe, edit losslessly where possible, check, verify. It ships 42 tools that call ffmpeg / 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, sync with drift correction, multicam, loudness, delivery checks, whole-edit project rendering, and batch folders. MCP clients get a core 12 advertised by default (FFMPEG_SKILL_MCP_FULL=1 lists all 42; every tool stays reachable by name through tools/call). [1]
Demo commands from the README:
caption.py --animate pop --karaoke
fit.py --aspect 9:16 --fit crop
silence.py --threshold -35
loudness.py -I -14 --tp -1The agent supplies named options such as --aspect 9:16 and --fit pad. The tool builds the FFmpeg command and filter graph. Prefer typed tools over free-form FFmpeg strings the agent invents. [1]
| Job | Tool and flags shown in the README |
|---|---|
| Animated captions / karaoke | caption.py --animate pop --karaoke |
| Reframe 16:9 to 9:16 | fit.py --aspect 9:16 --fit crop |
| Drop silence | silence.py --threshold -35 |
| Loudness normalise | loudness.py -I -14 --tp -1 |
Protect sources: a destination that matches a declared input is refused. Direct edits require --overwrite to replace an existing output. [1]
Keep the edit local and measured
The README headline: no cloud, no API keys, Python standard library. Standalone use is npx ffmpeg-skill and nothing else: no account, no other repo required. If ffmpeg and python3 are on PATH, it works offline on footage you would rather not upload. [1]
After an edit, ask the agent for the review page, or run:
npx ffmpeg-skill review project.json --result run.jsonThat writes one local HTML file with sources, steps, checks, a phone-framed result and a timeline. Nothing is uploaded. From a checkout you can also run python3 scripts/_review.py. [1]
The tools probe the source and the written file so the agent can check duration, frame size and audio before reporting success. The project's OG card example shows a measured final.mp4: 59.98 s, 1080x1920, 30 fps, -14.0 LUFS, verified. Treat that card as the project's own demo measurement, not a claim about your footage. [1]
Local-only checklist before you call the job done:
- No API key was requested during setup or edit. [1]
- Source and export paths stay on disk you control. [1]
- Destination did not overwrite an input unless you passed
--overwrite. [1] - Review HTML (if used) stayed local; nothing uploaded. [1]
- Duration, size and audio were probed on the written file, not guessed in chat. [1]
Works with Claude Code, Cursor, Codex or any MCP client that reads SKILL.md. Project site: kajisho5.github.io/ffmpeg-skill. [1][3]
What this engine does not decide: which cut is the right story beat, whether a deliverable is approvable, what makes a highlight interesting, or what a caption should say. The README says the user's cue text is burned as written, never rewritten to fit. Keep editorial judgment in front of the tools. [1]
SPEC note from the README: each tool's input_schema (CLI flags and MCP definition) is derived at run time from the same argparse parser, and CI fails if they drift. Prefer the named tools over hand-written FFmpeg graphs the agent invents outside that contract. [1]
Your next cut should leave a measured export on disk before you call the job done.
Send this to the teammate who pastes clips into a cloud editor because the agent cannot touch FFmpeg.
Keep this guide
Questions about this guide
What is ffmpeg-skill?
An MIT package that gives coding agents local FFmpeg edit tools and measurement checks. The README states: no cloud, no API keys, Python standard library. Works with Claude Code, Cursor, Codex or any MCP client.
Which FFmpeg versions are tested?
The README badge and text list FFmpeg 6.1, 7.1, 8 and 9 tested in CI.
How do I install it?
The README quick start is npx ffmpeg-skill (and documents npx ffmpeg-skill setup). The npm package name is ffmpeg-skill.
Does it upload my footage?
The README pitch is local FFmpeg only: no cloud and no API keys. The review page writes one local HTML file and uploads nothing.
Sources
- kajisho5/ffmpeg-skill READMEgithub.com
- npm package ffmpeg-skillnpmjs.com
- ffmpeg-skill project sitekajisho5.github.io