Astral

ffmpeg

Skill · Version 1 · Nov 7, 2026

About ffmpeg

Use when you convert, resize, trim or compress video or audio, extract audio, or prepare media assets for Remotion with FFmpeg.

What it does

# FFmpeg for Video Production FFmpeg is the essential tool for video/audio processing. This skill covers common operations for Remotion video projects. ## Quick Reference ### GIF to MP4 (Remotion-compatible) ```bash ffmpeg -i input.gif -movflags faststart -pix_fmt yuv420p \ -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4 ``` **Why these flags:** - `-movflags faststart` - Moves metadata to start for web streaming - `-pix_fmt yuv420p` - Ensures compatibility with most players - `scale=trunc(...)` - Forces even dimensions (required by most codecs) ### Resize Video ```bash # To 1920x10…