ffmpeg-skill
A free, open-source (MIT) agent skill and MCP server that gives Claude Code, Cursor, Codex or any MCP client 42 local FFmpeg tools for cutting, captioning, reframing, levelling and exporting video, and has each tool measure the finished file before the agent calls the edit done.

Short description
ffmpeg-skill lets a coding agent edit video on your own computer. You install it with npx ffmpeg-skill setup and then ask for an edit in plain words, such as "keep 0:45 to 1:20 and 5:00 to 5:25 of interview.mp4 and make it a 60-second Reel". The skill teaches the agent to work in a fixed order. It measures the real file first, edits without re-encoding where it can, checks the result against the destination's spec, and then looks at a contact sheet of frames from the output.
The editing itself is done by 42 Python scripts that call FFmpeg with named options like --aspect 9:16. The agent never writes raw FFmpeg commands or filter strings, and no tool overwrites the file it was given. After each run the tool measures its output again (duration, frame size, loudness and so on) and lists what it couldn't check, such as whether the captions are readable. The tool descriptions the agent reads and the MCP server are both generated from the scripts, so they always match the code.
Everything runs offline with no API key. You need FFmpeg 6.1 or later and Python 3.10 or later, plus a free local speech engine if you want captions made from speech. Shogo Kajiyama, a video and streaming engineer in Japan, builds it. The first npm release came out on September 3, 2026, and version 4.3.3 shipped on November 21, 2026. It fits developers and creators who already work with a coding agent and want repeatable, scripted edits instead of a timeline editor.
Features
42 editing tools: Cutting, joining with transitions, silence removal, fitting to a length or aspect ratio, cropping, stabilising, denoising, speed ramps, B-roll cutaways, freeze frames, loops, chapter markers and more. Each one is a script with named options and a
--dry-runmode that shows the commands without running them.Measure, edit, check, look: Every job starts by reading the real file's duration, frame rate, resolution, HDR format and audio tracks. Afterwards the output is measured again, checked against the platform's spec and, if the picture changed, turned into a contact sheet the agent looks at.
Captions and karaoke: Burns in SRT or ASS subtitles or plain timed text, wraps lines inside the platform's safe area, picks a font that covers the language (Japanese, Chinese, Korean, Arabic, Hindi, Thai and others) and highlights words one by one in time with the speech.
Silence and filler-word removal:
silence.pycuts dead air and keeps 0.2 seconds either side of speech by default. Filler words are only removed where a local speech engine has timed them. The developer reports no missed gaps across 20 test files.One-command platform delivery:
render.py --templatehas templates for TikTok, Reels, Shorts, YouTube, X, LinkedIn, Facebook, podcasts and audiograms. Each one crops to 9:16 where needed, keeps captions clear of the app's buttons, sets loudness to -14 LUFS and checks the file against the platform's spec.--template allmakes the seven video versions from one edit.Audio clean-up and loudness: Voice clean-up at three strengths, compressor, limiter, noise gate, music that dips under speech, and two-pass EBU R128 loudness to -14 LUFS or any target you set, measured again on the written file.
Colour and HDR: Converts HDR10, HLG and iPhone Dolby Vision footage to standard video, applies 3D LUTs, and adjusts exposure, contrast, white balance and curves.
Multicam and sync: Lines up separate recordings by their sound (the developer measured 40 of 40 offsets within 10 ms) and cuts between cameras from a list you give it or to whichever camera is loudest.
Review page: Writes a local HTML page with the source files, every step and its checks, the result in a phone frame, and a timeline. You click a clip or caption, type what should change, and paste the instruction it writes back to your agent.
Original files stay safe: Outputs get new names, an output path that matches an input is refused, and replacing an existing file requires
--overwrite.Plans and batches:
--plansaves a dry run to render later,batch.pyruns a recipe over a whole folder with caching and a watch mode, andrender.pybuilds a full edit from a singleproject.jsonfile.Apple Silicon GPU encoding:
--hwencodes H.264, HEVC and ProRes on Apple VideoToolbox. Other GPU encoders show up in the system check but aren't used.
Pricing
Free and open source: MIT licence, installed from npm, as a plugin for Claude Code, Codex or Gemini CLI, or from GitHub releases. There is no paid plan, account or API key.
Sponsorship: The project links to GitHub Sponsors. The site and README don't list sponsor tiers.
Running costs: The tool itself costs nothing to run. Captions from speech need a free local engine such as faster-whisper (
pip install faster-whisper), which downloads a model the first time it runs.
Integrations
Claude Code: Installs as a skill with
npx ffmpeg-skill, or as a plugin from the project's own marketplace with/plugin install ffmpeg-skill --marketplace kajisho5/ffmpeg-skill.Cursor and Codex:
--cursorand--codexinstall the skill into each one's skills folder. Codex can also add it as a plugin.Gemini CLI: Installs as a Gemini CLI extension straight from the GitHub repo.
MCP clients:
npx -y ffmpeg-skill mcpruns it as an MCP server, the standard way AI apps connect to outside tools. To keep the agent's memory free, it shows 12 core tools by default, and the other 30 can still be called by name. It is also listed in the official MCP Registry.Local speech engines: faster-whisper, whisper.cpp, OpenAI Whisper and Parakeet, used for captions and filler-word removal.
Remotion: The companion
remotion-ffmpeg-skilldraws Remotion motion graphics using this tool's measurements, then delivers the video through it.Premiere Pro and DaVinci Resolve: A multicam edit can be saved as a project and exported as a timeline these editors can open.
Platforms
- macOS
- Windows
- Linux
- CLI
- MCP server
Frequently asked questions about ffmpeg-skill
Can Claude Code edit videos?â–¼
Yes, once you add a skill like ffmpeg-skill. After npx ffmpeg-skill setup, you describe the edit in plain words and Claude Code runs the matching tools: for a Reel, that means measuring the file, cutting it, fitting it to 9:16, exporting with the Reels preset and checking it against the spec. It then reports what it measured, such as "final.mp4: 60.00 s, 1080x1920, 30 fps, AAC stereo", along with the contact sheet it checked. Cursor, Codex and any MCP client work the same way.
How do I install ffmpeg-skill?â–¼
Run npx ffmpeg-skill setup. It installs the skill for every agent it finds (Claude Code, Cursor, Codex), installs FFmpeg through Homebrew, winget or apt if it's missing, and finishes with a doctor check of your FFmpeg build. You need FFmpeg 6.1 or later, Python 3.10 or later, and Node 16 or later for the installer. On a Mac, the developer recommends brew install ffmpeg-full, because the regular Homebrew FFmpeg lacks the filters for subtitles, on-screen text and HDR conversion.
Is ffmpeg-skill free?â–¼
Yes. It's MIT licensed, with no paid plan, account or API key, and it runs offline on your own machine. Making captions from speech needs a free local engine such as faster-whisper.
Is there an FFmpeg MCP server for Claude?â–¼
ffmpeg-skill comes with one. Start it with npx -y ffmpeg-skill mcp; it's also listed in the official MCP Registry. By default it shows 12 core tools (render, look, caption, export, check, fit, cut, audio, loudness, graphics, silence and probe), which take up about 18,000 tokens of the agent's context. Set FFMPEG_SKILL_MCP_FULL=1 to list all 42.
Can Claude edit videos for TikTok and Instagram?â–¼
Yes. render.py --template tiktok (or reels or shorts) crops the video to 9:16, places captions above TikTok's description bar and away from its like buttons, sets loudness to -14 LUFS, exports with that platform's settings and checks the file against its spec. --template all makes TikTok, Reels, Shorts, YouTube, X, LinkedIn and Facebook versions from the same edit.
Similar tools
Alternative AI options