Skip to content
FramesField
HOST DIRECTORY · FFMPEG & VIDEO CLI
raw .md ↗ Verified Dec 1, 2026

FFmpeg, Whisper and Remotion Video CLI Skill Pack

Locally verified FFmpeg, Whisper transcription, Remotion React video, and C2PA provenance SKILL.md rulebooks plus video QC subagents—engineered to eliminate Safari yuv444p black screens, truncated silent end-cards, missing macOS libass/drawtext crashes, inconsistent multi-model frame rates, and unnormalized -14 LUFS audio mixes.

TARGET INSTALL LOCATION · 26 VERIFIED MODULES
.claude/skills/<name>/SKILL.md | .cursor/skills/<name>/SKILL.md | .agents/skills/<name>/SKILL.md

Every FFmpeg filtergraph, Whisper caption pipeline, and Remotion contract in this pack has been verified locally against synthetic media edge cases—silent AI clips, macOS Homebrew filter gaps, and short narration over long video slates.

Executable Payloads

All 26 Verified FFmpeg & Video CLI Modules

Direct raw endpoints at /raw/skills/[slug]
03
SKILL.md FFmpeg SKILL.md

FFmpeg Studio Conform & Loudness Skill

Drop-in SKILL.md instruction file for Claude Code, Cursor, and Codex agents to probe raw AI video renders via ffprobe, standardize mixed frame rates (16/24/30 fps), inject silent PCM into silent clips, normalize audio to EBU R128 (-14 LUFS / -1.0 dBTP), and concatenate delivery masters without A/V drift.

08
SKILL.md FFmpeg SKILL.md

FFmpeg 9:16 Safe-Zone Crop, Subtitle Burn & Audio Ducking Skill

Drop-in SKILL.md rulebook teaching Claude Code, Cursor, and Codex how to render 1080×1920 Reels/Shorts/TikTok masters with unified safe-zone ASS captions (MarginV=520, MarginR=170), automatic sidechain music ducking that never cuts off closing end-cards (apad), and EBU R128 -14 LUFS loudness.

11
Subagent Gemini Omni Flash / Kling 4.0 / Runway Gen-4 / FLUX shot-director.md

AI Video Shot Director Subagent

Installable custom subagent (.claude/agents/shot-director.md or .cursor/agents/shot-director.md) that runs in its own isolated context to turn raw scripts into deterministic shotlist.json manifests—auditing lens scale, single-axis camera moves, Star-Branch continuity, 2.2 wps dialogue caps, and 4-invariant lighting before you spend API credits.

12
Subagent FFmpeg / ffprobe video-qc-auditor.md

Video QA and Broadcast Delivery Subagent

Read-only diagnostic subagent (.claude/agents/video-qc-auditor.md or .cursor/agents/video-qc-auditor.md) that runs ffprobe and FFmpeg EBU R128 loudness analysis across every rendered MP4/MOV in a folder—returning a strict PASS/FAIL audit table covering resolution, yuv420p, constant FPS, 48 kHz audio, -14 LUFS, and -1.0 dBTP ceilings.

14
SKILL.md Gemini Omni Flash / Kling 4.0 / Runway APIs SKILL.md

Video API Async Polling and Batch Render Skill

Production SKILL.md rulebook teaching Claude Code, Cursor, and Codex how to write safe batch render scripts for Google Gemini Omni 1.2 Flash, Kling 4.0, and Runway Gen-4 Turbo—enforcing mandatory --dry-run USD cost caps, exponential backoff polling, idempotent manifest.json resume, and automatic zero-billing error guards.

15
SKILL.md Remotion (React Video) SKILL.md

Remotion Video and End-Card Compositor Skill

Drop-in SKILL.md rulebook for combining AI-generated video clips (Gemini Omni Flash, Kling 4.0, Runway Gen-4.5, Wan 2.2) with razor-sharp programmatic React typography, Recraft V4.1 SVG end-cards, animated lower-thirds, and safe-zone 9:16 overlays inside Remotion—paired with Remotion's official agent skills.

18
SKILL.md FFmpeg / ffprobe SKILL.md

FFmpeg Scene Detection and Contact Sheet Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex how to detect shot cuts with FFmpeg, extract lossless PNG first/last keyframes for Image-to-Video continuity, and generate compact tiled contact sheets so vision agents can inspect entire video sequences in one image.

19
SKILL.md FFmpeg SKILL.md

FFmpeg Film Grain and LUT Match Skill

Installable SKILL.md rulebook for unifying mismatched AI video clips (Gemini Omni Flash, Kling 4.0, Runway Gen-4 Turbo, Runway Gen-4.5, Wan 2.2) into one cohesive camera look via subtle Rec.709 contrast matching, .cube 3D LUT application, restrained organic 35mm film grain (noise=alls=7:allf=t+u), and strict yuv420p delivery.

20
SKILL.md FFmpeg SKILL.md

FFmpeg Frame Rate Conform and Upscale Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex how to convert 16 fps local Wan 2.2 renders or 30 fps clips cleanly to 24 fps cinema cadence (minterpolate optical flow vs clean cadence conform) and upscale 720p footage to crisp 1080p (lanczos + restrained unsharp) without ghosting.

21
SKILL.md OpenAI Audio API / whisper.cpp SKILL.md

Whisper Transcription and ASS Caption Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex how to transcribe dialogue or voiceovers with OpenAI Whisper / gpt-4o-transcribe, enforce a strict 3–4 word vertical cue limit, correct brand acronyms, and emit cross-platform TikTok/Reels/Shorts safe-zone .ass subtitle scripts.

22
SKILL.md c2patool (Content Authenticity) SKILL.md

C2PA Content Credentials and Metadata Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex how to inspect, verify, and embed C2PA Content Credentials on AI-generated image and video deliverables using the official open-source c2patool (contentauth/c2patool)—preventing accidental provenance stripping during post-production.

29
ComfyUI JSON ComfyUI / Lightricks LTX-2 ltx2-i2v-workflow.api.json

ComfyUI Lightricks LTX-2 I2V Video Graph

Runnable headless-ready ComfyUI API graph JSON for Lightricks LTX-2 (compatible across LTX-2, LTX-2.3, and LTX-2.5 released August 2026) open-weight Image-to-Video—pre-wired with LTXVConditioning, LTXVImgToVideo (768×512, 97 frames = 8n + 1), LTXVScheduler, SamplerCustomAdvanced, VAEDecode, and terminal CreateVideo + SaveVideo MP4 output.

38
SKILL.md FFmpeg / PNG Overlay / Satori SKILL.md

FFmpeg Motion Titles and Safe End-Card Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex to composite crisp RGBA PNG lower-third title plates, timed fade-in/out callout overlays, and apad-protected static brand end-cards over AI video footage using portable FFmpeg filters that run reliably even on builds lacking libfreetype/drawtext.

39
SKILL.md Seedream 5.5 / Seedance 2.5 / fal.ai SKILL.md

Seedance 2.5 Video and Seedream 5.5 API Batch Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex to orchestrate 2K multi-reference still and RGBA layer batches in ByteDance Seedream 5.5 ($0.020–$0.035 on BytePlus; $0.03–$0.0405 on fal.ai) and animate approved lossless PNGs in ByteDance Seedance 2.5 (4–30s multi-shot video with native audio, ~$0.22/s 480p draft or ~$0.473/s 720p on fal.ai) with mandatory draft previews, cost caps, and retry logging.

43
Subagent Gemini Omni Flash / Runway Gen-4 / Seedance 2.5 / PixVerse V6 video-pacing-director.md

Video Pacing, Script and Shot-List Subagent

Installable custom subagent (.claude/agents/video-pacing-director.md or .cursor/agents/video-pacing-director.md) that rewrites bloated scripts into tight 5–8 second visual beats, enforces the 14-word spoken line ceiling per 8-second spoken clip, varies shot scale across consecutive cuts, and routes every beat to the cheapest right-fit video model.

47
SKILL.md FFmpeg CLI / Suno v6 / Kling 4.0 / Runway Gen-4 SKILL.md

FFmpeg Beat-Sync Montage & Concat Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to trim AI video clips past slow opening settle frames (-ss 0.40), snap every shot to exact musical BPM bar durations at constant 24fps CFR, unify mixed models with subtle 35mm temporal film grain, and mux stereo soundtracks at -14 LUFS with yuv420p +faststart.

48
Subagent Remotion / FFmpeg / Meta & TikTok Ads QA ad-localization-qa.md

Ad Creative & Localization QA Critic Agent

Read-only Maker-Checker subagent for Claude Code and Cursor that audits multi-language ad scripts, SRT/ASS subtitle files, JSON campaign feeds, and rendered canary frames for 9:16 safe-zone collisions, +20% translation timing overruns (>2.6 words/sec), missing Unicode/RTL glyphs, and brand/offer consistency before uploading to Meta, TikTok, or YouTube Ads.

58
SKILL.md fal.ai Queue API / Topaz Video API / Sync Lipsync 2.0 / FFmpeg SKILL.md

Topaz 4K Upscale & Sync Lipsync 2.0 fal.ai Batch Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to trim dead settle frames, run fal.ai queue jobs for Topaz Video Upscale (Proteus 4K $0.08/s, Gaia 2 half-price animation $0.04/s) and Sync Lipsync 2.0 ($3/min Standard · $5/min Pro), and re-mux untouched 48 kHz WAV audio at -14 LUFS.

59
SKILL.md Kokoro-82M (Apache 2.0) / Python / FFmpeg SKILL.md

Kokoro-82M Local Apache 2.0 TTS Batch Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to synthesize zero-API-cost commercial voiceovers locally using Apache 2.0 Kokoro-82M (82M params, runs on CPU or GPU), resample native 24 kHz WAV outputs to broadcast 48 kHz stereo, normalize to -14 LUFS, and emit exact scene duration manifests.

62
SKILL.md fal.ai API / ElevenLabs Music / Topaz Image Upscale / FFmpeg SKILL.md

ElevenLabs Music & Topaz Print Upscale fal.ai Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to automate two high-ROI fal.ai finishing passes: ElevenLabs Music API ($0.60/min rounded up, force_instrumental: true, 48 kHz M&E conform + 2 kHz ducking) and Topaz Image Upscale API ($0.08 up to 24MP 300 DPI print, $0.16 48MP, $0.32 96MP, tuned face enhancement).

63
SKILL.md FFmpeg CLI / Remotion / DaVinci Resolve / OBS SKILL.md

FFmpeg Transparent WebM & ProRes 4444 Overlay Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to encode transparent RGBA PNG frame sequences (from Remotion, Figma, or Blender) into true alpha-channel ProRes 4444 (.mov, yuva444p10le) for DaVinci/Premiere and WebM VP9 (.webm, yuva420p, -auto-alt-ref 0) for browsers and OBS—verified via ffprobe.

66
SKILL.md fal.ai API / FASHN Try-On v1.6 / ByteDance SeedVR2 / FFmpeg SKILL.md

FASHN Virtual Try-On & SeedVR2 Video Upscale fal.ai Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to automate two high-precision fal.ai visual production pipelines under one FAL_KEY: FASHN Virtual Try-On v1.6 ($0.075/look, segmentation_free + Topaz 3× zoom finish) and ByteDance SeedVR2 temporal video restoration ($0.001 per output megapixel, pre-flight MP cost math, and CFR 24fps conform).

67
SKILL.md fal.ai API / ElevenLabs Scribe v2 / Python / FFmpeg SKILL.md

ElevenLabs Scribe v2 STT to Synced SRT & 9:16 ASS Captions Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to extract timeline-aligned 16 kHz mono WAV audio, pin ElevenLabs Scribe v2 on fal.ai ($0.008/min · $0.0104/min w/ custom brand keyterms and speaker diarization), and deterministically emit 38-char YouTube SRTs plus 3-word active-highlight 9:16 Reels ASS captions.

