# 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.

Source: https://fullbytedeveloper.com/blog/ffmpeg-skill-local-agent-editor
Published here: 2026-11-26

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](/blog/ai-coding-tools-one-per-job), [Craft Anything clean-room rebuild](/blog/craft-anything-clean-room-rebuild) and [Five local AI desktop tools](/blog/five-local-ai-desktop-tools). Browse the [Dev tools topic](https://fullbytedeveloper.com/blog/topic/dev-tools).

## Install with npx

```bash
npx ffmpeg-skill setup
```

The 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:

```bash
caption.py --animate pop --karaoke
fit.py --aspect 9:16 --fit crop
silence.py --threshold -35
loudness.py -I -14 --tp -1
```

The 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:

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

That 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:

1. No API key was requested during setup or edit. [1]
2. Source and export paths stay on disk you control. [1]
3. Destination did not overwrite an input unless you passed `--overwrite`. [1]
4. Review HTML (if used) stayed local; nothing uploaded. [1]
5. 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](https://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.

## Sources

1. [kajisho5/ffmpeg-skill README](https://github.com/kajisho5/ffmpeg-skill)
2. [npm package ffmpeg-skill](https://www.npmjs.com/package/ffmpeg-skill)
3. [ffmpeg-skill project site](https://kajisho5.github.io/ffmpeg-skill/)
