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

Which x264 Preset Should You Use? ultrafast to slower: File Size, Quality and Encoding Time (Measured)

We ran x264 with six presets (ultrafast, veryfast, fast, medium, slow, slower) on four 10-second 1080p25 clips. At the same VMAF of 90, ultrafast and veryfast needed much larger files than medium, while slow and slower needed 89–98% of medium's size.

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 was 141–308% of medium for ultrafast (riverbed could not be calculated because of too few measurement points) and 106–155% for veryfast, while CPU time was 0.06–0.37x that of medium. At the other end, slow got down to only 95–98% of medium and slower to 89–97%, at 1.4–1.9x and 2.8–3.2x the time. The only clip where veryfast held up close to medium was riverbed (106%), the one with the highest bitrate.

Why we ran this

x264 (H.264) is the most widely used codec, and "should I use ultrafast, veryfast, medium or slow?" is a common question for OBS recordings and FFmpeg encodes. The default is medium, and all that is generally known is that faster presets save time at the cost of file size or quality. This time we put numbers on how much, and on whether it depends on the type of video. We have already run the same kind of test on x265 (x265 preset comparison); this article focuses on how x264 differs. It is not a comparison between codecs, but a look at what happens when only the preset changes within one encoder.

This is not a hardware encoder result

We measured software x264 (libx264) 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 x264 version itself was not recorded separately
PCOne machine: AMD Ryzen 5 PRO 4650G (6 cores, 12 threads), 16 GB RAM
Threads per job4 (-threads 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 × 6 presets × 4 CRF values (20, 26, 32, 38) = 96
Measured on2026-11-11

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 20, 26, 32 and 38 (input/output paths omitted)
ffmpeg -i clip.y4m -c:v libx264 -preset ultrafast -crf Q -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libx264 -preset veryfast  -crf Q -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libx264 -preset fast      -crf Q -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libx264 -preset medium    -crf Q -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libx264 -preset slow      -crf Q -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libx264 -preset slower    -crf Q -threads 4 -an out.mkv

Test clips: sources and licenses

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 2026-11-08).

blue_sky is an easy clip, so at CRF 20 all six presets saturate at a VMAF of 99.97 or higher. Saturated points mask the differences between presets, so in the same-VMAF comparison below, measurement points with VMAF 99 or higher were not used for interpolation.

Results by clip

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

blue_sky — blue sky and tree branches

