Skip to main content
Glama

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.

Source CI Documentation License: GPL v3+ Python 3.9+

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 doctor

Then 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 tools
ffv2_doctorB
Read-onlyIdempotent

Installed FFmpeg, listed hardware capabilities ও live resource admission দেখুন। Encoding চালায় না।

Inputs: no named parameters. Returns: object

ffv2_job_cancelB
Idempotent

নির্দিষ্ট 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_statusB
Read-onlyIdempotent

Job status, progress, typed error ও verification receipt পড়ুন।

Inputs: job_id (required). Returns: object

ffv2_planC
Read-onlyIdempotent

Typed media job-এর exact argv, expected output, resource estimate ও warning দেখুন।

Inputs: spec (required). Returns: object

ffv2_probeC
Read-onlyIdempotent

অনুমোদিত local input-এর bounded metadata পড়ুন।

Inputs: path (required). Returns: object

ffv2_submitC
Idempotent

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

    B3.2/5.0

    Scored across 8 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers