---
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 Transparent WebM & ProRes 4444 Overlay Skill"
description: "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."
canonical: "https://framesfield.com/skills/ffmpeg-transparent-webm-prores4444-overlay-skill"
---

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

- **Canonical URL:** https://framesfield.com/skills/ffmpeg-transparent-webm-prores4444-overlay-skill
- **Raw Payload URL:** https://framesfield.com/raw/skills/ffmpeg-transparent-webm-prores4444-overlay-skill
- **Asset Type:** SKILL.md
- **Compatible Hosts:** Claude Code, Cursor, Codex
- **Target Creative Tool:** FFmpeg CLI / Remotion / DaVinci Resolve / OBS
- **License:** MIT
- **Last Verified:** 2026-12-01

## Setup & Install

```bash
mkdir -p .claude/skills/ffmpeg-alpha-overlays && curl -fsSL https://framesfield.com/raw/skills/ffmpeg-transparent-webm-prores4444-overlay-skill -o .claude/skills/ffmpeg-alpha-overlays/SKILL.md

```

## Copyable Asset (SKILL.md)

````markdown
---
name: ffmpeg-alpha-overlays
description: Encode transparent RGBA PNG sequences (and optional 48 kHz SFX audio) into true alpha-channel Apple ProRes 4444 (.mov, yuva444p10le) for DaVinci Resolve/Premiere/Final Cut and WebM VP9 (.webm, yuva420p with -auto-alt-ref 0) for Chrome, Firefox, and OBS, verified via ffprobe. Use when exporting animated logo stings, lower-thirds, or transparent UI overlays.
---

# FFmpeg Transparent WebM & ProRes 4444 Overlay Playbook

## 1. Verify Input Frames Actually Contain an Alpha Channel
Never encode before checking that source PNGs are `rgba` (not opaque `rgb24`):
```bash
ffprobe -v error -select_streams v:0 -show_entries stream=pix_fmt,width,height -of compact=p=0 frames/frame_0001.png
```
Must report `pix_fmt=rgba` (or `rgba64be`). If `rgb24`, stop and tell the user to re-render with transparent background enabled.

## 2. Encode Editing-Bay Master (Apple ProRes 4444 `.mov`)
Universal NLE master for DaVinci Resolve, Premiere Pro, After Effects, and Final Cut Pro:
```bash
ffmpeg -y -framerate "${FPS:-30}" -i frames/frame_%04d.png -i sfx_48k.wav \
  -c:v prores_ks -profile:v 4444 -pix_fmt yuva444p10le -alpha_bits 16 \
  -c:a pcm_s16le -ar 48000 -shortest \
  overlay_alpha_prores4444.mov
```
*(Omit `-i sfx_48k.wav -c:a pcm_s16le -ar 48000 -shortest` and add `-an` for silent overlays.)*

## 3. Encode Web & OBS Overlay (WebM VP9 `.webm`)
CRITICAL: Always include `-auto-alt-ref 0` alongside `-pix_fmt yuva420p` so `libvpx-vp9` preserves the separate alpha channel cleanly across browsers and OBS:
```bash
ffmpeg -y -framerate "${FPS:-30}" -i frames/frame_%04d.png -i sfx_48k.wav \
  -c:v libvpx-vp9 -pix_fmt yuva420p -b:v 2M -auto-alt-ref 0 \
  -c:a libopus -b:a 128k -shortest \
  overlay_alpha_web.webm
```

## 4. Mandatory ffprobe Alpha Verification Gate
Always inspect BOTH output files before finishing (note that `ffprobe` needs `-c:v libvpx-vp9` to expose VP9's `yuva420p` alpha channel plus Matroska `alpha_mode=1`):
```bash
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,pix_fmt -of compact=p=0 overlay_alpha_prores4444.mov
ffprobe -v error -c:v libvpx-vp9 -select_streams v:0 -show_entries stream=codec_name,pix_fmt:stream_tags=alpha_mode -of compact=p=0 overlay_alpha_web.webm
```
Expected results:
- `.mov`: `codec_name=prores|pix_fmt=yuva444p12le` (or `yuva444p10le`)
- `.webm`: `codec_name=vp9|pix_fmt=yuva420p|tag:alpha_mode=1`
*(Note: Safari `<video>` elements require HEVC with alpha inside `.mov` for transparent web playback; mention this explicitly if the user targets iOS Safari web overlays.)*
````

## Example Input

```text
Encode our 90 transparent RGBA PNG logo frames in ./frames/ at 30fps with sonic_logo_48k.wav into both ProRes 4444 (.mov) for our DaVinci Resolve editor and WebM VP9 (.webm) for our landing page, and verify alpha channels.
```

## Expected Output

```text
Verified frames/frame_0001.png -> rgba 1920x1080.
Encoded overlay_alpha_prores4444.mov (prores | yuva444p10le) and overlay_alpha_web.webm (vp9 | yuva420p).
```

## Requirements

- FFmpeg 6+ built with `prores_ks`, `libvpx-vp9`, and `libopus` (standard in Homebrew FFmpeg)
- Numbered transparent RGBA PNG sequence (`frame_0001.png`...) rendered from Remotion, Figma Motion, or Blender

## Known Limits

- Standard H.264 `.mp4` never carries an alpha channel—always ship ProRes 4444 (.mov) for NLEs and WebM VP9 (.webm) for web/OBS
- iOS Safari does not play VP9 alpha natively; serve a stacked `<source>` fallback or Lottie/CSS SVG animation for iOS web overlays

## Implementation Notes

## Zero black-box accidents on animated logo stings and lower-thirds

Almost every developer or editor shipping their first transparent overlay hits the exact same two FFmpeg traps: exporting `H.264 .mp4` (which silently flattens transparency to solid black) or omitting `-auto-alt-ref 0` on WebM VP9. This skill codifies locally verified, `ffprobe`-gated alpha encoding for both NLE editing bays and modern web/OBS overlays—built to pair directly with our [Static SVG Logo to Animated Brand Sting & Transparent Alpha Overlay workflow](/workflows/static-svg-logo-to-animated-brand-sting-and-transparent-overlay-pipeline).
