# How to Edit Video With Claude Code Using an FFmpeg Skill

> Source: <https://munderdiffl.in/blog/claude-code-ffmpeg-skill-video-editing/>
> Published: 2026-12-01 00:00:00+00:00

**Key takeaway:** Install ffmpeg-skill with `npx ffmpeg-skill setup` (or `--codex` for Codex) to give an agent 41 FFmpeg tools, and set FFMPEG_SKILL_ROOTS over MCP so every tool refuses files outside the folders you name.

# How to Edit Video With Claude Code Using an FFmpeg Skill

Install ffmpeg-skill with npx, then ask Claude Code or Codex to cut, caption, reframe and fix loudness on local video files. Checked 1 Dec 2026.

To edit video with Claude Code using an FFmpeg skill, install FFmpeg, run `npx ffmpeg-skill` (add `--codex` for Codex), then ask for the edit in plain words. [ffmpeg-skill](https://github.com/kajisho5/ffmpeg-skill) gives the agent 41 tools that cut, caption, reframe and fix loudness on your own files, then check the result. Checked 1 Dec 2026.

## What is an FFmpeg skill? [#](#what-is-an-ffmpeg-skill)

An FFmpeg skill is a folder of instructions and scripts that teaches a coding agent to edit video through FFmpeg. The ffmpeg-skill README, read 1 Dec 2026, calls it an Agent Skill “for Claude Code, Cursor, Codex and any agent that reads `SKILL.md`”. It gives the agent a fixed workflow: probe, edit losslessly where possible, check, verify.

Anthropic’s [skills docs](https://code.claude.com/docs/en/skills) put personal skills in `~/.claude/skills/` and say they “are available across all your projects”. OpenAI’s [Codex docs](https://learn.chatgpt.com/docs/build-skills) list `$HOME/.agents/skills` for skills “that apply to any repository the user may work in”. Our [Claude Code skills guide](https://munderdiffl.in/blog/claude-code-skills/) explains the format.

The [repository](https://github.com/kajisho5/ffmpeg-skill/releases) on 1 Dec 2026:

| ffmpeg-skill | 1 Dec 2026 | 
|---|---|
| GitHub stars | 13,084 | 
| Licence | MIT, per its LICENSE file | 
| Tools | 41 in the README; the GitHub About line says 42 | 
| Clients named | Claude Code, Cursor, Codex, Gemini CLI and any MCP client | 
| Latest release | v4.38.0, published 1 Dec 2026 | 

## What do you need before you start? [#](#what-do-you-need-before-you-start)

You need FFmpeg 6.1 or newer, Python 3.10 or newer, and Claude Code, Codex or Cursor. Node 16 or newer is only for the `npx` installer, per the README. Python 3.10 is deprecated since 4.38.0; 5.0.0 requires 3.11 or newer.

FFmpeg comes from [ffmpeg.org](https://ffmpeg.org/download.html) or a package manager. The README’s install table:

| OS | Command | 
|---|---|
| macOS | `brew install ffmpeg-full` , then put it on`PATH` | 
| Ubuntu or Debian | `sudo apt install ffmpeg` | 
| Windows | `winget install Gyan.FFmpeg` | 

On macOS, the README says the plain `ffmpeg` formula “lacks the subtitles, drawtext and zscale filters”.

## How do you install the FFmpeg skill in Claude Code or Codex? [#](#how-do-you-install-the-ffmpeg-skill-in-claude-code-or-codex)

Run one `npx` command. The README’s setup command installs the skill for every agent it finds, installs FFmpeg when `ffmpeg` does not run, and ends with a `doctor` check:

```
npx ffmpeg-skill setup
```

`--no-ffmpeg` never runs a package manager. For one agent only, the README gives:

```
npx ffmpeg-skill              # Claude Code   → ~/.claude/skills/ffmpeg-skill
npx ffmpeg-skill --codex      # Codex         → ~/.agents/skills/ffmpeg-skill (Cursor reads this location too)
```

Then `npx ffmpeg-skill doctor` checks the FFmpeg components the tools need. Prefer a plugin? In Claude Code 2.1.275 or later:

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

For Codex the plugin route is two commands:

```
codex plugin marketplace add kajisho5/ffmpeg-skill --sparse .claude-plugin
codex plugin add ffmpeg-skill@ffmpeg-skill
```

For an MCP client without a shell, the README’s command is `npx -y ffmpeg-skill mcp`. Its config example sets `FFMPEG_SKILL_ROOTS`, which it calls “optional and recommended over MCP”: every tool then refuses files outside the folders you name.

```
{"mcpServers": {"ffmpeg-skill": {"command": "python3", "args": ["/Users/you/.claude/skills/ffmpeg-skill/mcp/server.py"],
  "env": {"FFMPEG_SKILL_ROOTS": "/Users/you/Videos"}}}}
```

Over MCP it lists a core 12 tools by default; `FFMPEG_SKILL_MCP_FULL=1` lists all 41, and any tool can still be called by name. Our guide to [adding an MCP server to Claude Code](https://munderdiffl.in/blog/how-to-add-an-mcp-server-to-claude-code/) covers scopes.

## What can you ask it to do? [#](#what-can-you-ask-it-to-do)

Ask in plain words. Here are three requests from the README’s [use case pages](https://github.com/kajisho5/ffmpeg-skill/blob/main/docs/use-cases/README.md), word for word.

**Cut the dead air.** “This recording has long pauses and a few 'um’s. Take the dead air out, keep a little room around the speech, and drop the fillers. Show me where you cut before you render.” The README says the silence tool keeps 0.2 s of air on each side by default.

**A vertical short with captions.** “Here is `talk.mp4`, one camera on the speaker, and the two slides as PNGs. Make a Reels short: the slides on top, him below, the captions from `talk.srt` popping word by word.”

For the reframe from 16:9 to 9:16, the README’s FAQ says a 1920×1080 source centre crops to 608×1080, and the Reels preset then scales it to 1080×1920.

Captions burn as you wrote them: the caption tool says “caption text unchanged” when it burned the cues exactly as given.

**Podcast loudness.** “Take the sound of `talk.mp4` as a podcast episode at podcast loudness. Then make a YouTube video of it: the cover image behind a waveform, the title, and the captions from `talk.srt`.” Per the audiogram page, the agent runs `python3 scripts/loudness.py episode.m4a -I -16 --tp -1.5 -o episode_podcast.m4a`, and the tool measures the written file again.

## How does the agent check its own edit? [#](#how-does-the-agent-check-its-own-edit)

It measures the file it wrote. The README says the tools “probe the source and the written file, so the agent can check the actual duration, frame size and audio before reporting success.” When the picture changed, the agent inspects a PNG contact sheet from `look.py` with “the calling agent’s own vision, not a feature of this skill”, the README says.

The README also states the limit: the checks cannot tell you whether the result looks or sounds right, and every writing tool lists what it did not measure under `unverified`. So the routine is: install the skill, ask in plain words, check the file.

## What stays on your computer? [#](#what-stays-on-your-computer)

The editing does. FFmpeg runs on your machine, and [`SECURITY.md`](https://github.com/kajisho5/ffmpeg-skill/blob/main/SECURITY.md), read 1 Dec 2026, says “the scripts and the MCP server open no network connection themselves”. The network is used elsewhere: `npx` and `setup` download the package and FFmpeg, and three of the speech engines `--transcribe` can run download their model weights the first time they run.

It also refuses a URL as input or output, a playlist, a pipe or device as input, and an existing output without `--overwrite`. Our view: your agent still talks to its model provider, so a contact sheet it opens goes into that conversation.

## Is there another open source option? [#](#is-there-another-open-source-option)

Yes, for picking clips. [AutoClip](https://github.com/zhouxiaoka/autoclip), MIT licensed with 19,565 GitHub stars on 1 Dec 2026, calls itself “local-first AI clipping for podcasts, interviews, and gaming streams” with MCP for AI agents. ffmpeg-skill’s README says it “does not decide what to cut”. For game footage, see our [GTA 6 clipping farm guide](https://munderdiffl.in/blog/gta-6-clipping-farm/).

## Can a team of agents run the whole edit? [#](#can-a-team-of-agents-run-the-whole-edit)

It can, if you split the job: one agent cuts, one captions and one checks the exports, each step on your own computer, and you approve what gets posted. [Munder Difflin](https://harnessmd.com/download) is free and open source: a desktop app that runs a team of AI agents for all kinds of knowledge work, coding included, on your own computer. Its [README](https://github.com/HarnessMD/munder-difflin), read 1 Dec 2026, says each agent “runs the real CLI you already use, signed in with your own plan”, and under MCP servers and skills: “Add tools to an agent from the catalog or by hand.” The [install guide](https://munderdiffl.in/blog/how-to-install-and-use-munder-difflin/) walks through setup.

## FAQ

What is ffmpeg-skill?

An Agent Skill under the MIT licence that gives Claude Code, Cursor, Codex or any MCP client tools that edit video with your local FFmpeg. Its README on 1 Dec 2026 counts 41 tools and says it needs no cloud and no API keys.

How do I install the FFmpeg skill for Codex?

Run `npx ffmpeg-skill --codex`, which copies it to `~/.agents/skills/ffmpeg-skill`. The README also gives a plugin route: `codex plugin marketplace add kajisho5/ffmpeg-skill --sparse .claude-plugin`, then `codex plugin add ffmpeg-skill@ffmpeg-skill`.

Is there an FFmpeg MCP server?

Yes. The same package runs as a stdio MCP server with `npx -y ffmpeg-skill mcp`. By default it lists a core 12 tools; `FFMPEG_SKILL_MCP_FULL=1` lists all 41, and every tool can still be called by name.

Does ffmpeg-skill upload my video?

Its `SECURITY.md` says the scripts and the MCP server open no network connection themselves. The network is used by npx and setup to download the package and FFmpeg, and by three of the speech engines `--transcribe` can run, which download their model weights the first time they run.

Can the agent check its own edit?

Partly. The tools probe the written file for duration, frame size and audio, and the agent looks at a contact sheet when the picture changed. The README says the checks cannot tell you whether the result looks or sounds right, so watch the file before you post it.
