FFmpeg Audio/Video Drift on Screen Recordings (Variable Frame Rate VFR)
Phone or OBS VFR capture drifted when transcoded without CFR normalization.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: FFmpeg Audio/Video Drift on Screen Recordings (Variable Frame Rate VFR)
Platform: Media
Common Root Causes:
- Phone or OBS VFR capture drifted when transcoded without CFR normalization.
Interactive Diagnostic Checklist
Verified Solutions:
- Normalize to constant frame rate with `-fps_mode cfr -r 30` (or `-vsync cfr`).
Safe Diagnostic Command:
ffprobe -v error -select_streams v:0 -show_entries stream=r_frame_rate,avg_frame_rate <in>
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Phone or OBS VFR capture drifted when transcoded without CFR normalization. Recommended diagnostic: `ffprobe -v error -select_streams v:0 -show_entries stream=r_frame_rate,avg_frame_rate <in>`. Remediation: Normalize to constant frame rate with `-fps_mode cfr -r 30` (or `-vsync cfr`).
Worked Examples
- Run `ffprobe -v error -select_streams v:0 -show_entries stream=r_frame_rate,avg_frame_rate <in>` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-ffmpeg-audio-video-desync-vfr · Independently verified: 2026-11-25