FFmpeg Cookbook
JA
FFmpeg: Audio Out of Sync After Converting — Causes and Fixes
Diagnose audio sync after FFmpeg conversion. Compare fixed offsets, drift and playback differences, with the limits of re-encoding, aresample, genpts and CFR conversion.
FFmpeg: Fix Audio Drift That Gets Worse Over Time
Audio fine at the start but progressively out of sync by the end? That is drift, not a constant offset. Learn why a clock mismatch causes it, why -itsoffset can't fix drift, how to correct the audio speed by a measured ratio, and when aresample async or CFR helps.
FFmpeg: Convert Variable Frame Rate (VFR) to Constant (CFR)
Convert VFR video to CFR with FFmpeg at 30, 60 or fractional frame rates. Check timestamps, preserve audio where possible, and verify whether conversion fixes your editing problem.
FFmpeg invalid PTS/DTS & non monotonically increasing dts — Causes and Fixes
Fix the FFmpeg 'non monotonically increasing dts to muxer' error and invalid PTS/DTS problems: filling in missing PTS with genpts, negative-TS correction, VFR to CFR conversion, and setpts/asetpts resets — plus when re-encoding is required.
FFmpeg Frame Rate — -r vs fps Filter Guide
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.