---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "FFmpeg, Whisper and Remotion Video CLI Skill Pack"
description: "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."
canonical: "https://framesfield.com/skills/for/ffmpeg-and-video-cli"
---

# 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.

- **Canonical URL:** https://framesfield.com/skills/for/ffmpeg-and-video-cli
- **Target Install Path:** `.claude/skills/<name>/SKILL.md  |  .cursor/skills/<name>/SKILL.md  |  .agents/skills/<name>/SKILL.md`
- **Verified Modules:** 26
- **Last Verified:** 2026-12-01

## Host Architecture

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.

## Quickstart (install-ffmpeg-video-cli-pack.sh)

```bash
# 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
```

## All 26 Verified FFmpeg & Video CLI Modules

| # | Name | Type | Target Tool | Docs URL | Raw Payload URL |
| --- | --- | --- | --- | --- | --- |
| 03 | FFmpeg Studio Conform & Loudness Skill | SKILL.md | FFmpeg | https://framesfield.com/skills/ffmpeg-loudness-conform | https://framesfield.com/raw/skills/ffmpeg-loudness-conform |
| 08 | FFmpeg 9:16 Safe-Zone Crop, Subtitle Burn & Audio Ducking Skill | SKILL.md | FFmpeg | https://framesfield.com/skills/ffmpeg-vertical-captions-and-ducking | https://framesfield.com/raw/skills/ffmpeg-vertical-captions-and-ducking |
| 11 | AI Video Shot Director Subagent | Subagent | Gemini Omni Flash / Kling 4.0 / Runway Gen-4 / FLUX | https://framesfield.com/skills/shot-director-agent | https://framesfield.com/raw/skills/shot-director-agent |
| 12 | Video QA and Broadcast Delivery Subagent | Subagent | FFmpeg / ffprobe | https://framesfield.com/skills/video-qc-delivery-agent | https://framesfield.com/raw/skills/video-qc-delivery-agent |
| 14 | Video API Async Polling and Batch Render Skill | SKILL.md | Gemini Omni Flash / Kling 4.0 / Runway APIs | https://framesfield.com/skills/veo-kling-api-batch-runner | https://framesfield.com/raw/skills/veo-kling-api-batch-runner |
| 15 | Remotion Video and End-Card Compositor Skill | SKILL.md | Remotion (React Video) | https://framesfield.com/skills/remotion-programmatic-video-skill | https://framesfield.com/raw/skills/remotion-programmatic-video-skill |
| 18 | FFmpeg Scene Detection and Contact Sheet Skill | SKILL.md | FFmpeg / ffprobe | https://framesfield.com/skills/ffmpeg-scene-cut-and-contact-sheet-skill | https://framesfield.com/raw/skills/ffmpeg-scene-cut-and-contact-sheet-skill |
| 19 | FFmpeg Film Grain and LUT Match Skill | SKILL.md | FFmpeg | https://framesfield.com/skills/ffmpeg-color-grade-and-grain-match-skill | https://framesfield.com/raw/skills/ffmpeg-color-grade-and-grain-match-skill |
| 20 | FFmpeg Frame Rate Conform and Upscale Skill | SKILL.md | FFmpeg | https://framesfield.com/skills/ffmpeg-optical-flow-fps-and-upscale-skill | https://framesfield.com/raw/skills/ffmpeg-optical-flow-fps-and-upscale-skill |
| 21 | Whisper Transcription and ASS Caption Skill | SKILL.md | OpenAI Audio API / whisper.cpp | https://framesfield.com/skills/whisper-srt-and-ass-caption-pipeline-skill | https://framesfield.com/raw/skills/whisper-srt-and-ass-caption-pipeline-skill |
| 22 | C2PA Content Credentials and Metadata Skill | SKILL.md | c2patool (Content Authenticity) | https://framesfield.com/skills/c2pa-provenance-and-metadata-audit-skill | https://framesfield.com/raw/skills/c2pa-provenance-and-metadata-audit-skill |
| 29 | ComfyUI Lightricks LTX-2 I2V Video Graph | ComfyUI JSON | ComfyUI / Lightricks LTX-2 | https://framesfield.com/skills/comfyui-ltx2-audio-video-graph | https://framesfield.com/raw/skills/comfyui-ltx2-audio-video-graph |
| 38 | FFmpeg Motion Titles and Safe End-Card Skill | SKILL.md | FFmpeg / PNG Overlay / Satori | https://framesfield.com/skills/motion-graphics-lower-thirds-ffmpeg-skill | https://framesfield.com/raw/skills/motion-graphics-lower-thirds-ffmpeg-skill |
| 39 | Seedance 2.5 Video and Seedream 5.5 API Batch Skill | SKILL.md | Seedream 5.5 / Seedance 2.5 / fal.ai | https://framesfield.com/skills/seedance-seedream-fal-batch-skill | https://framesfield.com/raw/skills/seedance-seedream-fal-batch-skill |
| 43 | Video Pacing, Script and Shot-List Subagent | Subagent | Gemini Omni Flash / Runway Gen-4 / Seedance 2.5 / PixVerse V6 | https://framesfield.com/skills/video-edit-pacing-and-script-agent | https://framesfield.com/raw/skills/video-edit-pacing-and-script-agent |
| 47 | FFmpeg Beat-Sync Montage & Concat Skill | SKILL.md | FFmpeg CLI / Suno v6 / Kling 4.0 / Runway Gen-4 | https://framesfield.com/skills/ffmpeg-beat-sync-montage-and-concat-skill | https://framesfield.com/raw/skills/ffmpeg-beat-sync-montage-and-concat-skill |
| 48 | Ad Creative & Localization QA Critic Agent | Subagent | Remotion / FFmpeg / Meta & TikTok Ads QA | https://framesfield.com/skills/ad-creative-and-localization-qa-agent | https://framesfield.com/raw/skills/ad-creative-and-localization-qa-agent |
| 58 | Topaz 4K Upscale & Sync Lipsync 2.0 fal.ai Batch Skill | SKILL.md | fal.ai Queue API / Topaz Video API / Sync Lipsync 2.0 / FFmpeg | https://framesfield.com/skills/topaz-upscale-and-sync-lipsync-fal-skill | https://framesfield.com/raw/skills/topaz-upscale-and-sync-lipsync-fal-skill |
| 59 | Kokoro-82M Local Apache 2.0 TTS Batch Skill | SKILL.md | Kokoro-82M (Apache 2.0) / Python / FFmpeg | https://framesfield.com/skills/kokoro-local-apache-tts-batch-skill | https://framesfield.com/raw/skills/kokoro-local-apache-tts-batch-skill |
| 62 | ElevenLabs Music & Topaz Print Upscale fal.ai Skill | SKILL.md | fal.ai API / ElevenLabs Music / Topaz Image Upscale / FFmpeg | https://framesfield.com/skills/elevenlabs-music-and-topaz-print-upscale-fal-skill | https://framesfield.com/raw/skills/elevenlabs-music-and-topaz-print-upscale-fal-skill |
| 63 | FFmpeg Transparent WebM & ProRes 4444 Overlay Skill | SKILL.md | FFmpeg CLI / Remotion / DaVinci Resolve / OBS | https://framesfield.com/skills/ffmpeg-transparent-webm-prores4444-overlay-skill | https://framesfield.com/raw/skills/ffmpeg-transparent-webm-prores4444-overlay-skill |
| 66 | FASHN Virtual Try-On & SeedVR2 Video Upscale fal.ai Skill | SKILL.md | fal.ai API / FASHN Try-On v1.6 / ByteDance SeedVR2 / FFmpeg | https://framesfield.com/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill | https://framesfield.com/raw/skills/fashn-virtual-tryon-and-seedvr2-upscale-fal-skill |
| 67 | ElevenLabs Scribe v2 STT to Synced SRT & 9:16 ASS Captions Skill | SKILL.md | fal.ai API / ElevenLabs Scribe v2 / Python / FFmpeg | https://framesfield.com/skills/elevenlabs-scribe-stt-to-srt-and-ass-captions-skill | https://framesfield.com/raw/skills/elevenlabs-scribe-stt-to-srt-and-ass-captions-skill |
| 71 | ElevenLabs Audio Isolation & ACX / Podcast RSS Master Skill | SKILL.md | fal.ai API / ElevenLabs Audio Isolation / FFmpeg / ffprobe | https://framesfield.com/skills/elevenlabs-audio-isolation-and-acx-master-skill | https://framesfield.com/raw/skills/elevenlabs-audio-isolation-and-acx-master-skill |
| 74 | FLUX LoRA Training & Wan VACE 14B fal.ai Skill | SKILL.md | fal.ai Queue API / FLUX LoRA / Wan VACE 14B / FFmpeg | https://framesfield.com/skills/flux-lora-training-and-wan-vace-fal-skill | https://framesfield.com/raw/skills/flux-lora-training-and-wan-vace-fal-skill |
| 75 | Meta SAM 2 Video Masking & Kling O1 V2V fal.ai Skill | SKILL.md | fal.ai Queue API / Meta SAM 2 / Kling O1 V2V Edit / FFmpeg | https://framesfield.com/skills/sam2-video-masking-and-kling-o1-v2v-fal-skill | https://framesfield.com/raw/skills/sam2-video-masking-and-kling-o1-v2v-fal-skill |

## Recommended Starter Bundles

1. **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)` — 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.
2. **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)` — 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.
3. **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)` — 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.

## Best Practices

1. **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`.
2. **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.
3. **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.
4. **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.

## Troubleshooting

- **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`). (https://framesfield.com/fixes/ffmpeg-mp4-black-screen-safari-quicktime)
- **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`). (https://framesfield.com/fixes/ffmpeg-libass-drawtext-missing-macos)
- **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. (https://framesfield.com/fixes/ffmpeg-amix-cuts-off-end-card)
- **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. (https://framesfield.com/fixes/remotion-and-ffmpeg-font-missing-and-emoji-box-fix)

## 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.