71
SKILL.md fal.ai API / ElevenLabs Audio Isolation / FFmpeg / ffprobe SKILL.md

ElevenLabs Audio Isolation & ACX / Podcast RSS Master Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to clean noisy podcast interviews, Zoom MP4s, and bedroom audiobook recordings via ElevenLabs Audio Isolation ($0.10/min on fal.ai) and master verified 44.1 kHz 192 kbps CBR MP3 outputs passing Amazon ACX (-18 to -23 dB RMS, <=-3.0 dB peak, <-60 dB floor) or Apple/Spotify Podcast RSS (-16 LUFS).

74
SKILL.md fal.ai Queue API / FLUX LoRA / Wan VACE 14B / FFmpeg SKILL.md

FLUX LoRA Training & Wan VACE 14B fal.ai Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex to run long-running fal.ai GPU pipelines cleanly via queue.fal.run (zero 504 timeouts): train custom FLUX LoRAs ($2.00/1,000 steps) and archive .safetensors locally, run calibrated fal-ai/flux-lora inference ($0.035/MP, CFG 3.5), and execute masked Alibaba Wan VACE 14B video object removal ($0.08/s) with +12px FFmpeg mask dilation.

75
SKILL.md fal.ai Queue API / Meta SAM 2 / Kling O1 V2V Edit / FFmpeg SKILL.md

Meta SAM 2 Video Masking & Kling O1 V2V fal.ai Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex to run Meta SAM 2 temporal video masking (fal-ai/sam2/video ~$0.02/clip or Apache-2.0 local) with verified FFmpeg +12px shadow dilation AND mask-free Kling O1 Video-to-Video Edit (fal-ai/kling-video/o1/video-to-video/edit at $0.168/s with @Image1 anchoring and keep_audio: true) via async queue.fal.run.

Host Architecture & Quickstart

How FFmpeg & Video CLI Loads & Executes These Modules

AI video generators—whether Google Gemini Omni 1.2 Flash (24fps native audio), Kling 4.0 (audio included, conform fps in post), Runway Gen-4 / Gen-4.5 (silent), Alibaba Wan 2.2 (16fps silent), or Lightricks LTX-2 / LTX-2.5 (up to 50fps)—never output broadcast-ready deliverables straight from inference. Combining raw clips from multiple models exposes every brittle corner of command-line video engineering: missing audio streams that break concat filtergraphs, yuv444p or 10-bit pixel formats that render as solid black frames in Safari and QuickTime, amix filters that abruptly chop off silent logo end-cards when narration finishes early, and macOS Homebrew FFmpeg builds compiled without libass (subtitles) or libfreetype (drawtext). This directory pairs battle-tested FFmpeg, Whisper word-level ASS captioning, Remotion programmatic React compositing, and c2patool Content Credentials skills with isolated video QC subagents so your coding agent probes local binaries first, conforms every stream cleanly, and certifies every deliverable with ffprobe before finishing.

Probe Local FFmpeg Filters & Install the Core Video CLI Pack install-ffmpeg-video-cli-pack.sh
# 1. Probe local FFmpeg filter capabilities FIRST (catches macOS Homebrew libass/drawtext gaps)
ffmpeg -version | head -n 1
ffmpeg -hide_banner -filters | grep -E " (loudnorm|subtitles|ass|drawtext|sidechaincompress) " || true

# 2. Install core tested Video CLI SKILL.md rulebooks from pure /raw/skills/ endpoints
mkdir -p .claude/skills/ffmpeg-studio-conform   .claude/skills/ffmpeg-vertical-delivery   .claude/skills/whisper-ass-captions   .claude/skills/ffmpeg-motion-titles   .claude/agents

curl -fsSL https://framesfield.com/raw/skills/ffmpeg-loudness-conform   -o .claude/skills/ffmpeg-studio-conform/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/ffmpeg-vertical-captions-and-ducking   -o .claude/skills/ffmpeg-vertical-delivery/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/whisper-srt-and-ass-caption-pipeline-skill   -o .claude/skills/whisper-ass-captions/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/motion-graphics-lower-thirds-ffmpeg-skill   -o .claude/skills/ffmpeg-motion-titles/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/video-qc-delivery-agent   -o .claude/agents/video-qc-auditor.md

