Lab · 2026-11-09한국어日本語

x265 Preset Comparison: ultrafast to slow, File Size vs. Encoding Time (Measured)

An x265 preset comparison, measured: five presets (ultrafast, veryfast, fast, medium, slow) on four 10-second 1080p25 clips. At the same VMAF of 90, slow produced files 73–87% the size of medium and used 2.2–2.6x the CPU time.

The test PC, FFmpeg and VMAF settings shared by every lab article are collected on the methodology page. Methodology (common to all tests)

The short answer

In this test, the file size needed to reach VMAF 90 with slow was 73–87% of medium, and the price was 2.2–2.6x the CPU time. Going the other way, from medium down to ultrafast cut the time to 0.21–0.42x, but the file size ranged from 97% to 129% depending on the clip. fast and veryfast did not get smaller than medium (except fast on blue_sky); they only saved time.

Why we ran this

If you encode HEVC with x265, the first option you meet is -preset. The default is medium, and slower presets are commonly said to give smaller files. But how much smaller is slow, and how much longer does it take? That varies from video to video and is hard to pin down as a number. Our earlier CRF sweep and VP9 vs. AV1 test compared encoders with each other or swept CRF. This x265 preset comparison looks at speed and efficiency when only the preset changes within a single encoder.

Changing the preset changes quality even at the same CRF. On riverbed, for example, CRF 28 gave 11,919,505 B (VMAF 86.40) with medium and 12,704,159 B (VMAF 95.58) with slow. The slow file is larger, but its quality is much higher. So instead of comparing at the same CRF, we compare file sizes at the same VMAF.

This is not a hardware encoder result

We measured software x265 (libx265) running on the CPU. Presets on hardware encoders such as NVENC, QuickSync or AMF are a different matter, and you cannot infer their results from this article.

Test setup

ItemDetails
FFmpeg9.0.2 (gyan.dev full_build). The x265 version itself was not recorded separately
PCOne machine: AMD Ryzen 5 PRO 4650G (6 cores, 12 threads), 16 GB RAM
Threads per job4 (pools=4). Process priority set to IDLE
Input formatyuv420p 8-bit, 1920x1080, 25 fps, original y4m
LengthOnly the first 250 frames (10 seconds) of each clip. Output is mkv, no audio
Quality metriclibvmaf default model (vmaf_v0.6.1), measured per frame against the original → mean (vmaf_mean), 5th percentile (vmaf_p5), minimum (vmaf_min)
Time metricWall-clock time (rtime) fluctuates because of the IDLE priority, so comparisons use CPU time (utime)
Number of jobs4 clips × 5 presets × 4 CRF values (22, 28, 34, 40) = 80
Measured on2026-11-08

VMAF is a video quality metric developed by Netflix. It compares the encoded video with the original frame by frame and scores each frame from 0 to 100. The closer to 100, the harder it is to tell the encode from the original, though the score does not replace human judgment. Here, "mean" is the average of the 250 per-frame scores, and "5th percentile" is the cutoff for the worst 5% of frames.

Encoder settings

Changing only the preset, encoding at CRF 22, 28, 34 and 40 (input and output paths omitted)
ffmpeg -i clip.y4m -c:v libx265 -preset ultrafast -crf Q -x265-params pools=4:log-level=error -an out.mkv
ffmpeg -i clip.y4m -c:v libx265 -preset veryfast  -crf Q -x265-params pools=4:log-level=error -an out.mkv
ffmpeg -i clip.y4m -c:v libx265 -preset fast      -crf Q -x265-params pools=4:log-level=error -an out.mkv
ffmpeg -i clip.y4m -c:v libx265 -preset medium    -crf Q -x265-params pools=4:log-level=error -an out.mkv
ffmpeg -i clip.y4m -c:v libx265 -preset slow      -crf Q -x265-params pools=4:log-level=error -an out.mkv

Test clips: source and license

All four clips are 1080p25 videos made by TUM / Taurus Media Technik (2001), downloaded from the Xiph.org derf collection (media.xiph.org/video/derf/y4m/). The accompanying ReadMe_1080p.txt states "Restrictions of use: No restrictions" and "Copyright: No Copyright" (checked on 2026-11-08).

Easy clips such as blue_sky saturate at low CRF: VMAF climbs to 99.9 (at CRF 22 all five presets score around 99.97). Saturated points hide the differences between presets, so the comparisons below use only the two measurement points that bracket VMAF 90.

