Beyond the basics
You met scale in Track 2. The full filter has more knobs:
- scale=W:H — basic.
- scale=W:H:flags=lanczos — pick algorithm:
fast_bilinear(fast, blocky),bicubic(default),lanczos(sharp),spline(slowest, highest quality). - scale=W:H:force_original_aspect_ratio=decrease,pad=W:H:(ow-iw)/2:(oh-ih)/2 — fit-with-letterbox.
- scale='min(1920,iw)':-2 — only downscale, never upscale (caps at 1920).
Why care about flags
Bicubic is the default. It's fine. Lanczos is sharper, better for text-heavy content (slides, screen recordings). Spline is the slowest, highest quality option. fast_bilinear is for live preview only.