4050607080901001M2M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) · preset ultrafast q=38: 1,598.9 kbps, VMAF 72.427x264 (H.264) · preset ultrafast q=32: 4,451.4 kbps, VMAF 92.55x264 (H.264) · preset ultrafast q=26: 11,042.2 kbps, VMAF 99.959x264 (H.264) · preset ultrafast q=20: 25,943.2 kbps, VMAF 99.978x264 (H.264) · preset veryfast q=38: 646.7 kbps, VMAF 48.203x264 (H.264) · preset veryfast q=32: 1,164.1 kbps, VMAF 77.044x264 (H.264) · preset veryfast q=26: 2,493.1 kbps, VMAF 95.966x264 (H.264) · preset veryfast q=20: 7,128.4 kbps, VMAF 99.972x264 (H.264) · preset fast q=38: 843 kbps, VMAF 74.35x264 (H.264) · preset fast q=32: 1,566.9 kbps, VMAF 93.45x264 (H.264) · preset fast q=26: 3,463.4 kbps, VMAF 99.822x264 (H.264) · preset fast q=20: 9,579.2 kbps, VMAF 99.978x264 (H.264) · preset medium q=38: 788.4 kbps, VMAF 76.256x264 (H.264) · preset medium q=32: 1,507.1 kbps, VMAF 94.911x264 (H.264) · preset medium q=26: 3,322 kbps, VMAF 99.937x264 (H.264) · preset medium q=20: 9,140.9 kbps, VMAF 99.979x264 (H.264) · preset slow q=38: 767 kbps, VMAF 75.939x264 (H.264) · preset slow q=32: 1,479.1 kbps, VMAF 95.123x264 (H.264) · preset slow q=26: 3,231.8 kbps, VMAF 99.941x264 (H.264) · preset slow q=20: 9,099.6 kbps, VMAF 99.981x264 (H.264) · preset slower q=38: 772 kbps, VMAF 76.413x264 (H.264) · preset slower q=32: 1,507.4 kbps, VMAF 95.694x264 (H.264) · preset slower q=26: 3,319.2 kbps, VMAF 99.96x264 (H.264) · preset slower q=20: 9,380.3 kbps, VMAF 99.98
x264 (H.264) · preset ultrafastx264 (H.264) · preset veryfastx264 (H.264) · preset fastx264 (H.264) · preset mediumx264 (H.264) · preset slowx264 (H.264) · preset slower
blue_sky — blue sky and tree branches — file size vs. VMAF (6 presets)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset ultrafast2025,943.2 kbps99.98100.0041.25259.613.9
x264 (H.264) · preset ultrafast2611,042.2 kbps99.96100.0036.87349.652.9
x264 (H.264) · preset ultrafast324,451.4 kbps92.5590.1332.44378.212.7
x264 (H.264) · preset ultrafast381,598.9 kbps72.4368.5128.30382.852.5
x264 (H.264) · preset veryfast207,128.4 kbps99.97100.0040.0763.3410.8
x264 (H.264) · preset veryfast262,493.1 kbps95.9790.6236.5664.858.4
x264 (H.264) · preset veryfast321,164.1 kbps77.0470.2532.4265.727.8
x264 (H.264) · preset veryfast38646.7 kbps48.2040.4628.0363.927.4
x264 (H.264) · preset fast209,579.2 kbps99.98100.0041.1523.230.3
x264 (H.264) · preset fast263,463.4 kbps99.8298.6938.3138.920.0
x264 (H.264) · preset fast321,566.9 kbps93.4587.3634.9348.2317.2
x264 (H.264) · preset fast38843 kbps74.3566.3331.2443.2217.0
x264 (H.264) · preset medium209,140.9 kbps99.98100.0041.1020.2834.2
x264 (H.264) · preset medium263,322 kbps99.94100.0038.3030.1623.0
x264 (H.264) · preset medium321,507.1 kbps94.9189.3334.9841.2818.5
x264 (H.264) · preset medium38788.4 kbps76.2668.3031.3048.5815.6
x264 (H.264) · preset slow209,099.6 kbps99.98100.0041.1110.4355.5
x264 (H.264) · preset slow263,231.8 kbps99.9499.9738.3515.6235.4
x264 (H.264) · preset slow321,479.1 kbps95.1289.7035.0225.3125.1
x264 (H.264) · preset slow38767 kbps75.9469.9631.2016.9325.5
x264 (H.264) · preset slower209,380.3 kbps99.98100.0041.167.3103.0
x264 (H.264) · preset slower263,319.2 kbps99.96100.0038.3812.2764.9
x264 (H.264) · preset slower321,507.4 kbps95.6990.6335.0115.0556.5
x264 (H.264) · preset slower38772 kbps76.4170.3531.1618.547.0
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

