Tool

Which Codec and Preset for the Same Encoding Time?

A tool for starting from a time limit, such as “it has to run overnight and be done by tomorrow morning,” and then choosing the settings. Enter the video length, your time budget and the target quality (VMAF), and it lines up x264, x265, SVT-AV1 and VP9 presets from fastest to slowest and marks the one with the smallest estimated size among those that finish in time. Everything is processed inside this browser.

1. Video and time budget

All measurements are on 1080p25 clips. Other resolutions are converted by assuming time and size scale with the pixel count, and the frame rate is converted through the total frame count.

Loading…

Where do the values come from?

The tool reads four published measurement result files as they are: the x264 preset speed measurement, the x265 preset speed measurement, the SVT-AV1 preset efficiency measurement and the VP9 cpu-used efficiency measurement. All of them are records of encoding four 10-second 1080p25 clips at four CRF levels with FFmpeg 9.0.2 on the same PC (Ryzen 5 PRO 4650G, 6 cores, 12 threads) and measuring VMAF. If you would rather read the same-time codec comparison as an article, see the same-speed codec showdown.

  • Estimated time: the total number of frames divided by the fps, where fps is the sum of frames over all measured CRFs ÷ the sum of elapsed time. The “demanding” line is calculated with the fps of the slowest of the four clips.
  • Estimated size: for each clip, the bytes per frame at the target VMAF are found by straight-line interpolation between the four CRF points (VMAF, size) on the logarithm of size, and the four clips are averaged. If the target VMAF is outside the measured range of any clip, that setting is not calculated and is listed as a left-out setting.
  • Ladder: settings are lined up from fastest to slowest, and only a setting whose size is smaller than that of every earlier setting counts as a step. If a setting is slower but not smaller, it gives no gain in this data.

How to use it

First you need to know the video length, resolution and frame rate. If you do not know them, check with the Video File Info Viewer. Then enter the time you can spend and pick a target VMAF; the ✅ Recommended row in the table is the smallest setting within that time. Changing the budget a little at a time shows right in the ladder how much the size drops when you double the time, and from where a slower setting gives almost no gain. Once you have picked a setting, choose the CRF with the CRF Recommender and finish the command with the FFmpeg Command Builder. If you only want to calculate the time, the Encoding Time Estimator has a calibration feature for your own PC’s speed.

Limitations worth knowing

  • The results come from four 10-second clips, 1080p25 8-bit, on a single PC. Four clips do not represent every video, and both time and size vary with the content.
  • Speed is a reference value measured with 4 threads per job at IDLE priority. If your PC has a different CPU or core count, even the relative speeds between codecs can change, so the recommendation can flip. Test the settings near your budget yourself on a short segment.
  • 720p, 1440p and 4K, and 24, 30, 50 and 60 fps, were not measured. They are converted on the assumption that time and size scale with pixel count and frame count.
  • For VP9 only cpu-used 2 to 5 are included (6 and 8 are omitted). Hardware encoders, VVC, libaom and other options of x264 and x265 are not in this tool.
  • Size is a value interpolated between four CRF points, and the size of audio, subtitles and the container is not included. The target VMAF is only a VMAF score and does not mean the same quality to every viewer.
  • The elapsed time includes encoder startup time, so on a 10-second clip it can come out slower than on a long video. Filters and disk speed are not included.