Results by clip

In each chart the horizontal axis is file size (bitrate, log scale) and the vertical axis is VMAF. Each preset has its own color and line style, and the legend names them. At the same height, the curve further to the left reached the same quality with a smaller file. The tables list file size, VMAF, fps and CPU time for every preset and CRF.

blue_sky — blue sky and tree branches

5060708090100500k1M2M5MBitrate (bps, log scale)VMAFx265 (HEVC) · preset ultrafast q=40: 324 kbps, VMAF 57.486x265 (HEVC) · preset ultrafast q=34: 742.3 kbps, VMAF 81.314x265 (HEVC) · preset ultrafast q=28: 1,771.7 kbps, VMAF 97.014x265 (HEVC) · preset ultrafast q=22: 4,557.4 kbps, VMAF 99.971x265 (HEVC) · preset veryfast q=40: 426.4 kbps, VMAF 65.309x265 (HEVC) · preset veryfast q=34: 938.6 kbps, VMAF 86.585x265 (HEVC) · preset veryfast q=28: 2,135.6 kbps, VMAF 98.636x265 (HEVC) · preset veryfast q=22: 5,347.6 kbps, VMAF 99.975x265 (HEVC) · preset fast q=40: 496.6 kbps, VMAF 75.15x265 (HEVC) · preset fast q=34: 1,032.2 kbps, VMAF 92.152x265 (HEVC) · preset fast q=28: 2,231 kbps, VMAF 99.556x265 (HEVC) · preset fast q=22: 5,418.8 kbps, VMAF 99.975x265 (HEVC) · preset medium q=40: 489.1 kbps, VMAF 75.054x265 (HEVC) · preset medium q=34: 1,077.3 kbps, VMAF 92.235x265 (HEVC) · preset medium q=28: 2,481.5 kbps, VMAF 99.428x265 (HEVC) · preset medium q=22: 6,348.2 kbps, VMAF 99.977x265 (HEVC) · preset slow q=40: 554.8 kbps, VMAF 83.677x265 (HEVC) · preset slow q=34: 1,258.1 kbps, VMAF 98.224x265 (HEVC) · preset slow q=28: 2,889.7 kbps, VMAF 99.968x265 (HEVC) · preset slow q=22: 7,641.8 kbps, VMAF 99.98
x265 (HEVC) · preset ultrafastx265 (HEVC) · preset veryfastx265 (HEVC) · preset fastx265 (HEVC) · preset mediumx265 (HEVC) · preset slow
blue_sky — blue sky and tree branches — file size vs. VMAF (5 presets)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x265 (HEVC) · preset ultrafast224,557.4 kbps99.97100.0039.1652.5518.6
x265 (HEVC) · preset ultrafast281,771.7 kbps97.0193.1635.9572.9113.2
x265 (HEVC) · preset ultrafast34742.3 kbps81.3177.6032.4587.8111.1
x265 (HEVC) · preset ultrafast40324 kbps57.4953.2128.78101.589.5
x265 (HEVC) · preset veryfast225,347.6 kbps99.97100.0040.5228.5535.5
x265 (HEVC) · preset veryfast282,135.6 kbps98.6494.8637.5942.0924.0
x265 (HEVC) · preset veryfast34938.6 kbps86.5880.4234.1053.5818.5
x265 (HEVC) · preset veryfast40426.4 kbps65.3156.9030.3662.9615.7
x265 (HEVC) · preset fast225,418.8 kbps99.97100.0040.6721.5946.6
x265 (HEVC) · preset fast282,231 kbps99.5697.2938.1129.0134.1
x265 (HEVC) · preset fast341,032.2 kbps92.1587.3935.1034.3728.3
x265 (HEVC) · preset fast40496.6 kbps75.1569.9531.6837.4626.1
x265 (HEVC) · preset medium226,348.2 kbps99.98100.0041.1417.9555.8
x265 (HEVC) · preset medium282,481.5 kbps99.4396.3238.4526.2437.8
x265 (HEVC) · preset medium341,077.3 kbps92.2383.5135.2532.1929.6
x265 (HEVC) · preset medium40489.1 kbps75.0566.2131.7438.1924.7
x265 (HEVC) · preset slow227,641.8 kbps99.98100.0041.897.15138.7
x265 (HEVC) · preset slow282,889.7 kbps99.97100.0039.529.86100.0
x265 (HEVC) · preset slow341,258.1 kbps98.2292.9136.5212.1481.0
x265 (HEVC) · preset slow40554.8 kbps83.6876.2332.8713.9570.1
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