4050607080901001M2M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) · preset ultrafast q=38: 1,116.8 kbps, VMAF 55.52x264 (H.264) · preset ultrafast q=32: 2,483 kbps, VMAF 77.885x264 (H.264) · preset ultrafast q=26: 6,116.5 kbps, VMAF 92.585x264 (H.264) · preset ultrafast q=20: 18,897.5 kbps, VMAF 99.409x264 (H.264) · preset veryfast q=38: 676.6 kbps, VMAF 43.249x264 (H.264) · preset veryfast q=32: 1,286.2 kbps, VMAF 69.379x264 (H.264) · preset veryfast q=26: 2,608.7 kbps, VMAF 87.198x264 (H.264) · preset veryfast q=20: 7,397.5 kbps, VMAF 97.001x264 (H.264) · preset fast q=38: 967.7 kbps, VMAF 57.986x264 (H.264) · preset fast q=32: 1,682.1 kbps, VMAF 79.127x264 (H.264) · preset fast q=26: 3,218.4 kbps, VMAF 92.071x264 (H.264) · preset fast q=20: 8,247.4 kbps, VMAF 98.507x264 (H.264) · preset medium q=38: 861.7 kbps, VMAF 57.078x264 (H.264) · preset medium q=32: 1,595.6 kbps, VMAF 78.588x264 (H.264) · preset medium q=26: 3,142.9 kbps, VMAF 92.475x264 (H.264) · preset medium q=20: 7,819.9 kbps, VMAF 98.753x264 (H.264) · preset slow q=38: 783.5 kbps, VMAF 55.699x264 (H.264) · preset slow q=32: 1,480.4 kbps, VMAF 78.078x264 (H.264) · preset slow q=26: 3,014.5 kbps, VMAF 92.618x264 (H.264) · preset slow q=20: 7,855 kbps, VMAF 98.911x264 (H.264) · preset slower q=38: 801.3 kbps, VMAF 57.589x264 (H.264) · preset slower q=32: 1,472.9 kbps, VMAF 79.049x264 (H.264) · preset slower q=26: 2,967.8 kbps, VMAF 93.123x264 (H.264) · preset slower q=20: 7,751 kbps, VMAF 99.069
x264 (H.264) · preset ultrafastx264 (H.264) · preset veryfastx264 (H.264) · preset fastx264 (H.264) · preset mediumx264 (H.264) · preset slowx264 (H.264) · preset slower
pedestrian_area — pedestrian street — file size vs. VMAF (6 presets)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset ultrafast2018,897.5 kbps99.4197.6541.2197.965.7
x264 (H.264) · preset ultrafast266,116.5 kbps92.5890.3738.21283.453.8
x264 (H.264) · preset ultrafast322,483 kbps77.8975.3935.16326.83.2
x264 (H.264) · preset ultrafast381,116.8 kbps55.5251.8331.88310.172.9
x264 (H.264) · preset veryfast207,397.5 kbps97.0093.4541.3153.4313.5
x264 (H.264) · preset veryfast262,608.7 kbps87.2083.0638.8655.5310.8
x264 (H.264) · preset veryfast321,286.2 kbps69.3863.7835.8555.379.7
x264 (H.264) · preset veryfast38676.6 kbps43.2535.4932.1756.368.5
x264 (H.264) · preset fast208,247.4 kbps98.5195.4841.7423.0532.5
x264 (H.264) · preset fast263,218.4 kbps92.0788.8839.5936.6223.5
x264 (H.264) · preset fast321,682.1 kbps79.1376.0937.0745.6619.7
x264 (H.264) · preset fast38967.7 kbps57.9955.1334.2048.2417.4
x264 (H.264) · preset medium207,819.9 kbps98.7595.9741.6517.5742.8
x264 (H.264) · preset medium263,142.9 kbps92.4789.7039.5727.5130.8
x264 (H.264) · preset medium321,595.6 kbps78.5975.9636.9137.3824.5
x264 (H.264) · preset medium38861.7 kbps57.0854.2733.9443.8420.1
x264 (H.264) · preset slow207,855 kbps98.9196.1641.588.9469.5
x264 (H.264) · preset slow263,014.5 kbps92.6289.5739.4516.1843.4
x264 (H.264) · preset slow321,480.4 kbps78.0875.3536.6824.2432.2
x264 (H.264) · preset slow38783.5 kbps55.7052.8133.6334.4525.3
x264 (H.264) · preset slower207,751 kbps99.0796.6041.615.95135.7
x264 (H.264) · preset slower262,967.8 kbps93.1290.0939.499.6292.1
x264 (H.264) · preset slower321,472.9 kbps79.0576.3736.8112.671.1
x264 (H.264) · preset slower38801.3 kbps57.5954.5533.8515.4658.2
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (fine ripples)

