FFmpeg Cookbook
FFmpeg: Convert Variable Frame Rate (VFR) to Constant (CFR)
Convert a variable frame rate (VFR) video to constant frame rate (CFR) with FFmpeg. Use ffprobe to suspect VFR by comparing r_frame_rate and avg_frame_rate, then force CFR with -fps_mode cfr — the FFmpeg 8.x replacement for the deprecated -vsync cfr. Fixes the root cause of many sync issues.
FFmpeg: Could not find codec parameters — Causes and Fixes
Fix the FFmpeg error "Could not find codec parameters". Learn the three common causes — a truncated or corrupt stream, too little data probed, and an exotic codec — and apply runnable fixes: raise analyzeduration/probesize, inspect with ffprobe, or re-encode.
FFmpeg: Fix "Invalid data found when processing input"
Diagnose and fix the FFmpeg "Invalid data found when processing input" error. Common causes — truncated downloads, non-media data saved with a media extension, partial files — plus ffprobe checks, re-muxing with error tolerance, genpts repair, and re-encoding as a last resort.
FFmpeg: Missing Audio Track / No Audio Output — Causes and Fixes
Diagnose and fix a missing audio track or no audio output after FFmpeg conversion: check with ffprobe, forgotten -map entries, a stray -an, container-incompatible codecs (MP4 + Opus), and only the first of several audio tracks surviving — with a fix command per cause.
How to Check and Remove GPS Location from a Video — Complete Privacy Guide
iPhone and Android cameras embed GPS coordinates in every video. This guide shows you how to inspect what's actually in your file (exiftool, ffprobe, browser tools) and how to strip the location, timestamp, and camera info before posting to social — losslessly.
The Difference and Role of ffmpeg / ffprobe / ffplay
Understand the three FFmpeg CLI tools: ffprobe for media inspection, ffmpeg for conversion and encoding, ffplay for playback and testing. When to use each.
Inspecting Metadata and Stream Information with ffprobe
Inspect video/audio metadata with ffprobe: codecs, resolution, frame rate, bitrate, and stream info. Covers JSON output and combining with jq for scripting.