30405060708090100500k1M2M5MBitrate (bps, log scale)VMAFx265 (HEVC) · preset ultrafast q=40: 353 kbps, VMAF 37.572x265 (HEVC) · preset ultrafast q=34: 709.6 kbps, VMAF 63.007x265 (HEVC) · preset ultrafast q=28: 1,402.7 kbps, VMAF 82.409x265 (HEVC) · preset ultrafast q=22: 3,017 kbps, VMAF 94.036x265 (HEVC) · preset veryfast q=40: 445.2 kbps, VMAF 52.227x265 (HEVC) · preset veryfast q=34: 917.7 kbps, VMAF 74.268x265 (HEVC) · preset veryfast q=28: 1,863.3 kbps, VMAF 89.172x265 (HEVC) · preset veryfast q=22: 4,253.9 kbps, VMAF 97.069x265 (HEVC) · preset fast q=40: 462.8 kbps, VMAF 54.709x265 (HEVC) · preset fast q=34: 929 kbps, VMAF 75.621x265 (HEVC) · preset fast q=28: 1,856.1 kbps, VMAF 89.84x265 (HEVC) · preset fast q=22: 4,201.1 kbps, VMAF 97.329x265 (HEVC) · preset medium q=40: 443.3 kbps, VMAF 53.875x265 (HEVC) · preset medium q=34: 924.9 kbps, VMAF 76.503x265 (HEVC) · preset medium q=28: 1,873.7 kbps, VMAF 90.834x265 (HEVC) · preset medium q=22: 4,357.1 kbps, VMAF 97.842x265 (HEVC) · preset slow q=40: 469.6 kbps, VMAF 59.957x265 (HEVC) · preset slow q=34: 972 kbps, VMAF 81.406x265 (HEVC) · preset slow q=28: 1,965.1 kbps, VMAF 94.007x265 (HEVC) · preset slow q=22: 4,608.4 kbps, VMAF 98.98
x265 (HEVC) · preset ultrafastx265 (HEVC) · preset veryfastx265 (HEVC) · preset fastx265 (HEVC) · preset mediumx265 (HEVC) · preset slow
pedestrian_area — pedestrian street — file size vs. VMAF (5 presets)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x265 (HEVC) · preset ultrafast223,017 kbps94.0491.1439.8951.5319.1
x265 (HEVC) · preset ultrafast281,402.7 kbps82.4179.4637.5561.716.1
x265 (HEVC) · preset ultrafast34709.6 kbps63.0159.6034.8570.7213.9
x265 (HEVC) · preset ultrafast40353 kbps37.5733.5331.8279.3112.6
x265 (HEVC) · preset veryfast224,253.9 kbps97.0794.4041.2723.7941.4
x265 (HEVC) · preset veryfast281,863.3 kbps89.1786.8139.1129.433.5
x265 (HEVC) · preset veryfast34917.7 kbps74.2771.7236.4635.1928.3
x265 (HEVC) · preset veryfast40445.2 kbps52.2349.0233.4743.0423.0
x265 (HEVC) · preset fast224,201.1 kbps97.3394.6641.3519.4550.7
x265 (HEVC) · preset fast281,856.1 kbps89.8487.5939.2323.0842.5
x265 (HEVC) · preset fast34929 kbps75.6273.2836.6626.137.1
x265 (HEVC) · preset fast40462.8 kbps54.7151.9133.8130.0432.6
x265 (HEVC) · preset medium224,357.1 kbps97.8495.0641.4812.9576.2
x265 (HEVC) · preset medium281,873.7 kbps90.8388.0939.3716.8958.5
x265 (HEVC) · preset medium34924.9 kbps76.5073.5136.6921.3646.0
x265 (HEVC) · preset medium40443.3 kbps53.8849.9933.6025.937.4
x265 (HEVC) · preset slow224,608.4 kbps98.9896.4941.795.03194.7
x265 (HEVC) · preset slow281,965.1 kbps94.0191.2939.736.47151.4
x265 (HEVC) · preset slow34972 kbps81.4178.7737.147.78126.3
x265 (HEVC) · preset slow40469.6 kbps59.9656.3734.139.24106.3
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (fine ripples)