304050607080901005M10M20MBitrate (bps, log scale)VMAFx264 (H.264) · preset ultrafast q=38: 3,114.6 kbps, VMAF 37.546x264 (H.264) · preset ultrafast q=32: 7,981.6 kbps, VMAF 60.633x264 (H.264) · preset ultrafast q=26: 19,078.7 kbps, VMAF 85.459x264 (H.264) · preset ultrafast q=20: 39,644.8 kbps, VMAF 99.948x264 (H.264) · preset veryfast q=38: 2,768.4 kbps, VMAF 39.349x264 (H.264) · preset veryfast q=32: 6,534.1 kbps, VMAF 68.004x264 (H.264) · preset veryfast q=26: 13,533.5 kbps, VMAF 90.634x264 (H.264) · preset veryfast q=20: 29,167.1 kbps, VMAF 99.946x264 (H.264) · preset fast q=38: 3,443.7 kbps, VMAF 43.207x264 (H.264) · preset fast q=32: 7,250.6 kbps, VMAF 72.42x264 (H.264) · preset fast q=26: 14,630.9 kbps, VMAF 95.186x264 (H.264) · preset fast q=20: 29,805.6 kbps, VMAF 99.957x264 (H.264) · preset medium q=38: 3,423.6 kbps, VMAF 43.118x264 (H.264) · preset medium q=32: 7,254.3 kbps, VMAF 72.382x264 (H.264) · preset medium q=26: 14,654.1 kbps, VMAF 95.238x264 (H.264) · preset medium q=20: 29,769.2 kbps, VMAF 99.957x264 (H.264) · preset slow q=38: 3,113.7 kbps, VMAF 41.315x264 (H.264) · preset slow q=32: 7,281.2 kbps, VMAF 73.298x264 (H.264) · preset slow q=26: 15,128.9 kbps, VMAF 97.414x264 (H.264) · preset slow q=20: 30,605.2 kbps, VMAF 99.962x264 (H.264) · preset slower q=38: 2,946.7 kbps, VMAF 42.335x264 (H.264) · preset slower q=32: 6,863.5 kbps, VMAF 72.396x264 (H.264) · preset slower q=26: 14,497.4 kbps, VMAF 96.71x264 (H.264) · preset slower q=20: 29,584.4 kbps, VMAF 99.961
x264 (H.264) · preset ultrafastx264 (H.264) · preset veryfastx264 (H.264) · preset fastx264 (H.264) · preset mediumx264 (H.264) · preset slowx264 (H.264) · preset slower
riverbed — riverbed (fine ripples) — file size vs. VMAF (6 presets)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset ultrafast2039,644.8 kbps99.9599.8437.55216.265.2
x264 (H.264) · preset ultrafast2619,078.7 kbps85.4683.2833.79258.264.3
x264 (H.264) · preset ultrafast327,981.6 kbps60.6357.7530.46273.223.8
x264 (H.264) · preset ultrafast383,114.6 kbps37.5535.1327.29277.473.1
x264 (H.264) · preset veryfast2029,167.1 kbps99.95100.0039.3826.1323.8
x264 (H.264) · preset veryfast2613,533.5 kbps90.6388.7836.3326.4221.5
x264 (H.264) · preset veryfast326,534.1 kbps68.0064.8133.1226.5718.9
x264 (H.264) · preset veryfast382,768.4 kbps39.3535.1029.2027.4815.2
x264 (H.264) · preset fast2029,805.6 kbps99.96100.0039.7716.5164.6
x264 (H.264) · preset fast2614,630.9 kbps95.1993.0536.5019.7355.2
x264 (H.264) · preset fast327,250.6 kbps72.4270.1033.1422.1142.6
x264 (H.264) · preset fast383,443.7 kbps43.2140.9429.5923.6330.5
x264 (H.264) · preset medium2029,769.2 kbps99.96100.0039.7712.3183.9
x264 (H.264) · preset medium2614,654.1 kbps95.2493.4836.4914.5172.2
x264 (H.264) · preset medium327,254.3 kbps72.3869.8633.1318.3857.5
x264 (H.264) · preset medium383,423.6 kbps43.1239.8929.5721.3938.7
x264 (H.264) · preset slow2030,605.2 kbps99.96100.0039.775.49179.5
x264 (H.264) · preset slow2615,128.9 kbps97.4195.3136.507.13138.1
x264 (H.264) · preset slow327,281.2 kbps73.3069.3532.979.77101.6
x264 (H.264) · preset slow383,113.7 kbps41.3137.8629.1515.6864.4
x264 (H.264) · preset slower2029,584.4 kbps99.96100.0039.603.3289.9
x264 (H.264) · preset slower2614,497.4 kbps96.7194.7236.344.12231.3
x264 (H.264) · preset slower326,863.5 kbps72.4069.1432.815.36179.9
x264 (H.264) · preset slower382,946.7 kbps42.3438.5629.277.62128.0
riverbed — riverbed (fine ripples) — all measurements

