FFmpeg Cookbook
FFmpeg Change Frame Rate — -r vs fps Filter: Which to Use and When
Change video frame rates with FFmpeg: fps filter vs -r option comparison and when each is correct, checking fps with ffprobe, 60→30→24fps conversion examples, timelapse creation, VFR handling, five error fixes, and five FAQ answers.
FFmpeg Convert Video to GIF — High-Quality, Small File Size with palettegen + paletteuse
Convert video to high-quality GIF with FFmpeg's two-pass palettegen + paletteuse pipeline. Covers fps/resolution/dithering comparison tables, file size optimization, trimming a clip before GIF conversion, batch processing, and five common error fixes.
FFmpeg Rotate Video — Fix iPhone Portrait Mode and 90° / 180° Rotation
Rotate and flip video with FFmpeg: transpose filter values (0–3), hflip/vflip for mirror effects, fixing iPhone and Android portrait-mode videos that appear sideways, metadata-only rotation vs re-encoding comparison, five error fixes, and five FAQ answers.
Changing Resolution and Preserving Aspect Ratio — Complete Guide to the scale Filter
Resize video with FFmpeg scale filter: aspect ratio auto-preservation (-1/-2), relative scaling, max resolution capping, and letterboxing with the pad filter.
FFmpeg Burn Subtitles Into Video — SRT / ASS Hard Sub Complete Guide
Burn subtitles permanently into video with FFmpeg: subtitles filter for SRT/VTT, ass filter for styled ASS/SSA, font and position customization, hard sub vs soft sub comparison, libass installation, and five common error fixes.
Creating Video from Sequential Images — How to Make Slideshows and Timelapses
Create video slideshows and timelapses with FFmpeg: sequential PNG/JPG to video, single image looping, frame-drop timelapse, and pix_fmt yuv420p compatibility.
Video Stabilization — vidstabdetect and vidstabtransform
Stabilize shaky video with FFmpeg vidstab filters: vidstabdetect + vidstabtransform two-pass pipeline, smoothing strength, crop modes, and libvidstab setup.
Add Watermark and Logo Overlay to Video — FFmpeg overlay Filter Complete Guide
Add watermarks and logos to video with FFmpeg's overlay filter. Covers position variables, transparent PNG alpha support, opacity control, time-limited display, scrolling animation, multiple logos, and five common error fixes.