Home/Blogs/FFmpeg Cheat Sheet
Developer Tools

The Essential FFmpeg Cheat Sheet for Video Editors & Creators

By Crate Editorial Team•Published Oct 24, 2026•9 min read

FFmpeg is the silent engine powering the entire digital video industry. It runs behind YouTube's ingestion pipeline, Discord's video player, VLC, and CrateTools' in-browser video compressor.

While its command-line syntax can look intimidating at first glance, a dozen simple commands can replace hundreds of dollars in bloated commercial software. Here is our curated copy-paste cheat sheet.

⚡ Run FFmpeg Directly in Your Browser (No Terminal Required)

Don't feel like installing command-line tools? Crate Video Compressor compiles FFmpeg to WebAssembly so you can compress and transcode videos with 1 click in your browser.

Try In-Browser Video Compressor→

1. High-Efficiency Video Compression (H.264 + CRF)

Shrink a bloated camera video by 75%+ without noticeable loss in visual clarity:

ffmpeg -i input.mp4 -c:v libx264 -crf 24 -preset medium -c:a aac -b:a 192k output.mp4

2. Extract Audio Losslessly (No Re-encoding)

Pull the exact uncompressed audio stream from a video in less than one second using stream copying (-c:a copy):

ffmpeg -i input.mp4 -vn -c:a copy audio_output.aac

Or decode to standard 16-bit 48kHz uncompressed WAV:

ffmpeg -i input.mp4 -vn -ar 48000 -ac 2 -c:a pcm_s16le output.wav

3. Downscale 4K to 1080p With Crisp Lanczos Resampling

Downscale high-resolution videos while maintaining sharp text and fine details:

ffmpeg -i input_4k.mp4 -vf "scale=1920:1080:flags=lanczos" -c:v libx264 -crf 22 -c:a copy output_1080p.mp4

4. Convert Any Video to High-Quality GIF With Custom Palette

Standard video-to-GIF converters generate pixelated, grainy output. This two-pass recipe generates an optimal 256-color palette for crisp, cinema-grade GIFs:

ffmpeg -i input.mp4 -vf "fps=15,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif

5. Trim a Video Instantly Without Re-encoding

Cut the first 30 seconds of a video in 100 milliseconds without losing a single generation of quality:

ffmpeg -ss 00:00:10 -to 00:00:40 -i input.mp4 -c copy trimmed_output.mp4
Advertisement
Google AdSense Partner SlotActive upon AdSense domain verification
Crate Creative Suite

More Free Creator Tools

100% private, client-side tools designed for video editors and creators.

Popular

Crate Captions

Auto-generate gapless 1w–5w word subtitles with smart emojis for CapCut, Premiere, & Shorts.

Video & SubtitlesLaunch →

Extract Audio

Rip clean uncompressed WAV audio from any MP4, MOV, or WebM video locally in seconds.

Audio UtilitiesLaunch →

Compress Image

Batch optimize JPEG, PNG, and WebP images client-side with interactive before/after inspection.

Image ToolsLaunch →

Remove Background

Instant neural foreground isolation. Create transparent PNG cutouts without server uploads.

Image ToolsLaunch →

Convert Image

Bulk convert WebP to PNG/JPG, PNG to WebP/JPG, or JPG to WebP with one-click ZIP download.

Image ToolsLaunch →

Resize Image

Batch resize photos by pixel dimensions or percentages with aspect ratio lock and ZIP export.

Image ToolsLaunch →

Crop Image

Crop images visually with 16:9, 1:1, 9:16, and 4:5 social presets with zero quality loss.

Image ToolsLaunch →

Rotate Image

Batch rotate images 90°, 180°, or 270° and mirror flip horizontally or vertically.

Image ToolsLaunch →

Watermark Image

Batch stamp copyright text or branding across photos with 9-point grid and diagonal repeat.

Image ToolsLaunch →

Blur & Censor Image

Blur faces, pixelate sensitive personal info, or blackout credit card numbers 100% in-browser.

Image ToolsLaunch →

Meme Generator

Create viral memes with classic Impact captions, custom image upload, and zero watermarks.

Image ToolsLaunch →

Crate Drop

Stream gigabyte files directly between two devices over encrypted peer-to-peer Wi-Fi channels.

File TransferLaunch →
Popular

Font Style Changer

Transform text into 50+ aesthetic Unicode fonts for Instagram bios, TikTok captions, & Discord.

Text & TypographyLaunch →