rush_hour — evening rush-hour traffic

405060708090100500k1M2M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) · preset ultrafast q=38: 882.5 kbps, VMAF 58.012x264 (H.264) · preset ultrafast q=32: 2,069.6 kbps, VMAF 76.686x264 (H.264) · preset ultrafast q=26: 5,234.1 kbps, VMAF 90.107x264 (H.264) · preset ultrafast q=20: 17,834.5 kbps, VMAF 97.287x264 (H.264) · preset veryfast q=38: 390 kbps, VMAF 41.149x264 (H.264) · preset veryfast q=32: 889.3 kbps, VMAF 63.753x264 (H.264) · preset veryfast q=26: 2,139.9 kbps, VMAF 81.719x264 (H.264) · preset veryfast q=20: 7,780 kbps, VMAF 92.59x264 (H.264) · preset fast q=38: 731.6 kbps, VMAF 57.475x264 (H.264) · preset fast q=32: 1,471 kbps, VMAF 76.017x264 (H.264) · preset fast q=26: 3,035.2 kbps, VMAF 88.014x264 (H.264) · preset fast q=20: 8,381.2 kbps, VMAF 95.065x264 (H.264) · preset medium q=38: 685.6 kbps, VMAF 56.424x264 (H.264) · preset medium q=32: 1,397.4 kbps, VMAF 75.593x264 (H.264) · preset medium q=26: 2,954.7 kbps, VMAF 88.423x264 (H.264) · preset medium q=20: 8,033 kbps, VMAF 95.617x264 (H.264) · preset slow q=38: 594.2 kbps, VMAF 52.73x264 (H.264) · preset slow q=32: 1,205.4 kbps, VMAF 73.131x264 (H.264) · preset slow q=26: 2,649.3 kbps, VMAF 87.808x264 (H.264) · preset slow q=20: 8,131.3 kbps, VMAF 95.915x264 (H.264) · preset slower q=38: 612 kbps, VMAF 54.253x264 (H.264) · preset slower q=32: 1,210.7 kbps, VMAF 74.319x264 (H.264) · preset slower q=26: 2,656.9 kbps, VMAF 88.525x264 (H.264) · preset slower q=20: 7,903.5 kbps, VMAF 96.258
x264 (H.264) · preset ultrafastx264 (H.264) · preset veryfastx264 (H.264) · preset fastx264 (H.264) · preset mediumx264 (H.264) · preset slowx264 (H.264) · preset slower
rush_hour — evening rush-hour traffic — file size vs. VMAF (6 presets)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset ultrafast2017,834.5 kbps97.2996.3541.62250.254.6
x264 (H.264) · preset ultrafast265,234.1 kbps90.1188.5938.89311.333.2
x264 (H.264) · preset ultrafast322,069.6 kbps76.6974.3735.92302.663.0
x264 (H.264) · preset ultrafast38882.5 kbps58.0155.2932.67320.512.6
x264 (H.264) · preset veryfast207,780 kbps92.5990.4841.7751.5815.6
x264 (H.264) · preset veryfast262,139.9 kbps81.7278.4939.6454.1710.9
x264 (H.264) · preset veryfast32889.3 kbps63.7558.8536.6355.018.5
x264 (H.264) · preset veryfast38390 kbps41.1535.3232.7955.477.8
x264 (H.264) · preset fast208,381.2 kbps95.0693.3742.1622.7136.7
x264 (H.264) · preset fast263,035.2 kbps88.0185.8540.5937.8324.3
x264 (H.264) · preset fast321,471 kbps76.0273.2838.5046.5718.8
x264 (H.264) · preset fast38731.6 kbps57.4854.0935.6648.614.8
x264 (H.264) · preset medium208,033 kbps95.6294.0942.0417.0849.0
x264 (H.264) · preset medium262,954.7 kbps88.4286.3340.4827.9631.7
x264 (H.264) · preset medium321,397.4 kbps75.5972.8638.3039.5123.5
x264 (H.264) · preset medium38685.6 kbps56.4252.7535.4243.8918.5
x264 (H.264) · preset slow208,131.3 kbps95.9294.2641.958.0981.5
x264 (H.264) · preset slow262,649.3 kbps87.8185.3940.2716.6244.2
x264 (H.264) · preset slow321,205.4 kbps73.1369.9537.8926.2230.9
x264 (H.264) · preset slow38594.2 kbps52.7348.3534.9039.3522.0
x264 (H.264) · preset slower207,903.5 kbps96.2694.7541.965.53164.3
x264 (H.264) · preset slower262,656.9 kbps88.5386.2340.339.993.3
x264 (H.264) · preset slower321,210.7 kbps74.3271.1238.0213.7665.9
x264 (H.264) · preset slower38612 kbps54.2550.5335.1317.7749.9
rush_hour — evening rush-hour traffic — all measurements

