ffmpeg-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FFMPEG_PATH | No | Full path to ffmpeg binary if not on PATH. | |
| FFPROBE_PATH | No | Full path to ffprobe binary if not on PATH. | |
| FFMPEG_MCP_WORKDIR | No | Base directory for resolving relative paths. | |
| WHISPER_MODEL_PATH | No | Default whisper.cpp model file for auto_subtitle tool. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| probeA | Inspect a video/audio file with ffprobe. Returns duration, format, bitrate, size, and a list of streams (codec, resolution, fps, channels). |
| trimA | Cut a segment from a video/audio file between a start time and either an end time or a duration. By default copies streams without re-encoding (fast, lossless); set reencode=true for frame-accurate cuts. |
| concatA | Join multiple clips end-to-end into one file. Use mode='copy' (default) when all inputs share the same codec/resolution (fast, lossless); use mode='reencode' to normalize mismatched inputs. |
| convertA | Transcode a video: change container format, codec, resolution, fps, or bitrate. Supports NVENC hardware encoders (e.g. codec='h264-nvenc'). The output container is inferred from the output file extension. |
| extract_audioC | Extract the audio track from a video into an audio file (mp3/aac/wav/flac/opus). The format is chosen by the |
| thumbnailA | Capture a single frame at a given time, or extract frames at a fixed interval. For a single frame, |
| burn_subtitlesA | Render an .srt or .ass subtitle file permanently onto the video (hard subs). Use force_style for SRT to tweak font/size/color (libass syntax, e.g. "FontName=Arial,FontSize=24"). |
| overlayB | Composite a watermark image or a picture-in-picture video on top of the base video. Choose a corner/center position, optional scale (as a fraction of base width), and opacity for images. |
| auto_subtitleA | Transcribe speech to subtitles using FFmpeg's built-in whisper filter. Writes an .srt (or .json/.txt) file. Requires a whisper.cpp model file: set the WHISPER_MODEL_PATH env var or pass |
| cut_silenceA | Detect and remove silent sections from a video. Runs silencedetect to find quiet spans, then concatenates the remaining segments. Tune with noiseDb (threshold) and minSilence (minimum silence length to cut). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Each tool maps to a distinct operation: probe, trim, concat, convert, extract_audio, thumbnail, burn_subtitles, overlay, auto_subtitle, cut_silence. Minor overlaps exist—convert can effectively produce audio-only output like extract_audio, and trim/cut_silence both shorten video—but descriptions make the intended boundaries clear.
All names are snake_case and short, which is consistent. A few are bare nouns used as verbs (thumbnail, overlay) while others are verb_noun (extract_audio, burn_subtitles, cut_silence), a small stylistic deviation rather than a confusing one.
Ten tools is well within the ideal range for a media-processing server, and each one covers a genuinely distinct workflow (inspect, cut, join, transcode, audio, frames, subtitles, overlay, transcription, silence removal). No filler tools are present.
Core inspect/trim/join/convert/subtitle workflows are covered with no dead ends. However, common operations are missing: audio track replacement or mixing, soft-subtitle extraction, and crop/rotate/pad geometry changes, which cannot be composed from the existing tools.