304050607080901002M5M10M20MBitrate (bps, log scale)VMAFx265 (HEVC) · preset ultrafast q=40: 1,425.2 kbps, VMAF 32.32x265 (HEVC) · preset ultrafast q=34: 3,561.7 kbps, VMAF 53.64x265 (HEVC) · preset ultrafast q=28: 7,625.5 kbps, VMAF 77.707x265 (HEVC) · preset ultrafast q=22: 15,401 kbps, VMAF 95.777x265 (HEVC) · preset veryfast q=40: 1,753.8 kbps, VMAF 35.876x265 (HEVC) · preset veryfast q=34: 4,281.6 kbps, VMAF 59.738x265 (HEVC) · preset veryfast q=28: 9,051.3 kbps, VMAF 83.434x265 (HEVC) · preset veryfast q=22: 18,268.3 kbps, VMAF 98.612x265 (HEVC) · preset fast q=40: 1,749.2 kbps, VMAF 35.996x265 (HEVC) · preset fast q=34: 4,257.4 kbps, VMAF 59.808x265 (HEVC) · preset fast q=28: 9,005 kbps, VMAF 83.506x265 (HEVC) · preset fast q=22: 18,199.4 kbps, VMAF 98.633x265 (HEVC) · preset medium q=40: 1,799.1 kbps, VMAF 38.373x265 (HEVC) · preset medium q=34: 4,533.4 kbps, VMAF 63.208x265 (HEVC) · preset medium q=28: 9,535.6 kbps, VMAF 86.4x265 (HEVC) · preset medium q=22: 19,060.6 kbps, VMAF 99.592x265 (HEVC) · preset slow q=40: 1,993.6 kbps, VMAF 46.572x265 (HEVC) · preset slow q=34: 4,831.3 kbps, VMAF 73.914x265 (HEVC) · preset slow q=28: 10,163.3 kbps, VMAF 95.575x265 (HEVC) · preset slow q=22: 20,114.5 kbps, VMAF 99.962
x265 (HEVC) · preset ultrafastx265 (HEVC) · preset veryfastx265 (HEVC) · preset fastx265 (HEVC) · preset mediumx265 (HEVC) · preset slow
riverbed — riverbed (fine ripples) — file size vs. VMAF (5 presets)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x265 (HEVC) · preset ultrafast2215,401 kbps95.7892.2837.5522.1644.5
x265 (HEVC) · preset ultrafast287,625.5 kbps77.7172.5634.4826.9336.5
x265 (HEVC) · preset ultrafast343,561.7 kbps53.6448.3131.4031.5931.3
x265 (HEVC) · preset ultrafast401,425.2 kbps32.3228.0928.4540.5824.3
x265 (HEVC) · preset veryfast2218,268.3 kbps98.6196.4838.438.99109.9
x265 (HEVC) · preset veryfast289,051.3 kbps83.4379.1235.3210.9690.4
x265 (HEVC) · preset veryfast344,281.6 kbps59.7454.8232.1113.4173.7
x265 (HEVC) · preset veryfast401,753.8 kbps35.8831.6029.0117.7255.4
x265 (HEVC) · preset fast2218,199.4 kbps98.6396.4038.438.54116.0
x265 (HEVC) · preset fast289,005 kbps83.5179.3335.3310.2296.5
x265 (HEVC) · preset fast344,257.4 kbps59.8154.7732.1311.9782.7
x265 (HEVC) · preset fast401,749.2 kbps36.0031.5829.0514.5467.8
x265 (HEVC) · preset medium2219,060.6 kbps99.5998.1138.694.08240.1
x265 (HEVC) · preset medium289,535.6 kbps86.4081.9435.595.31183.8
x265 (HEVC) · preset medium344,533.4 kbps63.2157.7932.367.17137.0
x265 (HEVC) · preset medium401,799.1 kbps38.3733.2829.1610.3894.5
x265 (HEVC) · preset slow2220,114.5 kbps99.96100.0039.561.7574.9
x265 (HEVC) · preset slow2810,163.3 kbps95.5891.7436.492.09467.8
x265 (HEVC) · preset slow344,831.3 kbps73.9167.9033.142.69363.8
x265 (HEVC) · preset slow401,993.6 kbps46.5740.3629.763.79259.2
riverbed — riverbed (fine ripples) — all measurements

rush_hour — evening rush-hour traffic

