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)
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.
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
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
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.mkvTest 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
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset ultrafast | 20 | 25,943.2 kbps | 99.98 | 100.00 | 41.25 | 259.61 | 3.9 |
| x264 (H.264) · preset ultrafast | 26 | 11,042.2 kbps | 99.96 | 100.00 | 36.87 | 349.65 | 2.9 |
| x264 (H.264) · preset ultrafast | 32 | 4,451.4 kbps | 92.55 | 90.13 | 32.44 | 378.21 | 2.7 |
| x264 (H.264) · preset ultrafast | 38 | 1,598.9 kbps | 72.43 | 68.51 | 28.30 | 382.85 | 2.5 |
| x264 (H.264) · preset veryfast | 20 | 7,128.4 kbps | 99.97 | 100.00 | 40.07 | 63.34 | 10.8 |
| x264 (H.264) · preset veryfast | 26 | 2,493.1 kbps | 95.97 | 90.62 | 36.56 | 64.85 | 8.4 |
| x264 (H.264) · preset veryfast | 32 | 1,164.1 kbps | 77.04 | 70.25 | 32.42 | 65.72 | 7.8 |
| x264 (H.264) · preset veryfast | 38 | 646.7 kbps | 48.20 | 40.46 | 28.03 | 63.92 | 7.4 |
| x264 (H.264) · preset fast | 20 | 9,579.2 kbps | 99.98 | 100.00 | 41.15 | 23.2 | 30.3 |
| x264 (H.264) · preset fast | 26 | 3,463.4 kbps | 99.82 | 98.69 | 38.31 | 38.9 | 20.0 |
| x264 (H.264) · preset fast | 32 | 1,566.9 kbps | 93.45 | 87.36 | 34.93 | 48.23 | 17.2 |
| x264 (H.264) · preset fast | 38 | 843 kbps | 74.35 | 66.33 | 31.24 | 43.22 | 17.0 |
| x264 (H.264) · preset medium | 20 | 9,140.9 kbps | 99.98 | 100.00 | 41.10 | 20.28 | 34.2 |
| x264 (H.264) · preset medium | 26 | 3,322 kbps | 99.94 | 100.00 | 38.30 | 30.16 | 23.0 |
| x264 (H.264) · preset medium | 32 | 1,507.1 kbps | 94.91 | 89.33 | 34.98 | 41.28 | 18.5 |
| x264 (H.264) · preset medium | 38 | 788.4 kbps | 76.26 | 68.30 | 31.30 | 48.58 | 15.6 |
| x264 (H.264) · preset slow | 20 | 9,099.6 kbps | 99.98 | 100.00 | 41.11 | 10.43 | 55.5 |
| x264 (H.264) · preset slow | 26 | 3,231.8 kbps | 99.94 | 99.97 | 38.35 | 15.62 | 35.4 |
| x264 (H.264) · preset slow | 32 | 1,479.1 kbps | 95.12 | 89.70 | 35.02 | 25.31 | 25.1 |
| x264 (H.264) · preset slow | 38 | 767 kbps | 75.94 | 69.96 | 31.20 | 16.93 | 25.5 |
| x264 (H.264) · preset slower | 20 | 9,380.3 kbps | 99.98 | 100.00 | 41.16 | 7.3 | 103.0 |
| x264 (H.264) · preset slower | 26 | 3,319.2 kbps | 99.96 | 100.00 | 38.38 | 12.27 | 64.9 |
| x264 (H.264) · preset slower | 32 | 1,507.4 kbps | 95.69 | 90.63 | 35.01 | 15.05 | 56.5 |
| x264 (H.264) · preset slower | 38 | 772 kbps | 76.41 | 70.35 | 31.16 | 18.5 | 47.0 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset ultrafast | 20 | 18,897.5 kbps | 99.41 | 97.65 | 41.21 | 97.96 | 5.7 |
| x264 (H.264) · preset ultrafast | 26 | 6,116.5 kbps | 92.58 | 90.37 | 38.21 | 283.45 | 3.8 |
| x264 (H.264) · preset ultrafast | 32 | 2,483 kbps | 77.89 | 75.39 | 35.16 | 326.8 | 3.2 |
| x264 (H.264) · preset ultrafast | 38 | 1,116.8 kbps | 55.52 | 51.83 | 31.88 | 310.17 | 2.9 |
| x264 (H.264) · preset veryfast | 20 | 7,397.5 kbps | 97.00 | 93.45 | 41.31 | 53.43 | 13.5 |
| x264 (H.264) · preset veryfast | 26 | 2,608.7 kbps | 87.20 | 83.06 | 38.86 | 55.53 | 10.8 |
| x264 (H.264) · preset veryfast | 32 | 1,286.2 kbps | 69.38 | 63.78 | 35.85 | 55.37 | 9.7 |
| x264 (H.264) · preset veryfast | 38 | 676.6 kbps | 43.25 | 35.49 | 32.17 | 56.36 | 8.5 |
| x264 (H.264) · preset fast | 20 | 8,247.4 kbps | 98.51 | 95.48 | 41.74 | 23.05 | 32.5 |
| x264 (H.264) · preset fast | 26 | 3,218.4 kbps | 92.07 | 88.88 | 39.59 | 36.62 | 23.5 |
| x264 (H.264) · preset fast | 32 | 1,682.1 kbps | 79.13 | 76.09 | 37.07 | 45.66 | 19.7 |
| x264 (H.264) · preset fast | 38 | 967.7 kbps | 57.99 | 55.13 | 34.20 | 48.24 | 17.4 |
| x264 (H.264) · preset medium | 20 | 7,819.9 kbps | 98.75 | 95.97 | 41.65 | 17.57 | 42.8 |
| x264 (H.264) · preset medium | 26 | 3,142.9 kbps | 92.47 | 89.70 | 39.57 | 27.51 | 30.8 |
| x264 (H.264) · preset medium | 32 | 1,595.6 kbps | 78.59 | 75.96 | 36.91 | 37.38 | 24.5 |
| x264 (H.264) · preset medium | 38 | 861.7 kbps | 57.08 | 54.27 | 33.94 | 43.84 | 20.1 |
| x264 (H.264) · preset slow | 20 | 7,855 kbps | 98.91 | 96.16 | 41.58 | 8.94 | 69.5 |
| x264 (H.264) · preset slow | 26 | 3,014.5 kbps | 92.62 | 89.57 | 39.45 | 16.18 | 43.4 |
| x264 (H.264) · preset slow | 32 | 1,480.4 kbps | 78.08 | 75.35 | 36.68 | 24.24 | 32.2 |
| x264 (H.264) · preset slow | 38 | 783.5 kbps | 55.70 | 52.81 | 33.63 | 34.45 | 25.3 |
| x264 (H.264) · preset slower | 20 | 7,751 kbps | 99.07 | 96.60 | 41.61 | 5.95 | 135.7 |
| x264 (H.264) · preset slower | 26 | 2,967.8 kbps | 93.12 | 90.09 | 39.49 | 9.62 | 92.1 |
| x264 (H.264) · preset slower | 32 | 1,472.9 kbps | 79.05 | 76.37 | 36.81 | 12.6 | 71.1 |
| x264 (H.264) · preset slower | 38 | 801.3 kbps | 57.59 | 54.55 | 33.85 | 15.46 | 58.2 |
riverbed — riverbed (fine ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset ultrafast | 20 | 39,644.8 kbps | 99.95 | 99.84 | 37.55 | 216.26 | 5.2 |
| x264 (H.264) · preset ultrafast | 26 | 19,078.7 kbps | 85.46 | 83.28 | 33.79 | 258.26 | 4.3 |
| x264 (H.264) · preset ultrafast | 32 | 7,981.6 kbps | 60.63 | 57.75 | 30.46 | 273.22 | 3.8 |
| x264 (H.264) · preset ultrafast | 38 | 3,114.6 kbps | 37.55 | 35.13 | 27.29 | 277.47 | 3.1 |
| x264 (H.264) · preset veryfast | 20 | 29,167.1 kbps | 99.95 | 100.00 | 39.38 | 26.13 | 23.8 |
| x264 (H.264) · preset veryfast | 26 | 13,533.5 kbps | 90.63 | 88.78 | 36.33 | 26.42 | 21.5 |
| x264 (H.264) · preset veryfast | 32 | 6,534.1 kbps | 68.00 | 64.81 | 33.12 | 26.57 | 18.9 |
| x264 (H.264) · preset veryfast | 38 | 2,768.4 kbps | 39.35 | 35.10 | 29.20 | 27.48 | 15.2 |
| x264 (H.264) · preset fast | 20 | 29,805.6 kbps | 99.96 | 100.00 | 39.77 | 16.51 | 64.6 |
| x264 (H.264) · preset fast | 26 | 14,630.9 kbps | 95.19 | 93.05 | 36.50 | 19.73 | 55.2 |
| x264 (H.264) · preset fast | 32 | 7,250.6 kbps | 72.42 | 70.10 | 33.14 | 22.11 | 42.6 |
| x264 (H.264) · preset fast | 38 | 3,443.7 kbps | 43.21 | 40.94 | 29.59 | 23.63 | 30.5 |
| x264 (H.264) · preset medium | 20 | 29,769.2 kbps | 99.96 | 100.00 | 39.77 | 12.31 | 83.9 |
| x264 (H.264) · preset medium | 26 | 14,654.1 kbps | 95.24 | 93.48 | 36.49 | 14.51 | 72.2 |
| x264 (H.264) · preset medium | 32 | 7,254.3 kbps | 72.38 | 69.86 | 33.13 | 18.38 | 57.5 |
| x264 (H.264) · preset medium | 38 | 3,423.6 kbps | 43.12 | 39.89 | 29.57 | 21.39 | 38.7 |
| x264 (H.264) · preset slow | 20 | 30,605.2 kbps | 99.96 | 100.00 | 39.77 | 5.49 | 179.5 |
| x264 (H.264) · preset slow | 26 | 15,128.9 kbps | 97.41 | 95.31 | 36.50 | 7.13 | 138.1 |
| x264 (H.264) · preset slow | 32 | 7,281.2 kbps | 73.30 | 69.35 | 32.97 | 9.77 | 101.6 |
| x264 (H.264) · preset slow | 38 | 3,113.7 kbps | 41.31 | 37.86 | 29.15 | 15.68 | 64.4 |
| x264 (H.264) · preset slower | 20 | 29,584.4 kbps | 99.96 | 100.00 | 39.60 | 3.3 | 289.9 |
| x264 (H.264) · preset slower | 26 | 14,497.4 kbps | 96.71 | 94.72 | 36.34 | 4.12 | 231.3 |
| x264 (H.264) · preset slower | 32 | 6,863.5 kbps | 72.40 | 69.14 | 32.81 | 5.36 | 179.9 |
| x264 (H.264) · preset slower | 38 | 2,946.7 kbps | 42.34 | 38.56 | 29.27 | 7.62 | 128.0 |
rush_hour — evening rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset ultrafast | 20 | 17,834.5 kbps | 97.29 | 96.35 | 41.62 | 250.25 | 4.6 |
| x264 (H.264) · preset ultrafast | 26 | 5,234.1 kbps | 90.11 | 88.59 | 38.89 | 311.33 | 3.2 |
| x264 (H.264) · preset ultrafast | 32 | 2,069.6 kbps | 76.69 | 74.37 | 35.92 | 302.66 | 3.0 |
| x264 (H.264) · preset ultrafast | 38 | 882.5 kbps | 58.01 | 55.29 | 32.67 | 320.51 | 2.6 |
| x264 (H.264) · preset veryfast | 20 | 7,780 kbps | 92.59 | 90.48 | 41.77 | 51.58 | 15.6 |
| x264 (H.264) · preset veryfast | 26 | 2,139.9 kbps | 81.72 | 78.49 | 39.64 | 54.17 | 10.9 |
| x264 (H.264) · preset veryfast | 32 | 889.3 kbps | 63.75 | 58.85 | 36.63 | 55.01 | 8.5 |
| x264 (H.264) · preset veryfast | 38 | 390 kbps | 41.15 | 35.32 | 32.79 | 55.47 | 7.8 |
| x264 (H.264) · preset fast | 20 | 8,381.2 kbps | 95.06 | 93.37 | 42.16 | 22.71 | 36.7 |
| x264 (H.264) · preset fast | 26 | 3,035.2 kbps | 88.01 | 85.85 | 40.59 | 37.83 | 24.3 |
| x264 (H.264) · preset fast | 32 | 1,471 kbps | 76.02 | 73.28 | 38.50 | 46.57 | 18.8 |
| x264 (H.264) · preset fast | 38 | 731.6 kbps | 57.48 | 54.09 | 35.66 | 48.6 | 14.8 |
| x264 (H.264) · preset medium | 20 | 8,033 kbps | 95.62 | 94.09 | 42.04 | 17.08 | 49.0 |
| x264 (H.264) · preset medium | 26 | 2,954.7 kbps | 88.42 | 86.33 | 40.48 | 27.96 | 31.7 |
| x264 (H.264) · preset medium | 32 | 1,397.4 kbps | 75.59 | 72.86 | 38.30 | 39.51 | 23.5 |
| x264 (H.264) · preset medium | 38 | 685.6 kbps | 56.42 | 52.75 | 35.42 | 43.89 | 18.5 |
| x264 (H.264) · preset slow | 20 | 8,131.3 kbps | 95.92 | 94.26 | 41.95 | 8.09 | 81.5 |
| x264 (H.264) · preset slow | 26 | 2,649.3 kbps | 87.81 | 85.39 | 40.27 | 16.62 | 44.2 |
| x264 (H.264) · preset slow | 32 | 1,205.4 kbps | 73.13 | 69.95 | 37.89 | 26.22 | 30.9 |
| x264 (H.264) · preset slow | 38 | 594.2 kbps | 52.73 | 48.35 | 34.90 | 39.35 | 22.0 |
| x264 (H.264) · preset slower | 20 | 7,903.5 kbps | 96.26 | 94.75 | 41.96 | 5.53 | 164.3 |
| x264 (H.264) · preset slower | 26 | 2,656.9 kbps | 88.53 | 86.23 | 40.33 | 9.9 | 93.3 |
| x264 (H.264) · preset slower | 32 | 1,210.7 kbps | 74.32 | 71.12 | 38.02 | 13.76 | 65.9 |
| x264 (H.264) · preset slower | 38 | 612 kbps | 54.25 | 50.53 | 35.13 | 17.77 | 49.9 |
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.
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.
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).
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.
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