Tag: #scale
3 articles
FFmpeg: Fix "height not divisible by 2" / "width not divisible by 2"
Fix the libx264 error "height not divisible by 2" (and the width version) caused by odd dimensions after scaling or cropping. Learn why yuv420p needs even width and height, and three runnable fixes: scale with trunc, scale=-2 to keep aspect ratio, and pad to the next even size.
Vertical Video (9:16) for Instagram & TikTok: Crop and Pad
Convert horizontal video to vertical 9:16 with FFmpeg for Shorts, Reels, and TikTok. Learn center crop, blurred-background padding, position-specific crop, and aspect-ratio conversion with the scale filter, with primary sources.
FFmpeg Scale Filter - Resize Without Distortion
Resize video with FFmpeg scale filter: aspect ratio auto-preservation (-1/-2), relative scaling, max resolution capping, and letterboxing with the pad filter.