ffmpeg-production

ffmpeg-production is a skill for Claude Code from Galbaz1/video-research-mcp. It costs 42 tokens per session (2,495 once invoked), scanned A, original, MIT.

A set of instructions for using FFmpeg, a command-line tool that processes video and audio files.

In plain words
What is it for?
Converting formats, resizing, trimming, joining, compressing, and applying post-processing to video or audio, including AI-generated video.
Why use it?
It provides recipes for common editing and export tasks, so you do not have to work out every FFmpeg command yourself. It does not cover voice mixing or Remotion rendering.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the gr plugin — 12 skills, 17 commands, 7 agents shipped together

Good fit Converting formats, resizing, trimming, joining, compressing, and applying post-processing to video or audio, including AI-generated video.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/galbaz1/video-research-mcp/ffmpeg-production
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Galbaz1/video-research-mcp --skill ffmpeg-production
Clone the repo
git clone --depth 1 https://github.com/Galbaz1/video-research-mcp

Made for: Claude Code.

Or install gr, the plugin that ships this one along with the rest of its 12 skills, 17 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ffmpeg-production

README.md
[![agentmods](https://agentmods.dev/badge/skills/galbaz1/video-research-mcp/ffmpeg-production/github.svg)](https://agentmods.dev/skills/galbaz1/video-research-mcp/ffmpeg-production)
Your own site
<a href="https://agentmods.dev/skills/galbaz1/video-research-mcp/ffmpeg-production"><img src="https://agentmods.dev/badge/skills/galbaz1/video-research-mcp/ffmpeg-production/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ffmpeg-production

Your own site · 80×15
<a href="https://agentmods.dev/skills/galbaz1/video-research-mcp/ffmpeg-production"><img src="https://agentmods.dev/badge/skills/galbaz1/video-research-mcp/ffmpeg-production.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.02495
Opus 5 $0.00021 $0.01247
Sonnet 5 $0.00008 $0.00499
Haiku 4.5 $0.00004 $0.00249

Measured 11d ago against content hash 8e9d3e1adf32, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ffmpeg-production scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ffmpeg-production/SKILL.md · 241 lines

How it starts

The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FFmpeg Production

FFmpeg recipes for video post-production. Covers the operations you reach for daily: format conversion, scaling, trimming, concatenation, compression, and AI video post-processing.

For platform-specific export presets (YouTube, TikTok, Instagram, Twitter), see references/platform-presets.md.

Post-Processing Filter Order

Sequence determines correctness, not just quality. This is a physical constraint.

[1] Temporal denoise  — remove inter-frame shimmer before any processing
[2] Scale             — scale before sharpening avoids halos
[3] Sharpen           — recover edge detail lost in generation/upscale
[4] Color grade (LUT) — normalize over-saturated AI palette
[5] Curves/EQ         — fine-tune contrast and shadow lift
[6] Film grain        — LAST before encode; grain before denoising destroys it
[7] Encode            — libx265 -tune grain or AV1 FGS

Violations cause correctness failures: grain before denoising destroys it; interpolation after grain synthesis causes tearing.

Full chain as a single filtergraph:

ffmpeg -i input.mp4 \
  -vf "hqdn3d=2:2:3:3,\
       scale=1920:1080:flags=lanczos,\
       unsharp=5:5:0.8:5:5:0.4,\
       lut3d=grade.cube,\
       curves=r='0/0 0.5/0.52 1/1':b='0/0.03 1/0.97',\
       noise=alls=6:allf=t+u" \
  -c:v libx265 -crf 18 -preset slow -tune grain \
  -c:a copy output.mp4

Hald CLUT Color Grading

Preferred for iterative grading: export a Hald CLUT, grade in Photoshop/GIMP, re-import. No re-encoding between iterations.

ffmpeg -i input.mp4 -i hald_clut_graded.png \
  -filter_complex "[0:v][1:v] haldclut" \
  -c:v libx265 -crf 18 output.mp4

Format Conversion

Codec Selection

Target Codec When to use
Web/streaming libx264 Universal compatibility
Archive/master libx265 ~40% smaller at same quality
Modern distribution libsvtav1 Best compression, slower encode
Browser embed libvpx-vp9 WebM container, good compression

Read the full file on GitHub · 241 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 241 lines · 42 tokens per session scan A 8e9d3e1adf32

Subscribe to this mod's changes

ffmpeg-production is a skill published in the GitHub repository Galbaz1/video-research-mcp (23 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 2,495 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.