Skip to content
FramesField
SKILL.md Developer / Local Tooling SKILL.md
Verified Nov 29, 2026

FFmpeg Motion Titles and Safe End-Card Skill

How to install this SKILL.md

Install into .claude/skills/, .cursor/skills/, or .agents/skills/ whenever your coding agent composites lower-thirds, speaker badges, or static brand end-cards onto AI video renders.

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.

Compatible agent hosts
Claude Code Cursor Codex
Target tool: FFmpeg / PNG Overlay / Satori · License: MIT
  1. STEP 01
    Install the FFmpeg Motion Titles skill

    Pick Claude Code, Cursor, or Codex below to save SKILL.md directly from /raw/skills/.

  2. STEP 02
    Render crisp RGBA title plates or end-cards

    Agent generates transparent PNG titles (Figma/Satori/sharp) so typography never depends on missing FFmpeg fonts.

  3. STEP 03
    Composite with timed fades & apad safety

    Overlays titles cleanly with enable='between(t,...)', protects silent end-cards via apad, and exports yuv420p.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (SKILL.md) ↓
Claude Code (.claude/skills/) bash
Installs into .claude/skills/ffmpeg-motion-titles/SKILL.md for portable FFmpeg title and end-card compositing.
mkdir -p .claude/skills/ffmpeg-motion-titles
curl -fsSL https://framesfield.com/raw/skills/motion-graphics-lower-thirds-ffmpeg-skill -o .claude/skills/ffmpeg-motion-titles/SKILL.md

2. Inspect or download the full SKILL.md file

This is the exact raw file served at /raw/skills/motion-graphics-lower-thirds-ffmpeg-skill.

FFmpeg Motion Titles and Safe End-Card Skill SKILL.md
---
name: ffmpeg-motion-titles
description: Composite razor-sharp transparent RGBA PNG lower-third plates, timed callout fades, and apad-protected static brand end-cards over AI video edits using 100% portable FFmpeg overlay, drawbox, fade, and yuv420p mastering filters.
---

# FFmpeg Portable Motion Titles & End-Card Protocol

Stock macOS Homebrew and minimal Linux `ffmpeg` builds frequently omit `libfreetype` (`drawtext`) and `libass`. Never assume `drawtext` exists or ask an AI video model to bake small brand URLs into diffusion frames. Follow this 100% portable compositing contract:

## 1. Prefer Transparent RGBA PNG Plates Over `drawtext`
Render speaker lower-thirds, pricing badges, and closing end-cards as crisp RGBA `.png` files matching the video canvas (`1920x1080` or `1080x1920`) using Figma, Satori, or `sharp` SVG-to-PNG—then composite via FFmpeg's universal `overlay` filter.

## 2. Timed Lower-Third Overlay With Clean Fade-In & Fade-Out
Display `lower_third.png` cleanly from `t = 1.5s` to `t = 5.5s` with `0.3s` alpha fade transitions:
```bash
ffmpeg -y -i main_cut.mp4 -loop 1 -t 6 -i lower_third.png \
  -filter_complex "[1:v]format=rgba,fade=t=in:st=1.5:d=0.3:alpha=1,fade=t=out:st=5.2:d=0.3:alpha=1[lt];[0:v][lt]overlay=0:0:shortest=1,format=yuv420p[v]" \
  -map "[v]" -map 0:a? \
  -c:v libx264 -crf 18 -pix_fmt yuv420p -movflags +faststart \
  -c:a copy titled_cut.mp4
```

## 3. Append a Static 3.5-Second Brand End-Card Without Audio Truncation
Always pair a static image end-card with a silent stereo `anullsrc` track (matching `48000 Hz` sample rate) before `concat` so audio and video streams stay locked:
```bash
ffmpeg -y -i titled_cut.mp4 -loop 1 -t 3.5 -i endcard_1080p.png -f lavfi -t 3.5 -i anullsrc=r=48000:cl=stereo \
  -filter_complex "[0:v]fps=24,scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1[v0];[1:v]fps=24,scale=1920:1080,setsar=1,fade=t=in:st=0:d=0.25[v1];[v0][0:a][v1][2:a]concat=n=2:v=1:a=1[v][a]" \
  -map "[v]" -map "[a]" \
  -c:v libx264 -crf 18 -pix_fmt yuv420p -movflags +faststart \
  -c:a aac -b:a 192k -ar 48000 master_with_endcard.mp4
```

## 4. Mandatory Post-Export Probe
Always run `ffprobe` to verify exact final duration (`main + 3.5s`), `yuv420p`, `24/1` CFR, and stereo `48000 Hz` AAC.

3. Test it right away (sample prompt & result)

Sample prompt / input
"Composite lower_third.png from 2.0s to 6.0s onto spot_graded.mp4 and append our 3.5s static endcard.png without cutting off early."
What happens when it runs
- Composites lower_third.png with 0.3s alpha fade-in/out using universal FFmpeg overlay (zero libfreetype dependency).
- Appends 3.5s endcard.png paired with 48kHz stereo anullsrc via concat, exporting H.264 yuv420p +faststart master verified by ffprobe.

What you need & known limits

Requirements

  • Standard local ffmpeg and ffprobe (works on stock macOS Homebrew & Linux builds without libfreetype)
  • Transparent .png title card and 1920x1080 (or 1080x1920) static .png end-card

Watch out for

  • If mixing a shorter narration track over a longer video+endcard, always append ,apad to the narration track before amix=duration=shortest so the closing card is never truncated
  • For complex animated graphs or multi-language dynamic text batches, switch to Remotion (Skill 15)

Frequently Asked Questions

Why use transparent PNG overlays instead of FFmpeg drawtext?
Many stock Homebrew and Docker FFmpeg builds ship without libfreetype/fontconfig, causing drawtext commands to crash immediately—and transparent PNG plates rendered from Figma or Satori guarantee exact brand kerning, custom web fonts, and SVG marks.
Why pair static end-cards with anullsrc before concat?
Concatenating a clip with audio alongside a silent static image causes FFmpeg concat errors or early stream termination unless the static image segment carries a matching 48kHz stereo audio track.
Use this page in AI tools or notes
raw .md