How to read it, and what we saw

① Compared with medium at the same CRF

These are file size and VMAF difference at CRF 26 with medium set to 100% (calculated from size_bytes and vmaf_mean in the table). Even at the same CRF, changing the preset changes both file size and quality.

Clip (CRF 26)ultrafastveryfastfastmediumslowslower
blue_sky332% / +0.0275% / −3.97104% / −0.12100% (VMAF 99.94)97% / +0.00100% / +0.02
pedestrian_area195% / +0.1183% / −5.28102% / −0.40100% (VMAF 92.48)96% / +0.1494% / +0.65
riverbed130% / −9.7892% / −4.60100% / −0.05100% (VMAF 95.24)103% / +2.1899% / +1.47
rush_hour177% / +1.6872% / −6.70103% / −0.41100% (VMAF 88.42)90% / −0.6290% / +0.10

Each cell is "file size relative to medium / difference in mean VMAF from medium (points)".

  • At the same CRF, ultrafast files were 1.3–3.3x the size. File size grew a lot on all four clips, but quality went different ways. On the three clips other than riverbed, VMAF was similar or higher (blue_sky +0.02, pedestrian_area +0.11, rush_hour +1.68), while riverbed was 9.8 points lower (85.46 vs. 95.24). That is a file at 130% of the size with worse quality. So the assumption that "the same CRF gives a similar result" broke down most at ultrafast, and the way it broke down differed by clip (some clips only got bigger; one got bigger and also lost quality).
  • At the same CRF, veryfast files were smaller (72–92%) but VMAF was 4.0–6.7 points lower. It gave up quality in exchange for the smaller size, so this comparison alone does not show a gain. The comparison at matched quality is below.
  • fast was almost identical to medium. File size was 100–104%, and the VMAF difference was about 0.4 points or less (−0.05 to −0.41).
  • At the same CRF, slow and slower were generally the same size or smaller, with the same or higher quality. The exceptions are slow on riverbed (file 103%, VMAF +2.18) and slow on rush_hour (VMAF −0.62). The direction differs by clip, so you cannot generalize from CRF alone that "slow makes files smaller."

② Compared with medium at the same VMAF of 90

Measurement points do not land exactly on VMAF 90, so we estimated the bitrate at VMAF 90 by connecting the two measurement points on either side of 90. Bitrate roughly halves for every 6 CRF steps, so we connected the log of the bitrate with a straight line against VMAF. Because the measurement points are far apart, the estimate may deviate from the true curve, so differences of a few percent or in the decimals carry little meaning. For riverbed ultrafast, 90 lies between CRF 20 (VMAF 99.95, saturated) and CRF 26 (85.46), so we did not interpolate.