405060708090100200k500k1M2MBitrate (bps, log scale)VMAFx265 (HEVC) · preset ultrafast q=40: 224.1 kbps, VMAF 42.367x265 (HEVC) · preset ultrafast q=34: 516.7 kbps, VMAF 63.911x265 (HEVC) · preset ultrafast q=28: 1,187.3 kbps, VMAF 80.563x265 (HEVC) · preset ultrafast q=22: 2,742.3 kbps, VMAF 90.888x265 (HEVC) · preset veryfast q=40: 275.3 kbps, VMAF 50.556x265 (HEVC) · preset veryfast q=34: 681.2 kbps, VMAF 70.806x265 (HEVC) · preset veryfast q=28: 1,609.7 kbps, VMAF 84.932x265 (HEVC) · preset veryfast q=22: 3,877.8 kbps, VMAF 93.043x265 (HEVC) · preset fast q=40: 314.7 kbps, VMAF 54.404x265 (HEVC) · preset fast q=34: 723.1 kbps, VMAF 72.227x265 (HEVC) · preset fast q=28: 1,641.7 kbps, VMAF 85.36x265 (HEVC) · preset fast q=22: 3,890.8 kbps, VMAF 93.137x265 (HEVC) · preset medium q=40: 270.9 kbps, VMAF 51.041x265 (HEVC) · preset medium q=34: 684.4 kbps, VMAF 71.433x265 (HEVC) · preset medium q=28: 1,644.7 kbps, VMAF 85.76x265 (HEVC) · preset medium q=22: 4,009.4 kbps, VMAF 93.759x265 (HEVC) · preset slow q=40: 310.4 kbps, VMAF 56.813x265 (HEVC) · preset slow q=34: 772.3 kbps, VMAF 75.697x265 (HEVC) · preset slow q=28: 1,827 kbps, VMAF 88.668x265 (HEVC) · preset slow q=22: 4,312.3 kbps, VMAF 95.648
x265 (HEVC) · preset ultrafastx265 (HEVC) · preset veryfastx265 (HEVC) · preset fastx265 (HEVC) · preset mediumx265 (HEVC) · preset slow
rush_hour — evening rush-hour traffic — file size vs. VMAF (5 presets)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x265 (HEVC) · preset ultrafast222,742.3 kbps90.8989.1540.8646.6221.3
x265 (HEVC) · preset ultrafast281,187.3 kbps80.5677.9039.0458.3616.8
x265 (HEVC) · preset ultrafast34516.7 kbps63.9160.2536.4868.0614.0
x265 (HEVC) · preset ultrafast40224.1 kbps42.3738.4533.2683.3911.1
x265 (HEVC) · preset veryfast223,877.8 kbps93.0491.3941.7417.752.0
x265 (HEVC) · preset veryfast281,609.7 kbps84.9382.5740.0426.437.5
x265 (HEVC) · preset veryfast34681.2 kbps70.8167.5537.6936.4726.8
x265 (HEVC) · preset veryfast40275.3 kbps50.5646.4334.6651.1719.2
x265 (HEVC) · preset fast223,890.8 kbps93.1491.5041.761757.9
x265 (HEVC) · preset fast281,641.7 kbps85.3683.1540.1220.6747.3
x265 (HEVC) · preset fast34723.1 kbps72.2369.3437.9225.1838.7
x265 (HEVC) · preset fast40314.7 kbps54.4051.4135.1832.1430.0
x265 (HEVC) · preset medium224,009.4 kbps93.7692.0641.7711.7983.6
x265 (HEVC) · preset medium281,644.7 kbps85.7683.2840.0816.8458.7
x265 (HEVC) · preset medium34684.4 kbps71.4367.9137.6824.140.1
x265 (HEVC) · preset medium40270.9 kbps51.0446.8834.6029.9829.9
x265 (HEVC) · preset slow224,312.3 kbps95.6594.1142.074.64211.9
x265 (HEVC) · preset slow281,827 kbps88.6786.2140.476.2157.5
x265 (HEVC) · preset slow34772.3 kbps75.7072.6138.248.55114.2
x265 (HEVC) · preset slow40310.4 kbps56.8153.4335.3511.9181.6
rush_hour — evening rush-hour traffic — all measurements

How to read it, and what we see