# 3. Verify line-1 YAML frontmatter on installed skills
head -n 3 .claude/skills/ffmpeg-studio-conform/SKILL.md
Proven Combinations

Recommended FFmpeg & Video CLI Starter Bundles

BUNDLE 01

Broadcast-Safe Social & Paid Ad Finishing Stack

FFmpeg Studio Conform (Skill 03) + Whisper ASS Captions (Skill 21) + 9:16 Safe-Zone Captions & Ducking (Skill 08) + @video-qc-auditor (Skill 12)

Expected outcome: Convert raw silent or mixed AI renders into crisp 1080×1920 vertical and 1920×1080 widescreen masters with sidechain-ducked music, safe-zone word-highlighted captions, -14 LUFS loudness, and verified Safari yuv420p playback.

BUNDLE 02

Multi-Model Trailer & Beat-Synced Assembly Stack

Scene Detection & Contact Sheet (Skill 18) + Film Grain & LUT Match (Skill 19) + Optical-Flow FPS Conform (Skill 20) + Beat-Sync Montage & Concat (Skill 47)

Expected outcome: Unify disparate 16fps Wan 2.2, 24fps Gemini Omni 1.2 Flash, Runway Gen-4.5, and Kling 4.0 takes into one color-matched, grain-unified 24fps edit cut precisely to Suno v6 music downbeats.

BUNDLE 03

Programmatic Ad Matrix & C2PA Provenance Stack

Remotion Programmatic Video (Skill 15) + Portable PNG Motion Titles (Skill 38) + C2PA Provenance Audit (Skill 22) + @ad-localization-qa (Skill 48)

Expected outcome: Composite 50+ data-driven pricing cards, localized hooks, and animated lower-thirds over approved AI B-roll with verified C2PA Content Credentials intact for agency compliance.

Operational Hygiene

FFmpeg & Video CLI Security, Hygiene & Performance Rules

RULE 01

Lock Safari-safe yuv420p encoding and synthesize anullsrc audio on silent AI clips

Never concatenate a silent Wan 2.2 or Runway Gen-4 clip with a voiced Gemini Omni 1.2 Flash or Kling 4.0 clip directly—FFmpeg concat aborts or desyncs whenever stream counts mismatch. Inject anullsrc=channel_layout=stereo:sample_rate=48000 on silent shots and always encode masters with -c:v libx264 -pix_fmt yuv420p -movflags +faststart.

RULE 02

Probe ffmpeg -filters before emitting libass or drawtext commands on macOS

Default Homebrew ffmpeg formulae frequently omit libass or libfreetype, crashing subtitles= and drawtext= pipelines mid-build. Instruct agents via Skill 38 (motion-graphics-lower-thirds-ffmpeg-skill) to probe ffmpeg -filters first and fall back automatically to transparent Satori/PNG overlays or Remotion React renders.

RULE 03

Always pad shorter voiceovers with apad so amix never cuts off silent end-cards

When a 12-second voiceover mixes over a 15-second commercial carrying a 3-second silent brand slate, amix=duration=shortest or first silently slices off your CTA end-card. Apply apad to shorter narration stems and lock amix=duration=longest paired with an explicit -t duration ceiling.

RULE 04

Measure loudness in two passes and gate final exports with @video-qc-auditor

Single-pass dynamic loudnorm creates audible pumping on quiet dialogue intros. Run two-pass loudnorm (-14 LUFS integrated, -1.0 dBTP true peak, LRA 11) for YouTube, TikTok, Reels, and paid Meta ads, then run @video-qc-auditor (ffprobe) to verify exact dimensions, frame rate, codec, and audio peak compliance.

Common Setup Issues

Troubleshooting FFmpeg & Video CLI Installation Errors