Clipultrafastveryfastfastmediumslowslower
blue_sky3,911 kbps1,961 kbps1,401 kbps1,271 kbps1,241 kbps1,237 kbps
pedestrian_area5,221 kbps3,514 kbps2,901 kbps2,785 kbps2,652 kbps2,540 kbps
riverbednot calculable13,263 kbps12,467 kbps12,472 kbps12,083 kbps11,795 kbps
rush_hour5,194 kbps5,719 kbps4,041 kbps3,679 kbps3,588 kbps3,271 kbps

Estimated bitrate at VMAF 90. The file size needed for the same quality differs a lot by clip (for medium, about 1.3 Mbps for blue_sky vs. about 12.5 Mbps for riverbed).

Clipultrafastveryfastfastmediumslowslower
blue_sky308%154%110%100%98%97%
pedestrian_area187%126%104%100%95%91%
riverbed—106%100%100%97%95%
rush_hour141%155%110%100%98%89%

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

  • ultrafast and veryfast needed much larger files for the same quality. ultrafast was 141–308% of medium and veryfast was 106–155%. Even veryfast, which looked smaller at the same CRF (table ① above), ends up larger once quality is matched.
  • veryfast came closest to medium on riverbed (106%). At about 12.5 Mbps for medium, that clip had the highest bitrate. On rush_hour (155%) and blue_sky (154%), by contrast, it was more than 1.5x. What this data confirms is that the penalty of the fast presets was smaller on the high-bitrate clip; it does not explain why.
  • fast was 100–110%, so not much different from medium. It was 100% on riverbed and 110% on blue_sky and rush_hour.
  • slow got down to only 95–98% of medium. A saving of 2–5% may not be much different from the error range of the interpolation above. slower was 89–97%, with the largest savings on rush_hour (89%) and pedestrian_area (91%). How much further slower went than slow varied by clip (rush_hour went from 98% with slow to 89% with slower; blue_sky from 98% to 97%).

③ Encoding time

These are CPU times at CRF 26 (utime, the sum of CPU time for a 4-thread job) and the multiple relative to medium. Time also varies with CRF (for example, riverbed slow is 1.91x medium at CRF 26 and 1.67x at CRF 38), so these are values at the single point of CRF 26. For times as short as 3–4 seconds, such as ultrafast, fixed costs like reading the input take a larger share, so the multiple may come out smaller than it otherwise would.

Clip (CRF 26)ultrafastveryfastfastmediumslowslower
blue_sky2.9 s (0.13x)8.4 s (0.37x)20.0 s (0.87x)23.0 s (1x)35.4 s (1.54x)64.9 s (2.82x)
pedestrian_area3.8 s (0.12x)10.8 s (0.35x)23.5 s (0.76x)30.8 s (1x)43.4 s (1.41x)92.1 s (2.99x)
riverbed4.3 s (0.06x)21.5 s (0.30x)55.2 s (0.77x)72.2 s (1x)138.1 s (1.91x)231.3 s (3.21x)
rush_hour3.2 s (0.10x)10.9 s (0.34x)24.3 s (0.77x)31.7 s (1x)44.2 s (1.39x)93.3 s (2.94x)

CPU time (utime) and the multiple relative to medium. The absolute times are for this PC; treat only the multiples as a reference.

  • Time spread widely across presets. Relative to medium: ultrafast 0.06–0.13x, veryfast 0.30–0.37x, fast 0.76–0.87x, slow 1.39–1.91x, slower 2.82–3.21x.
  • fast did not cut much time either. With file size at 100–110% and time at 0.76–0.87x, the difference between medium and fast was small in this data.
  • For slow and slower, the increase in time was larger than the reduction in file size. slow saved 2–5% in size for 1.4–1.9x the time, and slower saved 3–11% for 2.8–3.2x the time. It is a trade: several times the time for a few percent less size.