The values below are calculated from the numbers in the tables. Since no measurement lands exactly on VMAF 90, we estimated the bitrate and CPU time at VMAF 90 by connecting the two points on either side of it. File size and time roughly halve for every 6 CRF steps, so we joined the points with a straight line on a log scale rather than a linear one (linear interpolation of the log of bitrate and of CPU time against VMAF). The measurement points are far apart and the real curve may deviate from this line, so treat the figures as approximate.

Clipultrafastveryfastfastmediumslow
blue_sky1,201 kbps1,185 kbps941 kbps972 kbps792 kbps
pedestrian_area2,313 kbps2,032 kbps1,889 kbps1,798 kbps1,571 kbps
riverbed12,301 kbps12,265 kbps12,180 kbps11,520 kbps8,392 kbps
rush_hour2,552 kbps2,788 kbps2,747 kbps2,638 kbps2,152 kbps

Estimated bitrate at VMAF 90. Depending on how easy or hard the clip is, the bitrate needed for the same quality differs by more than 10x (blue_sky about 1 Mbps vs. riverbed about 12 Mbps).

Clipultrafastveryfastfastmediumslow
blue_sky124%122%97%100%81%
pedestrian_area129%113%105%100%87%
riverbed107%106%106%100%73%
rush_hour97%106%104%100%82%

Relative file size at VMAF 90, with medium as 100% (the kbps in the table above divided by the medium value). The lower the number below 100%, the smaller the file.

Clipultrafastveryfastfastmediumslow
blue_sky12.2 s (0.42x)19.9 s (0.69x)28.0 s (0.97x)28.9 s (1x)74.7 s (2.58x)
pedestrian_area18.0 s (0.31x)34.2 s (0.59x)42.7 s (0.74x)57.7 s (1x)143.0 s (2.48x)
riverbed41.8 s (0.21x)98.4 s (0.50x)104.4 s (0.53x)197.7 s (1x)438.5 s (2.22x)
rush_hour20.9 s (0.29x)46.0 s (0.65x)53.4 s (0.75x)70.8 s (1x)166.7 s (2.36x)

Estimated CPU time at VMAF 90 (utime, the CPU time summed over the 4 threads of a job) and the multiple relative to medium. The absolute times are from this PC; only the multiples are worth using.

  • slow was smaller than medium on all four clips. At the same VMAF of 90 it needed 73–87% of the medium file size (13–27% smaller). The biggest saving was on riverbed (27%) and the smallest on pedestrian_area (13%). The cost was 2.2–2.6x the CPU time.
  • Presets faster than medium were mostly larger. ultrafast was 107–129% of medium (only rush_hour was lower, at 97%), veryfast was 106–122%, and fast was 104–106% (only blue_sky was lower, at 97%). In exchange, CPU time dropped to 0.21–0.42x for ultrafast, 0.50–0.69x for veryfast and 0.53–0.97x for fast.
  • fast and medium were close in file size. On three of the four clips the difference was 4–6%, and on blue_sky fast was actually 3% smaller. This difference may be within the interpolation error. Yet on pedestrian_area, riverbed and rush_hour, fast used 0.53–0.75x of medium's CPU time. On those three clips, fast looks like a trade of a slightly larger file for much faster encoding. On blue_sky the time difference was only 3%.
  • ultrafast efficiency varied the most from clip to clip. On pedestrian_area it was 129% of medium, but on rush_hour it was 97%. However, the rush_hour ultrafast VMAF at CRF 22 is 90.89, just above 90, so that value is effectively estimated from the short span between the CRF 22 point and the CRF 28 point. Confidence is low.
  • At the same CRF, slower presets give higher quality and bigger files. On all four clips, slow was larger than medium at CRF 28 (blue_sky +16%, pedestrian_area +5%, riverbed +7%, rush_hour +11%) and also had higher VMAF (blue_sky 99.97 vs. 99.43, pedestrian_area 94.01 vs. 90.83, riverbed 95.58 vs. 86.40, rush_hour 88.67 vs. 85.76). Looking only at CRF and concluding that "slow makes bigger files" would be a mistake.
  • Slower presets also generally raised the lowest-scoring frame (vmaf_min). For example, on rush_hour at CRF 22 the lowest frame was 88.66 for ultrafast, 91.79 for medium and 92.54 for slow. There are exceptions, such as riverbed at CRF 22, where veryfast, fast and medium are all around 89.0.
  • The gaps in time were much larger than the gaps in file size. The cost of going from medium to slow (2.2–2.6x) and the saving of going from medium to ultrafast (0.21–0.42x) are not moves of the same size. Time changed by multiples from preset to preset, while file size moved by a few tens of percent.

