What ffmpeg-skill does
ffmpeg-skill provides a local video and audio editing engine intended for coding agents. Its MCP interface exposes 42 tools for media analysis, transformation, and delivery checks. The tool set covers common editing operations such as cutting and joining clips, removing silence, fitting footage to a duration or aspect ratio, adding captions, creating waveform videos, normalizing loudness, correcting synchronization, and preparing exports.
The project is designed around a probe, edit, and verify workflow. Agents can inspect duration, frame rate, variable-frame-rate behavior, dimensions, codecs, color information, HDR metadata, rotation, and audio streams before choosing an operation. Results can then be measured again and rendered into still-frame or contact-sheet previews for visual inspection.
It is useful when source footage must remain on the local machine or when an agent needs structured editing operations instead of constructing arbitrary shell commands. The server performs the media work but does not decide the creative edit, approve a finished deliverable, or generate caption wording from its own judgment.
How it works
Each operation is represented by a command-line tool with typed arguments. The MCP tool definitions are generated from the same argparse parsers used by the command-line interface, keeping the input schema aligned with the available flags. A machine-readable contract describes each tool's inputs, outputs, FFmpeg requirements, and verification behavior.
The default MCP listing advertises a core group of 12 tools to reduce client context usage. Setting FFMPEG_SKILL_MCP_FULL=1 exposes all 42 in tools/list; every tool remains addressable by name through tools/call either way.
Processing uses local ffmpeg and ffprobe. Cutting attempts a stream copy when possible, while operations that require precision or transformation can re-encode. Analysis commands return structured information, and visual inspection commands produce PNG contact sheets or comparison frames. The workflow is local and does not require an account, API key, or cloud upload.
Setup and configuration
Run the package with:
python3 and ffmpeg must be available on the system PATH. No additional Python dependency is required for the core workflow. The package is intended for Claude Code, Cursor, Codex, and other MCP clients.
Set FFMPEG_SKILL_MCP_FULL=1 when the agent should see the complete tool list rather than the default core set. Optional local speech transcription can be used by caption and filler-related workflows when a supported speech engine and its model are installed; transcription is not required for ordinary editing operations.
Tools and capabilities
The available tools include:
- Inspect media properties, detect scenes and beats, and measure audio characteristics.
- Cut, join, reverse, loop, freeze, pad, speed-ramp, and insert clips or still images.
- Fit footage to a target duration, aspect ratio, size, frame rate, or orientation.
- Crop exact pixel regions, remove letterbox bars, deinterlace, denoise, stabilize, and straighten footage.
- Build grids, waveform or spectrum visualizations, backgrounds, and 360-degree viewports.
- Remove silence, synchronize recordings with drift correction, and normalize loudness using EBU R128 processing.
- Add captions, overlays, motion graphics, metadata, and platform-safe visual guides.
- Render still-image sequences, redact specified rectangular areas, and generate cut lists, time maps, and inspection images.
Several tools are deliberately analysis-only or require explicit coordinates. For example, crop detection reports a crop rectangle but does not write a file, and redaction applies only to a supplied rectangle rather than finding faces, plates, or logos automatically.
Limitations and notes
The server is an editing engine rather than a complete production planner. It does not choose creative cut points, determine whether a deliverable is approved, or rewrite caption text. Scene highlight rankings based on audio or duration are proxies, not a judgment of content quality.
Some capabilities require explicit input from the caller. Spherical extraction uses the supplied viewing angles and does not track a subject. Motion-centre analysis reports information for a possible reframe but does not select or apply the crop. Redaction does not perform face, license-plate, or logo detection, and its delogo mode is a border-blending operation rather than inpainting.
Processing behavior depends on the source media and installed FFmpeg capabilities. Accurate cuts may require re-encoding, while compatible inputs can use stream copying. Local transcription engines may download model weights when first used, but the media-processing workflow itself remains local.