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)
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.
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
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 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.mkvTest 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
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x265 (HEVC) · preset ultrafast | 22 | 4,557.4 kbps | 99.97 | 100.00 | 39.16 | 52.55 | 18.6 |
| x265 (HEVC) · preset ultrafast | 28 | 1,771.7 kbps | 97.01 | 93.16 | 35.95 | 72.91 | 13.2 |
| x265 (HEVC) · preset ultrafast | 34 | 742.3 kbps | 81.31 | 77.60 | 32.45 | 87.81 | 11.1 |
| x265 (HEVC) · preset ultrafast | 40 | 324 kbps | 57.49 | 53.21 | 28.78 | 101.58 | 9.5 |
| x265 (HEVC) · preset veryfast | 22 | 5,347.6 kbps | 99.97 | 100.00 | 40.52 | 28.55 | 35.5 |
| x265 (HEVC) · preset veryfast | 28 | 2,135.6 kbps | 98.64 | 94.86 | 37.59 | 42.09 | 24.0 |
| x265 (HEVC) · preset veryfast | 34 | 938.6 kbps | 86.58 | 80.42 | 34.10 | 53.58 | 18.5 |
| x265 (HEVC) · preset veryfast | 40 | 426.4 kbps | 65.31 | 56.90 | 30.36 | 62.96 | 15.7 |
| x265 (HEVC) · preset fast | 22 | 5,418.8 kbps | 99.97 | 100.00 | 40.67 | 21.59 | 46.6 |
| x265 (HEVC) · preset fast | 28 | 2,231 kbps | 99.56 | 97.29 | 38.11 | 29.01 | 34.1 |
| x265 (HEVC) · preset fast | 34 | 1,032.2 kbps | 92.15 | 87.39 | 35.10 | 34.37 | 28.3 |
| x265 (HEVC) · preset fast | 40 | 496.6 kbps | 75.15 | 69.95 | 31.68 | 37.46 | 26.1 |
| x265 (HEVC) · preset medium | 22 | 6,348.2 kbps | 99.98 | 100.00 | 41.14 | 17.95 | 55.8 |
| x265 (HEVC) · preset medium | 28 | 2,481.5 kbps | 99.43 | 96.32 | 38.45 | 26.24 | 37.8 |
| x265 (HEVC) · preset medium | 34 | 1,077.3 kbps | 92.23 | 83.51 | 35.25 | 32.19 | 29.6 |
| x265 (HEVC) · preset medium | 40 | 489.1 kbps | 75.05 | 66.21 | 31.74 | 38.19 | 24.7 |
| x265 (HEVC) · preset slow | 22 | 7,641.8 kbps | 99.98 | 100.00 | 41.89 | 7.15 | 138.7 |
| x265 (HEVC) · preset slow | 28 | 2,889.7 kbps | 99.97 | 100.00 | 39.52 | 9.86 | 100.0 |
| x265 (HEVC) · preset slow | 34 | 1,258.1 kbps | 98.22 | 92.91 | 36.52 | 12.14 | 81.0 |
| x265 (HEVC) · preset slow | 40 | 554.8 kbps | 83.68 | 76.23 | 32.87 | 13.95 | 70.1 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x265 (HEVC) · preset ultrafast | 22 | 3,017 kbps | 94.04 | 91.14 | 39.89 | 51.53 | 19.1 |
| x265 (HEVC) · preset ultrafast | 28 | 1,402.7 kbps | 82.41 | 79.46 | 37.55 | 61.7 | 16.1 |
| x265 (HEVC) · preset ultrafast | 34 | 709.6 kbps | 63.01 | 59.60 | 34.85 | 70.72 | 13.9 |
| x265 (HEVC) · preset ultrafast | 40 | 353 kbps | 37.57 | 33.53 | 31.82 | 79.31 | 12.6 |
| x265 (HEVC) · preset veryfast | 22 | 4,253.9 kbps | 97.07 | 94.40 | 41.27 | 23.79 | 41.4 |
| x265 (HEVC) · preset veryfast | 28 | 1,863.3 kbps | 89.17 | 86.81 | 39.11 | 29.4 | 33.5 |
| x265 (HEVC) · preset veryfast | 34 | 917.7 kbps | 74.27 | 71.72 | 36.46 | 35.19 | 28.3 |
| x265 (HEVC) · preset veryfast | 40 | 445.2 kbps | 52.23 | 49.02 | 33.47 | 43.04 | 23.0 |
| x265 (HEVC) · preset fast | 22 | 4,201.1 kbps | 97.33 | 94.66 | 41.35 | 19.45 | 50.7 |
| x265 (HEVC) · preset fast | 28 | 1,856.1 kbps | 89.84 | 87.59 | 39.23 | 23.08 | 42.5 |
| x265 (HEVC) · preset fast | 34 | 929 kbps | 75.62 | 73.28 | 36.66 | 26.1 | 37.1 |
| x265 (HEVC) · preset fast | 40 | 462.8 kbps | 54.71 | 51.91 | 33.81 | 30.04 | 32.6 |
| x265 (HEVC) · preset medium | 22 | 4,357.1 kbps | 97.84 | 95.06 | 41.48 | 12.95 | 76.2 |
| x265 (HEVC) · preset medium | 28 | 1,873.7 kbps | 90.83 | 88.09 | 39.37 | 16.89 | 58.5 |
| x265 (HEVC) · preset medium | 34 | 924.9 kbps | 76.50 | 73.51 | 36.69 | 21.36 | 46.0 |
| x265 (HEVC) · preset medium | 40 | 443.3 kbps | 53.88 | 49.99 | 33.60 | 25.9 | 37.4 |
| x265 (HEVC) · preset slow | 22 | 4,608.4 kbps | 98.98 | 96.49 | 41.79 | 5.03 | 194.7 |
| x265 (HEVC) · preset slow | 28 | 1,965.1 kbps | 94.01 | 91.29 | 39.73 | 6.47 | 151.4 |
| x265 (HEVC) · preset slow | 34 | 972 kbps | 81.41 | 78.77 | 37.14 | 7.78 | 126.3 |
| x265 (HEVC) · preset slow | 40 | 469.6 kbps | 59.96 | 56.37 | 34.13 | 9.24 | 106.3 |
riverbed — riverbed (fine ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x265 (HEVC) · preset ultrafast | 22 | 15,401 kbps | 95.78 | 92.28 | 37.55 | 22.16 | 44.5 |
| x265 (HEVC) · preset ultrafast | 28 | 7,625.5 kbps | 77.71 | 72.56 | 34.48 | 26.93 | 36.5 |
| x265 (HEVC) · preset ultrafast | 34 | 3,561.7 kbps | 53.64 | 48.31 | 31.40 | 31.59 | 31.3 |
| x265 (HEVC) · preset ultrafast | 40 | 1,425.2 kbps | 32.32 | 28.09 | 28.45 | 40.58 | 24.3 |
| x265 (HEVC) · preset veryfast | 22 | 18,268.3 kbps | 98.61 | 96.48 | 38.43 | 8.99 | 109.9 |
| x265 (HEVC) · preset veryfast | 28 | 9,051.3 kbps | 83.43 | 79.12 | 35.32 | 10.96 | 90.4 |
| x265 (HEVC) · preset veryfast | 34 | 4,281.6 kbps | 59.74 | 54.82 | 32.11 | 13.41 | 73.7 |
| x265 (HEVC) · preset veryfast | 40 | 1,753.8 kbps | 35.88 | 31.60 | 29.01 | 17.72 | 55.4 |
| x265 (HEVC) · preset fast | 22 | 18,199.4 kbps | 98.63 | 96.40 | 38.43 | 8.54 | 116.0 |
| x265 (HEVC) · preset fast | 28 | 9,005 kbps | 83.51 | 79.33 | 35.33 | 10.22 | 96.5 |
| x265 (HEVC) · preset fast | 34 | 4,257.4 kbps | 59.81 | 54.77 | 32.13 | 11.97 | 82.7 |
| x265 (HEVC) · preset fast | 40 | 1,749.2 kbps | 36.00 | 31.58 | 29.05 | 14.54 | 67.8 |
| x265 (HEVC) · preset medium | 22 | 19,060.6 kbps | 99.59 | 98.11 | 38.69 | 4.08 | 240.1 |
| x265 (HEVC) · preset medium | 28 | 9,535.6 kbps | 86.40 | 81.94 | 35.59 | 5.31 | 183.8 |
| x265 (HEVC) · preset medium | 34 | 4,533.4 kbps | 63.21 | 57.79 | 32.36 | 7.17 | 137.0 |
| x265 (HEVC) · preset medium | 40 | 1,799.1 kbps | 38.37 | 33.28 | 29.16 | 10.38 | 94.5 |
| x265 (HEVC) · preset slow | 22 | 20,114.5 kbps | 99.96 | 100.00 | 39.56 | 1.7 | 574.9 |
| x265 (HEVC) · preset slow | 28 | 10,163.3 kbps | 95.58 | 91.74 | 36.49 | 2.09 | 467.8 |
| x265 (HEVC) · preset slow | 34 | 4,831.3 kbps | 73.91 | 67.90 | 33.14 | 2.69 | 363.8 |
| x265 (HEVC) · preset slow | 40 | 1,993.6 kbps | 46.57 | 40.36 | 29.76 | 3.79 | 259.2 |
rush_hour — evening rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x265 (HEVC) · preset ultrafast | 22 | 2,742.3 kbps | 90.89 | 89.15 | 40.86 | 46.62 | 21.3 |
| x265 (HEVC) · preset ultrafast | 28 | 1,187.3 kbps | 80.56 | 77.90 | 39.04 | 58.36 | 16.8 |
| x265 (HEVC) · preset ultrafast | 34 | 516.7 kbps | 63.91 | 60.25 | 36.48 | 68.06 | 14.0 |
| x265 (HEVC) · preset ultrafast | 40 | 224.1 kbps | 42.37 | 38.45 | 33.26 | 83.39 | 11.1 |
| x265 (HEVC) · preset veryfast | 22 | 3,877.8 kbps | 93.04 | 91.39 | 41.74 | 17.7 | 52.0 |
| x265 (HEVC) · preset veryfast | 28 | 1,609.7 kbps | 84.93 | 82.57 | 40.04 | 26.4 | 37.5 |
| x265 (HEVC) · preset veryfast | 34 | 681.2 kbps | 70.81 | 67.55 | 37.69 | 36.47 | 26.8 |
| x265 (HEVC) · preset veryfast | 40 | 275.3 kbps | 50.56 | 46.43 | 34.66 | 51.17 | 19.2 |
| x265 (HEVC) · preset fast | 22 | 3,890.8 kbps | 93.14 | 91.50 | 41.76 | 17 | 57.9 |
| x265 (HEVC) · preset fast | 28 | 1,641.7 kbps | 85.36 | 83.15 | 40.12 | 20.67 | 47.3 |
| x265 (HEVC) · preset fast | 34 | 723.1 kbps | 72.23 | 69.34 | 37.92 | 25.18 | 38.7 |
| x265 (HEVC) · preset fast | 40 | 314.7 kbps | 54.40 | 51.41 | 35.18 | 32.14 | 30.0 |
| x265 (HEVC) · preset medium | 22 | 4,009.4 kbps | 93.76 | 92.06 | 41.77 | 11.79 | 83.6 |
| x265 (HEVC) · preset medium | 28 | 1,644.7 kbps | 85.76 | 83.28 | 40.08 | 16.84 | 58.7 |
| x265 (HEVC) · preset medium | 34 | 684.4 kbps | 71.43 | 67.91 | 37.68 | 24.1 | 40.1 |
| x265 (HEVC) · preset medium | 40 | 270.9 kbps | 51.04 | 46.88 | 34.60 | 29.98 | 29.9 |
| x265 (HEVC) · preset slow | 22 | 4,312.3 kbps | 95.65 | 94.11 | 42.07 | 4.64 | 211.9 |
| x265 (HEVC) · preset slow | 28 | 1,827 kbps | 88.67 | 86.21 | 40.47 | 6.2 | 157.5 |
| x265 (HEVC) · preset slow | 34 | 772.3 kbps | 75.70 | 72.61 | 38.24 | 8.55 | 114.2 |
| x265 (HEVC) · preset slow | 40 | 310.4 kbps | 56.81 | 53.43 | 35.35 | 11.91 | 81.6 |
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.
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).
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.
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.
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