How much smaller per extra minute of CPU time?

We converted the medium-to-slow change into "percentage points of file size saved per extra minute of CPU time." It is calculated from the values in the tables above and applies to 10-second 1080p25 clips. A longer video takes proportionally more time, while the saving stays the same percentage, so this conversion cannot be carried over directly to longer videos.

ClipSize savingExtra CPU timeSaving per extra minute
blue_sky18.5%45.7 sabout 24 pp/min
pedestrian_area12.6%85.3 sabout 8.9 pp/min
riverbed27.2%240.8 sabout 6.8 pp/min
rush_hour18.4%95.9 sabout 11.5 pp/min

medium → slow, at VMAF 90. Extra CPU time = slow utime − medium utime. The easier the clip, the shorter the time it took to get the same saving; the hard clip (riverbed) had the largest saving but the lowest efficiency per unit of time.

This table does not mean "slow is always worth it." If a video is encoded once and delivered many times, the smaller size keeps cutting the amount of data you send. If you encode a video once, send it once and are done, the extra time may not be worth it. Which case you are in depends on how you use the video, not on this data.

For reference, the encoding speed based on rtime (fps_rt) on this PC ranged from 22.2 to 101.6 fps for ultrafast, 4.1 to 38.2 fps for medium and 1.7 to 14.0 fps for slow (across all CRF values in the CSV). These values fluctuate because they overlapped with other jobs, so treat them as a rough guide only.

Limitations

  • Only four 10-second clips. They differ in character (scenery, city, ripples), but animation, screen recordings and dark footage are missing. You cannot apply the ratios above to every video. The spread between clips (slow's savings of 13–27%) is already large.
  • Only 8-bit yuv420p was measured. 10-bit and HDR are not covered.
  • Only five presets. We did not measure faster, slower, veryslow and so on, and we did not analyze which detailed settings each preset bundles. We also did not touch other options such as -tune.
  • Only CRF mode, and only four CRF points. Two-pass encoding to a target bitrate is not covered. The VMAF 90 estimate interpolates on a log scale between two points 6 CRF steps apart, so some values (especially rush_hour ultrafast and riverbed medium, where one of the two points is far from VMAF 90) may have larger errors.
  • Only the default VMAF model. The same score can look different in texture, and there is no guarantee that VMAF diverges from human judgment by the same amount for every preset. PSNR (psnr_y) is in the CSV but we did not interpret it. Also, we compared only at VMAF 90, so the ratios may differ at other quality levels.
  • One PC, one run. We did not repeat measurements to estimate error. With 4 threads at IDLE priority, elapsed time fluctuates, and absolute times depend on the PC. Look mainly at the CPU time multiples; on other CPUs or thread counts the multiples may differ too.
  • Only software x265 was measured. Hardware encoders (NVENC and others) are not included.
  • File sizes in the tables are for the video stream file. Audio, playback compatibility and hardware decoding support are not reflected.

Practical recommendations

  • Start with medium unless you have a reason not to. In this test, presets faster than medium often produced a larger file at the same VMAF (fast was 104–106%, with blue_sky at 97% as the exception).
  • If file size matters and you have time to spare, slow is worth trying. It was 13–27% smaller at the same VMAF 90. But CPU time on 10-second clips was 2.2–2.6x, and on the hardest clip, riverbed, it went from 197.7 s for medium to 438.5 s for slow, so do the time math first for longer videos.
  • If you are short on time, fast is also an option. On three clips in this data, fast gave a file 4–6% larger than medium with 0.53–0.75x of the CPU time. veryfast and ultrafast save more time, but how much larger the file gets varied a lot between clips (ultrafast was 97–129% of medium).
  • Do not carry CRF numbers over between presets. At the same CRF, slow gives higher quality. To match quality, measure VMAF directly or adjust CRF within the same preset.
  • If you have a target file size, the video size and bitrate calculator gives you the target bitrate, and the FFmpeg command builder lets you pick a preset and generate the command. To check whether your playback devices support HEVC, use the codec support checker. Comparisons between codecs are in the CRF sweep and the VP9 vs AV1 test.

The full raw data can be downloaded from the CSV at the bottom of the page.

Raw data: preset-speed-x265-v1.csv