What’s the difference between VFR and CFR?
CFR (constant frame rate) video has its frames spaced at the same interval throughout. At 30 fps, that is about 33.3 ms between frames. In VFR (variable frame rate) video the interval differs from frame to frame. It is known to show up in screen recordings that skip frames when nothing on screen changes, and in some phone footage where the frame rate is adjusted depending on brightness and other conditions.
VFR isn’t wrong in itself. But if an editor or converter assumes an ‘even interval’, audio and picture can drift out of sync, or the frame count can come out different from what you expected. Mismatched frame counts are also covered as a common cause in the measurement pitfalls lesson. To see how frame times are written inside a file, read the timestamps lesson.
How does this tool decide?
- What it reads: the frame timing table (stts) and the B-frame offset table (ctts) in the MP4 or MOV header. It doesn’t decode the video, so even large files are read quickly.
- Reference interval: the median of the intervals between frames, that is, the most common interval.
- What counts as off: an interval is counted as ‘off the reference’ when it differs from the reference by more than the larger of 1.5 timescale ticks or 5% of the reference. This keeps a CFR file whose times are rounded to milliseconds and wobble like 33, 34, 33 ms from being misjudged as VFR.
- Verdict: CFR if no interval is off, ‘nearly constant’ if fewer than 0.5% of them are, and VFR if more. The 0.5% and 5% are heuristics chosen by this site, not a standard. Read the distribution table and the list of the most deviating intervals together before you decide.
- Frames per second: the video is split into 1-second windows and the frames in each window are counted; this is the minimum and maximum of those counts. For CFR the two values are nearly the same.
How can you use the result?
- Narrow down sync and duration problems: if audio slowly drifts in your editor or the frame count isn’t what you expected, check with this tool first whether the file is VFR. If it comes out constant (CFR), suspect another cause such as an audio delay.
- Choose a target fps before converting: the average frame rate and the most common interval are shown together, which gives you a basis for picking the intended frame rate (for example 30 or 29.97). The tool fills in the nearest common value by default.
- Find where it stutters: you can check whether the times in the ‘intervals furthest from the reference’ list match the points where a screen recording froze or where an edit was joined.
- View it alongside the other file info: codec, resolution and average fps are available in the Video File Info Viewer. Its fps is the frame count divided by the duration, an average, so it doesn’t tell you whether the file is VFR.
How do you read the CFR conversion commands?
- Method 1, the fps filter (
-vf fps=30): the filter duplicates or drops frames to match the target frame rate. It is written the same way in any version. - Method 2,
-fps_mode cfr -r 30: an option that makes the output a constant frame rate. This is the name used from FFmpeg 5.1 on; older versions write it as -vsync cfr. - Re-encoding is required: frames have to be duplicated or dropped, so
-c copy can’t produce CFR. The video is compressed once more and the quality can change slightly, so keep the original. Choose the CRF value for your quality target; the 18 in the tool is just an example. - 29.97, 23.976, 59.94: these are exact only when given as fractions (30000/1001 and so on). The tool converts these three values to fractions for you.
- Check again after converting: run the converted file through this detector again and see whether it comes out as ‘constant (CFR)’.
If you also want to check with ffprobe
A common method is to print the average frame rate and the ‘base’ frame rate together and compare them. If the two differ a lot, you can suspect VFR, but being equal doesn’t guarantee CFR. To be sure, look at the packet times directly.
ffprobe -v error -select_streams v:0 -show_entries stream=r_frame_rate,avg_frame_rate -of default=nw=1 input.mp4
ffprobe -v error -select_streams v:0 -show_entries packet=pts_time -of csv=p=0 input.mp4
Limitations worth knowing
- It reads only MP4 and MOV (M4V). It can’t read MKV, WebM or fragmented MP4, so use ffprobe for those.
- It only looks at the times written in the container. If the times are written evenly but the content repeats identical frames, a ‘fake CFR’, it can’t tell. Some screen recorders are known to save files this way.
- The verdict thresholds (0.5% and 5%) are heuristics. Other tools (MediaInfo, FFmpeg’s
vfrdet filter and so on) may judge the same file differently. - This page doesn’t publish measured results of conversion (change in duration, number of duplicated frames, change in quality). Results after conversion differ from file to file, so check them yourself.
- It won’t read very large files (more than 3 million frames) or files whose header is over 400 MB.
- The file is never sent to a server, and this tool doesn’t modify or save your file.