Tag: #cfr
2 articles
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 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: timestamp regeneration with genpts, negative-TS correction, VFR to CFR conversion, and setpts/asetpts resets — plus when re-encoding is required.