For reference, the encoding speed based on rtime (fps_rt) on this PC at CRF 26 was 258–350 fps for ultrafast, 14.5–30.2 fps for medium and 4.1–12.3 fps for slower. These values fluctuate because they overlap with other jobs, so treat them as a rough guide only. Absolute values will differ on a different PC.

④ Do slower presets pay off for each type of video?

  • blue_sky (easy clip): slow and slower came to 98% and 97%, the smallest gain, at 1.54x and 2.82x the time. ultrafast was 308%, the largest loss.
  • pedestrian_area: slow 95%, slower 91%. ultrafast 187%, veryfast 126%.
  • riverbed (high-bitrate clip): veryfast at 106% and fast at 100% had the smallest penalty for the faster presets. slow at 97% and slower at 95% gave no large gain on the slow side. Time, however, had the largest multiples: 1.91x for slow and 3.21x for slower. At the same CRF, ultrafast was 130% in size with VMAF −9.78.
  • rush_hour: it shrank the most with slower, to 89%, but the loss was large with veryfast (155%) and ultrafast (141%).
  • Across the four clips, we saw no rule for which kind of video benefits more from slow presets. Clips with large slower savings (rush_hour, pedestrian_area) and small ones (blue_sky, riverbed) are mixed, and with only four clips we cannot generalize.

Limitations

  • Only four 10-second clips. They differ in character (scenery, city, ripples), but animation, screen recordings, game footage and dark video are missing. Screen and game footage recorded with OBS in particular may behave differently from these clips, so the ratios above cannot be applied as they are.
  • Only 8-bit yuv420p was measured. 10-bit and HDR are not covered.
  • Only six presets were looked at. We did not measure faster, veryslow or placebo, and we did not analyze which detailed settings each preset bundles. We also did not touch other options such as -tune.
  • One mode (CRF) and only four CRF points. Two-pass encoding to hit a target bitrate is not covered. The VMAF 90 estimate interpolates with a log-linear line between two points 6 CRF steps apart, so the error can be large where the VMAF of the two points is far apart, as on rush_hour (veryfast: 92.6 → 81.7). We also compared only at VMAF 90, so the ratios may differ at other quality levels.
  • Only one VMAF model. Even at the same score, the footage can look different in texture, and there is no guarantee that VMAF and human judgment diverge by the same amount for every preset. PSNR (psnr_y) is in the CSV but we did not interpret it.
  • One PC, one run. We did not repeat the measurements to estimate error. With 4 threads at IDLE priority, elapsed time fluctuates, and absolute times depend on the PC. Focus on the CPU-time multiples; they may also differ on other CPUs and thread counts.
  • Only software x264 was measured. Hardware encoders (NVENC and others) are not included. File sizes in the tables are for the video stream file and do not reflect audio or playback compatibility.

Practical recommendations

  • Unless you have a specific reason, start with medium. In this test, every preset faster than medium produced a larger file at the same VMAF of 90 (fast 100–110%, veryfast 106–155%, ultrafast 141–308%).
  • If you are short on time, fast had a small penalty. File size was 100–110% and time was 0.76–0.87x. The time saved is only about 13–24%, though, so it is not large.
  • Use veryfast or ultrafast only when time comes first (for example, real-time recording where the CPU is short). File size can grow by around 1.5x (up to 3x depending on the clip), and at the same CRF even the direction in which quality moved differed by clip. Do not carry a CRF number from one preset to another; measure VMAF, or adjust CRF within the same preset.
  • slow saved 2–5% in file size and slower saved 3–11%. Whether that is worth 1.4–3.2x the time depends on how many times you export the video. If you make it once and distribute it many times, it is worth trying; otherwise medium reads as enough. That decision is set by your situation, not by this data.
  • If you have a target file size, you can work out the target bitrate with the video bitrate and file size calculator, and build the command by choosing a preset in the FFmpeg command builder. The CRF recommender can help you find the CRF that matches a VMAF you want. The same experiment with x265 is in the x265 preset comparison, and a CRF sweep is in the CRF sweep.

You can download all the raw data as a CSV at the very bottom of the page.

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