FFmpeg-v2 MCP Server
Provides typed MCP tools for planning and executing local FFmpeg media workflows, including transcoding, remuxing, frame sampling, concatenation, subtitle burning, audio mixing, image conversion, and HDR/interlace policies, with queueing, progress polling, cancellation, retries, validation, and no-clobber publication.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FFmpeg-v2 MCP Server Plan and run a transcode of input.mp4 to output.mp4, then verify it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FFmpeg-v2 · Faster workflows. Verified outputs.
Get more from FFmpeg with tuned media workflows, a typed CLI, local MCP tools and verified results. Build repeatable video, audio and frame-processing jobs with a durable queue, resource supervision and an output receipt.
Why use FFmpeg-v2 · Get started · Measured results · CLI · MCP · Python
Maintained by Jillur Rahman. An independent toolkit built around FFmpeg, with optional native patches and a tested M4 Max profile. Execution target: macOS / Apple Silicon.
How much improvement?
22.61% less HD workflow time and 28.48% less live-action workflow time in recorded M4 Max native-profile tests versus the prior Stock workflow preset. Quality gates passed, including full-frame VMAF/PSNR/SSIM checks and full decode.
60-second source range | Stock prior preset | FFmpeg-v2 native profile | Less elapsed time | Quality |
1080p animation · 1920×1080 / 30fps | 9.7344 s | 7.5339 s | 22.61% | Passed · 1,800 frames |
Live action / VFX · 1920×800 / 24fps | 7.5278 s | 5.3840 s | 28.48% | Passed · 1,440 frames |
Baseline: Stock FFmpeg 9.0.2 using encoder/decoder/filter/validation pools 4/2/2/4 versus the tuned native profile's 8/2/2/8; nine measured trials per configuration, same source range, libx264 veryfast/CRF20 and AAC160k. Both comparators used the same queue and full-validation contract. These are complete workflow times, not a universal encoder score or an out-of-the-box Stock default comparison. The native engine is an optional source build.
The gain comes from coordinating encoding and validation pools for eligible workloads. Stock accepts the same thread controls. Same-tuning controls and exact confidence intervals remain visible: a general native-encoder advantage is not established. Against the earlier FFmpeg-v2 workflow, the two reductions were 22.31% / 30.77%.
No configured quality/bitrate reduction was used to get the result. VMAF moved from 94.761184 to 94.781527 on HD and 93.375096 to 93.379144 on live action; output sizes increased slightly (+0.162% / +0.024%). Results, conditions and quality data · Summary JSON.
Related MCP server: LinkedRun
Why use it in your project?
Use a tested tuning policy. Eligible long M4 Max software transcodes receive coordinated encoder, decoder, filter and validation pools. Other workloads use conservative policies; your explicit thread choices remain available.
Build around a stable job contract. Typed JSON becomes an inspectable plan with exact argv, resource estimates and source/backend identity checks.
Run batches with history. SQLite queue, idempotency keys, priority, cancellation, retry and retained partials make local work recoverable.
Accept a verified output. Metadata, full decode and SHA-256 checks happen before staged no-clobber publication; an encode's progress=end is not acceptance.
Protect the surrounding application. An independent supervisor checks owned processes, memory pressure, disk space, timeouts and cancellation.
Connect MCP and Python directly. Eight local-file MCP tools and reusable Python interfaces expose the same planner, queue and verification contract.
Use optional native extensions. The pinned source patch set adds versioned JSONL progress, optional Metal runtime compilation and Metal object-lifetime fixes.
Stock FFmpeg already supplies excellent codecs, filters, thread controls, progress output, hash formats and overwrite refusal. FFmpeg-v2 packages those building blocks into a managed application workflow. Side-by-side product comparison.
What can you build?
Use case | Included workflow |
Transcription and media search | Bounded mono PCM extraction, timestamped frames and contact sheets |
Local editing/export automation | Transcode, remux, compatible concat or explicit normalization, subtitles and audio mixing |
Application backends | Durable media jobs with progress, cancellation, retry and verification receipts |
MCP-connected tools | Plan → submit → explicitly start a worker → poll for the verified output |
See job examples and the CLI reference for the nine typed operations and their supported boundaries.
Start using FFmpeg-v2
Python 3.9+ and FFmpeg/FFprobe on PATH are required. FFmpeg is installed separately; normal typed workflows can use that existing backend. Native builds need the full source checkout and fresh local acceptance evidence.
git clone https://github.com/developerjillur/ffmpeg-v2.git
cd ffmpeg-v2
python3 -m venv .venv
.venv/bin/python -m pip install --upgrade pip
.venv/bin/python -m pip install -e .
.venv/bin/ffv2 --version
mkdir -p media-project
export FFV2_PROJECT_ROOT="$PWD/media-project"
export FFV2_WORK_ROOT="$FFV2_PROJECT_ROOT/.ffv2-work"
.venv/bin/ffv2 doctorThen follow the five-second job walkthrough. Review a plan before execution and use a new output path. macOS/Apple Silicon is the verified execution target; Linux/Windows supervision is not certified.
For an MCP client, print configuration without editing its settings:
.venv/bin/python scripts/configure_local_mcp.py \
--project "$FFV2_PROJECT_ROOT" --command "$PWD/.venv/bin/ffv2"MCP setup · Python integration · Configuration and resource budgets · Native builds
Inspect the evidence
Released workflow results explain the comparison, quality and same-tuning controls. The Results page also separates experimental optimization measurements from released-profile claims. The technical archive retains the complete development reports, rejected experiments and known gaps.
Public source version 0.6.1 provides portable setup and the existing workflow policy. The quoted native timings are historical measurements, not a fresh public packaging benchmark. The PGO candidate remains experimental and unpromoted. This is a source-only release; native binaries, private media/profiles and runtime databases are outside the distribution. Redacted evidence indexes are documentation, not activation manifests. Some runtime diagnostics and historical reports are Bengali.
Contribute and reuse
Contributing · Roadmap · Security · Changelog · Publication policy · Citation
Toolkit license: GPL-3.0-or-later. Preserve the applicable source and license notices when reusing it. Third-party notices and upstream pin cover optional native source and dependencies.
Available Tools
8 toolsffv2_doctorBRead-onlyIdempotent
Installed FFmpeg, listed hardware capabilities ও live resource admission দেখুন। Encoding চালায় না।
Inputs: no named parameters. Returns: object
ffv2_job_cancelBIdempotent
নির্দিষ্ট job বাতিল করুন; তার process-ই থামবে, partial রাখা হবে।
Inputs: job_id (required). Returns: object
ffv2_job_retryA
Failed/stopped job নতুন attempt-এ queue করুন; পুরোনো partial অক্ষুণ্ণ থাকবে।
Inputs: job_id (required). Returns: object
ffv2_job_statusBRead-onlyIdempotent
Job status, progress, typed error ও verification receipt পড়ুন।
Inputs: job_id (required). Returns: object
ffv2_planCRead-onlyIdempotent
Typed media job-এর exact argv, expected output, resource estimate ও warning দেখুন।
Inputs: spec (required). Returns: object
ffv2_probeCRead-onlyIdempotent
অনুমোদিত local input-এর bounded metadata পড়ুন।
Inputs: path (required). Returns: object
ffv2_submitCIdempotent
Idempotent media job queue করুন। Worker আলাদাভাবে শুরু করতে হয়।
Inputs: spec (required), idempotency_key. Returns: object
ffv2_worker_startC
User-requested queued media jobs-এর resource-guarded sequential worker শুরু করুন; status poll করুন।
Inputs: ignore_system_memory. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct stage of the media job lifecycle (environment check, metadata probe, plan preview, submit, worker start, status, cancel, retry), so an agent can map intent to tool reliably. The only soft overlap is between ffv2_worker_start (which also mentions polling status) and ffv2_job_status, and between ffv2_plan and ffv2_probe, though the descriptions distinguish them adequately.
All names share the ffv2_ prefix and snake_case, which is highly predictable. There is a minor deviation in convention: bare verbs (doctor, probe, submit, plan) coexist with noun_verb compounds (job_status, job_cancel, job_retry, worker_start), but the pattern remains readable.
Eight tools is well scoped for a media job server, with each tool earning its place as one clear lifecycle step. Nothing feels redundant or padded, and the surface is neither thin nor heavy.
The core lifecycle is fully covered: diagnostics, input probing, planning, idempotent submission, guarded worker execution, status with verification receipt, cancellation, and retry. Minor gaps remain—no tool to list/enumerate queued jobs (agents must retain job IDs from submit) and no explicit output cleanup/deletion operation—but these are workable.
Maintenance
Related MCP Connectors
Hosted MCP tools for FFmpeg-style video and audio processing through FFMPEG API.
Hosted MCP memory and agent control plane for durable conversations, jobs, and operations.
FFmpeg processing for video, audio and images via MCP with OAuth and shared account allowance.
Estimate, submit, inspect and retrieve PennyCompute media jobs.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables MCP clients to submit long-running jobs that are executed safely in isolated child processes with a durable SQLite queue, configurable timeouts, retries with backoff, and backpressure.5MIT
- AlicenseAqualityCmaintenanceEnables agents to submit and manage persistent, dependency-aware task graphs with immutable artifacts, resource reservations, durable event streaming, and retryable process execution over MCP.12MIT
- FlicenseCqualityBmaintenanceProvides a durable MCP media pipeline for image, video, audio, and storyboard generation, with FFmpeg composition, provider routing, and resumable long-running jobs.21-
- FlicenseNot gradedqualityAmaintenanceEnables Codex to submit text-to-image generation and image inspection as durable local jobs and retrieve bounded text results, hashes, relative references, and Job IDs without exposing provider-returned media bytes through MCP.-