Exported MP4 plays cleanly in VLC and Chrome but shows a solid black screen in Safari or QuickTime

Inspect pix_fmt via ffprobe—most black-screen exports use yuv444p or 10-bit H.264/HEVC. Re-encode with -c:v libx264 -profile:v high -level 4.1 -pix_fmt yuv420p -movflags +faststart using Skill 03 (ffmpeg-loudness-conform).

Open dedicated playbook →
FFmpeg fails on macOS with "No such filter: subtitles" or "No such filter: drawtext"

Your Homebrew FFmpeg build lacks libass or libfreetype. Either install a full-featured FFmpeg tap (homebrew-ffmpeg/ffmpeg/ffmpeg --with-libass --with-freetype) or route lower-thirds and end-cards through transparent PNG overlays via Skill 38 (motion-graphics-lower-thirds-ffmpeg-skill).

Open dedicated playbook →
FFmpeg amix cuts off the final 2–4 seconds of a commercial right as the logo end-card appears

Insert apad on the voiceover stream and configure amix=inputs=2:duration=longest:dropout_transition=0 capped to the exact video duration so silent CTA slates play through to completion.

Open dedicated playbook →
Remotion renders or burned-in ASS captions fall back to generic sans-serif or tofu boxes (□□)

Bundle local .ttf/.woff2 font files explicitly instead of relying on container system fonts, pass fontsdir= to libass (or @remotion/google-fonts / local @font-face with delayRender in Remotion), and verify CJK/glyph coverage before batching.

Open dedicated playbook →

FFmpeg & Video CLI Setup FAQs

Why do FFmpeg commands generated by vanilla AI coding agents fail so frequently on AI video clips?
Generic LLMs assume every input clip shares identical frame rates, yuv420p pixel formats, and stereo 48kHz audio streams, and they assume macOS FFmpeg includes libass and drawtext. Real AI video pipelines mix silent 16fps Wan 2.2 clips with voiced 24fps Gemini Omni 1.2 Flash or Kling 4.0 clips—so FramesField FFmpeg skills enforce explicit stream probing, anullsrc synthesis, apad end-card protection, and filter capability fallbacks.
When should I choose Remotion (Skill 15) over pure FFmpeg overlays (Skill 38) for titles and ad variants?
Use pure FFmpeg + transparent Satori/PNG overlays (Skill 38) for fast, lightweight single-spot finishing, lower-thirds, and simple end-card slates that render in seconds on any machine. Choose Remotion (Skill 15) whenever you need complex React spring animations, dynamic JSON-driven matrices of 20–100 localized ad variants, live data visualizations, or shared CSS design tokens from your web app.
What exact codec and audio loudness targets do these Video CLI skills enforce?
Web and social delivery skills conform video to H.264 (libx264, High profile, -pix_fmt yuv420p, -movflags +faststart, even integer dimensions) and audio to AAC 48kHz stereo normalized via two-pass loudnorm to -14 LUFS integrated loudness and -1.0 dBTP true peak—matching YouTube, TikTok, Instagram Reels, and Meta Ads playback requirements.
How do Whisper word-level captions avoid drifting out of sync after frame-rate conform or beat trimming?
Always finalize your visual edit timeline, optical-flow FPS conform (24fps or 30fps), and voiceover pacing BEFORE running Skill 21 (whisper-srt-and-ass-caption-pipeline-skill). Transcribing the locked composite audio track with word-level timestamps (timestamp_granularities=["word"]) guarantees burned-in ASS karaoke highlights land on the exact spoken frame.
Does FFmpeg re-encoding strip C2PA Content Credentials from AI-generated exports, and how do I handle provenance?
Yes—re-encoding video streams through FFmpeg or Remotion invalidates or drops embedded C2PA cryptographic manifests from upstream generators. Run Skill 22 (c2pa-provenance-and-metadata-audit-skill) to inspect source ingredients before editing and re-sign the final composite master with c2patool referencing the original AI source assertions whenever client disclosure or platform provenance is required.
Use this page in AI tools or notes
raw .md