FFmpeg MCP Server – Convert, Compress, Trim & Extract Media
Pricing
from $2.00 / 1,000 tool calls
FFmpeg MCP Server – Convert, Compress, Trim & Extract Media
MCP server with 12 FFmpeg tools for AI agents: probe, convert, compress to target MB, trim, extract audio, GIF, thumbnail, frames, merge, 9:16 resize, watermark, loudness normalize. Direct file URLs in, public download links out. From $0.002 per call.
Pricing
from $2.00 / 1,000 tool calls
Rating
0.0
(0)
Developer
Cemal Atakli
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
9 days ago
Last modified
Categories
Features
Share
FFmpeg MCP Server – convert, compress, trim and extract media for AI agents
FFmpeg MCP Server gives Claude, Cursor, ChatGPT, n8n and any other Model Context Protocol (MCP) client 12 FFmpeg media tools in one remote server. You don't install FFmpeg, run servers or upload anything. Your agent passes a direct media file URL and gets back a public download link to the result, which it can pass straight to the next tool.
- 🎬 Video: convert (MP4, WebM, MOV), compress to a target size in MB, trim, merge, resize to 9:16, 1:1 or 4:5, add a watermark, make a GIF
- 🎧 Audio: extract audio to MP3, M4A, WAV, FLAC, OGG or Opus, and normalize loudness (EBU R128 / LUFS)
- 🖼️ Images: thumbnail, frames for vision models, image watermark
- 🔍 Probe: duration, resolution, fps, codecs, bitrate and streams (ffprobe)
- 💸 Pay per use: $0.002 per successful call, plus a per-minute or per-frame fee for outputs. Failed calls are free.
Connect your MCP client
MCP endpoint (Streamable HTTP):
https://gazidev--ffmpeg-media-mcp.apify.actor/mcp
Authenticate with your Apify API token as a bearer token: Authorization: Bearer <APIFY_TOKEN>.
Claude Desktop / Cursor (mcp.json / claude_desktop_config.json):
{"mcpServers": {"ffmpeg": {"url": "https://gazidev--ffmpeg-media-mcp.apify.actor/mcp","headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }}}}
For clients that only support stdio, use npx mcp-remote https://gazidev--ffmpeg-media-mcp.apify.actor/mcp --header "Authorization: Bearer YOUR_APIFY_TOKEN".
Tools
| Tool | What it does | Key arguments |
|---|---|---|
probe | Media info: duration, width and height, fps, codecs, bitrate, size, streams | url |
convert | Converts to MP4 (H.264), WebM (VP9, up to 720p) or MOV, or to any audio format | url, format, max_resolution, quality, start, end, mute, fps |
compress | Shrinks a video to a target size in MB (2-pass) or by quality level | url, target_size_mb, max_resolution (default 720) |
extract_audio | Extracts audio to MP3, M4A, WAV, FLAC, OGG or Opus | url, format, bitrate_kbps, normalize |
trim | Cuts between start and end. Frame-accurate, or instant fast_copy | url, start, end, fast_copy |
gif | Makes a palette-optimized animated GIF (up to 30 s) | url, start, duration, fps, width |
thumbnail | Grabs one still frame as JPG, PNG or WebP | url, time, width, format |
frames | Extracts up to 100 frames, evenly spaced or every N seconds | url, count or interval_seconds, width |
merge | Joins 2 to 20 clips into one MP4, normalizing size, fps and audio | urls, max_resolution |
resize_aspect | Reframes to 9:16, 1:1, 4:5, 16:9 or any W:H with a blurred background, color bars or a crop | url, aspect, mode, resolution |
watermark | Adds a text or logo watermark to a video or image (9 positions, or tiled) | url, text, image_url, position, opacity |
normalize_audio | Normalizes loudness to a LUFS target. The video stream is copied untouched | url, target_lufs, format |
Times take seconds (12.5) or HH:MM:SS. Limits per call: 500 MB per input file and 60 output minutes.
Example agent prompts
- "Compress https://example.com/demo.mov to under 8 MB so I can post it on Discord."
- "Turn this landscape video into a 9:16 Reel with a blurred background, then add '@mybrand' bottom-right."
- "Take 12 frames from this video and describe what happens."
- "Extract the audio as MP3, normalize it to -14 LUFS, and give me a 5-second GIF from 00:01:10."
Example result (compress)
{"tool": "compress","file_url": "https://api.apify.com/v2/key-value-stores/abc123/records/compress-5e03fce1-demo.mp4","content_type": "video/mp4","size_bytes": 454653,"output": {"format": "mp4", "duration": 5.759, "width": 854, "height": 480, "videoCodec": "h264", "size_reduction_pct": 84.0},"input": {"url": "https://example.com/demo.mp4", "duration": 5.759, "width": 1920, "height": 1080, "sizeBytes": 2848208},"billed_events": {"tool-call": 1, "fullhd-video-minute": 1},"processing_sec": 1.74}
Supported inputs
The server accepts direct links to media files: MP4, MOV, MKV, WebM, AVI, MP3, WAV, FLAC, M4A, OGG, PNG, JPG and WebP. The link can be a file on your server, an S3 or R2 public or presigned URL, a Google Cloud Storage link, an Apify key-value store record, or the output of a previous tool.
Not supported: YouTube, TikTok, Instagram, Vimeo and other platform pages, HLS/DASH playlists (.m3u8 / .mpd), and private or local network addresses. This is a media processing tool, not a downloader, so only process files you own or have the right to process.
Pricing (pay per event)
| Event | Price | When |
|---|---|---|
| Actor start | $0.02 | Once per server session (Standby run) |
| Tool call | $0.002 | Every successful tool call |
| SD video minute | $0.008 | Per started output minute, up to 576p (and every fast_copy trim) |
| HD video minute | $0.025 | Per started output minute, 720p tier |
| Full HD video minute | $0.06 | Per started output minute, 1080p tier |
| 4K video minute | $0.20 | Per started output minute, above 1080p |
| Audio minute | $0.003 | Per started output minute of audio. Loudness normalization counts 4 |
| Frame / image | $0.001 | Each thumbnail, extracted frame or watermarked image |
| GIF (per 10 s) | $0.015 | Per started 10 seconds of GIF |
The video tier is the higher of the source and output resolution, because decoding a 4K file costs as much as encoding one. Failed calls are never charged. Calls that would exceed your maximum charge per run are refused before any work is done.
Example costs: probing a file costs $0.002. A 1-minute 1080p video compressed to 720p costs $0.062. A 5-second GIF costs $0.017. Ten frames cost $0.012. Extracting 30 minutes of MP3 audio costs $0.092.
Compared with the Store: the only other FFmpeg MCP server on the Apify Store charges $0.03 per start plus $0.01 to $0.15 per operation. For example, it charges $0.1 per transcode or compress and $0.15 per merge. Short clips here cost 3 to 10 times less.
Batch runs (without MCP)
You can also run the Actor normally from the Console, the API or a schedule. Pick a tool, then pass its arguments as JSON, or add several calls. Each call becomes one dataset row with a file_url. Example input:
{"tool": "convert", "arguments": {"url": "https://www.w3schools.com/html/mov_bbb.mp4", "format": "webm"}}
FAQ
How long are the output links valid? Outputs are stored in the run's key-value store. That store is kept for the data retention period of your Apify plan (7 days on the free plan). Download the files or copy them elsewhere if you need them longer.
Is my media private? Each run has its own key-value store. Its record links are unguessable, but anyone who has a link can download the file. Inputs are processed in a temporary folder and deleted after each call.
What about long videos? One call handles up to 60 output minutes and 500 MB per input file. For longer media, use start and end to process it in parts. Some MCP clients have short tool timeouts, so for long encodes use batch runs.
Can I use it with n8n, Make or LangChain? Yes. Any MCP client works. You can also call the Actor through the Apify API in batch mode.
Why is WebM limited to 720p? VP9 encoding needs about 2x the CPU of H.264. Use mp4 for 1080p or 4K output.
Use with AI agents / Apify MCP
This Actor is an MCP server. You can also reach it through the Apify MCP server, which lets agents discover and call Apify Actors. It works well alongside other Actors in an agent pipeline, for example a transcriber after extract_audio or a vision model after frames.