Is a Slow Preset Worth It for Archival-Quality Video? x264 and x265 ultrafast vs medium vs slower at VMAF 97–99: File Size and Encode Time Tested
We compared x264 (ultrafast, medium, slower) and x265 (ultrafast, medium, slow) at equal VMAF in the high-quality range of VMAF 97–99. The comparison rests mainly on the pedestrian_area and rush_hour clips; blue_sky saturated above VMAF 99 and could not be compared, and riverbed could be compared only as an upper or lower bound for some presets. At VMAF 98, ultrafast files were +8 to +107% larger than medium, while slower/slow files were 10–45% smaller than medium. In return, medium took 2.9–16.2x the CPU time of ultrafast, and slower/slow took 2.0–4.3x the CPU time of medium.
The test PC, FFmpeg and VMAF settings shared by every lab article are collected on the methodology page. Methodology (common to all tests)
Even at high quality (VMAF 97–99), the preset still changed file size, and by very different amounts depending on the footage. In the combinations we could compare, at VMAF 98 ultrafast files were +8 to +107% larger than medium, and slower (x264) / slow (x265) files were 10–45% smaller than medium. CPU time (utime) at the same CRF was 2.9–16.2x higher for medium than for ultrafast, and 2.0–4.3x higher for slower/slow than for medium. On the easy clip (blue_sky), all 24 measurement points saturated at VMAF 99.35 or higher, so an equal-VMAF comparison was impossible, and riverbed was saturated for some presets too. So this data supports neither "it's an archive, so always use slow" nor "the quality is the same anyway, so any preset will do."
Why we wanted to know
When you compress a source for long-term storage or use the result as an intermediate editing file, you encode at a low CRF (high quality). Two ideas then collide: "the quality is nearly identical to the source anyway, so a fast preset should be fine," and "this file will sit around for years, so let's compress it properly once with a slow preset." The earlier preset penalty by quality range test only looked at the low-quality end, CRF 26–51. The high-quality CRF diminishing returns test and the lossless CRF 0 archive cost test centered on CRF rather than the preset. How much does file size change at the same quality when you change the preset at VMAF 97–99, and how many times longer does it take? That question was still open.
Fast presets produce different VMAF at the same CRF (fast-preset probe test), so we compared file size at matched VMAF, not at matched CRF.
How we measured
VMAF is a quality metric developed by Netflix. It compares the encoded result with the original frame by frame and scores it from 0 to 100; the closer to 100, the harder it is to tell the result from the original. This article compares on the mean (vmaf_mean) and uses the 5th percentile (vmaf_p5) as a supporting metric that shows how bad the worst frames are.
Encoder settings
Input and output paths are omitted. We substituted each CRF value above for Q, one at a time. We picked slower for x264 and slow for x265 as the "slow side" (the two codecs' slow presets have different names). x264 and x265 CRF values are on different scales, so do not compare the numbers directly.
Test clip sources and licenses
All four clips are 1080p25 video 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 says "Restrictions of use: No restrictions" and "Copyright: No Copyright" (checked 2026-11-08).
Results by clip
In each curve, the x-axis is bitrate and the y-axis is VMAF. This test packed the CRF values toward the low (high-quality) end, so most points sit at the top end of the curve. The table lists file size, VMAF, PSNR and the speed measurements. Speed fluctuates because the jobs ran at IDLE priority, so treat it as a rough reference.
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 | 12 | 78,899.1 kbps | 99.98 | 100.00 | 47.07 | 186.01 | 5.7 |
| x264 (H.264) · preset ultrafast | 16 | 45,700.8 kbps | 99.98 | 100.00 | 44.03 | 204.58 | 4.9 |
| x264 (H.264) · preset ultrafast | 20 | 25,943.2 kbps | 99.98 | 100.00 | 41.25 | 231.27 | 4.5 |
| x264 (H.264) · preset ultrafast | 24 | 14,751.9 kbps | 99.97 | 100.00 | 38.37 | 246.79 | 4.0 |
| x264 (H.264) · preset medium | 12 | 48,952.6 kbps | 99.99 | 100.00 | 45.60 | 11.97 | 65.6 |
| x264 (H.264) · preset medium | 16 | 22,014.7 kbps | 99.98 | 100.00 | 42.95 | 14.74 | 48.8 |
| x264 (H.264) · preset medium | 20 | 9,140.9 kbps | 99.98 | 100.00 | 41.10 | 19.31 | 35.0 |
| x264 (H.264) · preset medium | 24 | 4,535.6 kbps | 99.97 | 100.00 | 39.31 | 25.39 | 26.3 |
| x264 (H.264) · preset slower | 12 | 50,486.6 kbps | 99.99 | 100.00 | 45.84 | 3.65 | 227.8 |
| x264 (H.264) · preset slower | 16 | 23,183 kbps | 99.98 | 100.00 | 43.09 | 4.72 | 167.1 |
| x264 (H.264) · preset slower | 20 | 9,380.3 kbps | 99.98 | 100.00 | 41.16 | 6.84 | 108.3 |
| x264 (H.264) · preset slower | 24 | 4,553.3 kbps | 99.97 | 100.00 | 39.36 | 9.74 | 77.8 |
| x265 (HEVC) · preset ultrafast | 14 | 19,033.5 kbps | 99.98 | 100.00 | 43.19 | 25.3 | 37.4 |
| x265 (HEVC) · preset ultrafast | 18 | 9,204.8 kbps | 99.98 | 100.00 | 41.19 | 34.03 | 27.4 |
| x265 (HEVC) · preset ultrafast | 22 | 4,557.4 kbps | 99.97 | 100.00 | 39.16 | 46.32 | 19.9 |
| x265 (HEVC) · preset ultrafast | 26 | 2,409 kbps | 99.35 | 96.80 | 37.08 | 58.18 | 16.2 |
| x265 (HEVC) · preset medium | 14 | 26,497.8 kbps | 99.98 | 100.00 | 44.55 | 5.78 | 166.0 |
| x265 (HEVC) · preset medium | 18 | 12,610.6 kbps | 99.98 | 100.00 | 42.69 | 10.13 | 95.1 |
| x265 (HEVC) · preset medium | 22 | 6,348.2 kbps | 99.98 | 100.00 | 41.14 | 15.45 | 62.8 |
| x265 (HEVC) · preset medium | 26 | 3,362 kbps | 99.90 | 99.36 | 39.41 | 20.34 | 47.0 |
| x265 (HEVC) · preset slow | 14 | 32,175.2 kbps | 99.99 | 100.00 | 45.46 | 2.83 | 338.2 |
| x265 (HEVC) · preset slow | 18 | 15,421.5 kbps | 99.98 | 100.00 | 43.39 | 4.41 | 219.5 |
| x265 (HEVC) · preset slow | 22 | 7,641.8 kbps | 99.98 | 100.00 | 41.89 | 6.19 | 156.9 |
| x265 (HEVC) · preset slow | 26 | 3,949.9 kbps | 99.97 | 100.00 | 40.38 | 7.77 | 123.3 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset ultrafast | 12 | 83,440.7 kbps | 99.98 | 100.00 | 46.87 | 168.58 | 6.3 |
| x264 (H.264) · preset ultrafast | 16 | 44,828 kbps | 99.96 | 99.72 | 43.72 | 192.75 | 5.4 |
| x264 (H.264) · preset ultrafast | 20 | 18,897.5 kbps | 99.41 | 97.65 | 41.21 | 223.41 | 4.7 |
| x264 (H.264) · preset ultrafast | 24 | 8,424.7 kbps | 95.64 | 93.66 | 39.17 | 227.27 | 4.2 |
| x264 (H.264) · preset medium | 12 | 55,176.7 kbps | 99.97 | 100.00 | 46.05 | 10.34 | 82.7 |
| x264 (H.264) · preset medium | 16 | 22,371.3 kbps | 99.70 | 98.02 | 43.15 | 12.62 | 62.7 |
| x264 (H.264) · preset medium | 20 | 7,819.9 kbps | 98.75 | 95.97 | 41.65 | 16.16 | 44.9 |
| x264 (H.264) · preset medium | 24 | 4,063.8 kbps | 95.41 | 92.40 | 40.34 | 22.41 | 34.8 |
| x264 (H.264) · preset slower | 12 | 55,988.9 kbps | 99.98 | 100.00 | 46.25 | 2.83 | 317.4 |
| x264 (H.264) · preset slower | 16 | 23,482.5 kbps | 99.80 | 98.48 | 43.22 | 3.83 | 216.8 |
| x264 (H.264) · preset slower | 20 | 7,751 kbps | 99.07 | 96.60 | 41.61 | 5.41 | 143.8 |
| x264 (H.264) · preset slower | 24 | 3,876.4 kbps | 96.06 | 92.83 | 40.29 | 7.56 | 110.4 |
| x265 (HEVC) · preset ultrafast | 14 | 14,402.2 kbps | 99.57 | 97.70 | 42.61 | 26.7 | 35.4 |
| x265 (HEVC) · preset ultrafast | 18 | 5,701.5 kbps | 98.05 | 95.19 | 41.19 | 37.88 | 25.1 |
| x265 (HEVC) · preset ultrafast | 22 | 3,017 kbps | 94.04 | 91.14 | 39.89 | 45.13 | 21.2 |
| x265 (HEVC) · preset ultrafast | 26 | 1,793.5 kbps | 87.27 | 84.45 | 38.40 | 50.08 | 18.9 |
| x265 (HEVC) · preset medium | 14 | 26,664.6 kbps | 99.87 | 99.08 | 44.38 | 4.61 | 209.9 |
| x265 (HEVC) · preset medium | 18 | 9,995.1 kbps | 99.33 | 97.26 | 42.65 | 7.9 | 121.5 |
| x265 (HEVC) · preset medium | 22 | 4,357.1 kbps | 97.84 | 95.06 | 41.48 | 11.18 | 84.7 |
| x265 (HEVC) · preset medium | 26 | 2,415.2 kbps | 93.89 | 91.08 | 40.15 | 13.55 | 70.4 |
| x265 (HEVC) · preset slow | 14 | 32,853.6 kbps | 99.96 | 99.77 | 45.16 | 2.01 | 474.9 |
| x265 (HEVC) · preset slow | 18 | 11,196 kbps | 99.65 | 97.86 | 42.95 | 3.25 | 291.4 |
| x265 (HEVC) · preset slow | 22 | 4,608.4 kbps | 98.98 | 96.49 | 41.79 | 4.34 | 221.3 |
| x265 (HEVC) · preset slow | 26 | 2,533.9 kbps | 96.48 | 93.66 | 40.48 | 5.12 | 185.4 |
riverbed — riverbed (small ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset ultrafast | 12 | 98,011.4 kbps | 99.98 | 100.00 | 43.32 | 149.79 | 7.0 |
| x264 (H.264) · preset ultrafast | 16 | 64,503.1 kbps | 99.98 | 100.00 | 40.46 | 168.92 | 6.3 |
| x264 (H.264) · preset ultrafast | 20 | 39,644.8 kbps | 99.95 | 99.84 | 37.55 | 193.65 | 5.8 |
| x264 (H.264) · preset ultrafast | 24 | 24,844.1 kbps | 92.36 | 90.24 | 35.03 | 200.32 | 5.1 |
| x264 (H.264) · preset medium | 12 | 84,390.6 kbps | 99.98 | 100.00 | 45.16 | 9.59 | 103.7 |
| x264 (H.264) · preset medium | 16 | 50,163.5 kbps | 99.97 | 100.00 | 42.09 | 10.37 | 97.0 |
| x264 (H.264) · preset medium | 20 | 29,769.2 kbps | 99.96 | 100.00 | 39.77 | 11.25 | 89.6 |
| x264 (H.264) · preset medium | 24 | 18,482 kbps | 99.74 | 98.74 | 37.60 | 12.02 | 83.2 |
| x264 (H.264) · preset slower | 12 | 82,805.5 kbps | 99.98 | 100.00 | 44.98 | 2.15 | 440.9 |
| x264 (H.264) · preset slower | 16 | 49,598.2 kbps | 99.97 | 100.00 | 41.86 | 2.49 | 378.6 |
| x264 (H.264) · preset slower | 20 | 29,584.4 kbps | 99.96 | 100.00 | 39.60 | 2.95 | 319.9 |
| x264 (H.264) · preset slower | 24 | 18,338 kbps | 99.93 | 100.00 | 37.45 | 3.4 | 275.4 |
| x265 (HEVC) · preset ultrafast | 14 | 42,396.8 kbps | 99.97 | 100.00 | 41.61 | 13.27 | 72.1 |
| x265 (HEVC) · preset ultrafast | 18 | 24,579.7 kbps | 99.96 | 100.00 | 39.48 | 16.9 | 56.9 |
| x265 (HEVC) · preset ultrafast | 22 | 15,401 kbps | 95.78 | 92.28 | 37.55 | 19.64 | 48.5 |
| x265 (HEVC) · preset ultrafast | 26 | 9,652.8 kbps | 84.71 | 80.14 | 35.49 | 22.19 | 42.8 |
| x265 (HEVC) · preset medium | 14 | 53,318.1 kbps | 99.98 | 100.00 | 43.00 | 2.35 | 401.7 |
| x265 (HEVC) · preset medium | 18 | 31,327.8 kbps | 99.97 | 100.00 | 40.70 | 3 | 315.5 |
| x265 (HEVC) · preset medium | 22 | 19,060.6 kbps | 99.59 | 98.11 | 38.69 | 3.56 | 265.4 |
| x265 (HEVC) · preset medium | 26 | 12,067 kbps | 92.25 | 88.31 | 36.64 | 4.2 | 227.4 |
| x265 (HEVC) · preset slow | 14 | 58,855.6 kbps | 99.98 | 100.00 | 43.95 | 1.08 | 886.2 |
| x265 (HEVC) · preset slow | 18 | 32,913.4 kbps | 99.97 | 100.00 | 41.53 | 1.28 | 735.6 |
| x265 (HEVC) · preset slow | 22 | 20,114.5 kbps | 99.96 | 100.00 | 39.56 | 1.46 | 644.2 |
| x265 (HEVC) · preset slow | 26 | 12,819.8 kbps | 99.13 | 97.09 | 37.55 | 1.66 | 568.9 |
rush_hour — rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset ultrafast | 12 | 91,793.6 kbps | 99.97 | 99.78 | 47.52 | 156.45 | 6.7 |
| x264 (H.264) · preset ultrafast | 16 | 47,409.8 kbps | 99.26 | 98.56 | 44.15 | 179.34 | 6.1 |
| x264 (H.264) · preset ultrafast | 20 | 17,834.5 kbps | 97.29 | 96.35 | 41.62 | 204.58 | 5.3 |
| x264 (H.264) · preset ultrafast | 24 | 7,562.3 kbps | 93.37 | 91.28 | 39.84 | 216.64 | 4.7 |
| x264 (H.264) · preset medium | 12 | 63,880.5 kbps | 99.80 | 99.25 | 46.65 | 9.44 | 96.0 |
| x264 (H.264) · preset medium | 16 | 27,963.8 kbps | 98.39 | 97.22 | 43.63 | 11.58 | 75.4 |
| x264 (H.264) · preset medium | 20 | 8,033 kbps | 95.62 | 94.09 | 42.04 | 15.92 | 50.4 |
| x264 (H.264) · preset medium | 24 | 3,883 kbps | 91.33 | 89.45 | 41.07 | 22.4 | 37.4 |
| x264 (H.264) · preset slower | 12 | 63,991.9 kbps | 99.92 | 99.57 | 46.80 | 2.44 | 385.9 |
| x264 (H.264) · preset slower | 16 | 29,561.5 kbps | 98.87 | 97.80 | 43.71 | 3.34 | 272.0 |
| x264 (H.264) · preset slower | 20 | 7,903.5 kbps | 96.26 | 94.75 | 41.96 | 5.17 | 167.2 |
| x264 (H.264) · preset slower | 24 | 3,556.6 kbps | 91.70 | 89.60 | 40.96 | 7.86 | 112.1 |
| x265 (HEVC) · preset ultrafast | 14 | 13,235.9 kbps | 97.60 | 96.47 | 42.79 | 25.4 | 37.9 |
| x265 (HEVC) · preset ultrafast | 18 | 5,127.3 kbps | 94.94 | 93.42 | 41.76 | 34.71 | 27.5 |
| x265 (HEVC) · preset ultrafast | 22 | 2,742.3 kbps | 90.89 | 89.15 | 40.86 | 41.07 | 22.9 |
| x265 (HEVC) · preset ultrafast | 26 | 1,569.3 kbps | 84.67 | 82.31 | 39.72 | 46.91 | 19.7 |
| x265 (HEVC) · preset medium | 14 | 27,552.5 kbps | 98.76 | 97.78 | 44.37 | 4.06 | 234.2 |
| x265 (HEVC) · preset medium | 18 | 9,734.5 kbps | 96.80 | 95.56 | 42.70 | 7 | 135.3 |
| x265 (HEVC) · preset medium | 22 | 4,009.4 kbps | 93.76 | 92.06 | 41.77 | 10.07 | 95.4 |
| x265 (HEVC) · preset medium | 26 | 2,198.4 kbps | 88.97 | 86.82 | 40.73 | 12.57 | 75.5 |
| x265 (HEVC) · preset slow | 14 | 32,769 kbps | 99.50 | 98.72 | 45.14 | 1.7 | 554.9 |
| x265 (HEVC) · preset slow | 18 | 10,412.7 kbps | 98.07 | 96.92 | 43.01 | 2.92 | 324.9 |
| x265 (HEVC) · preset slow | 22 | 4,312.3 kbps | 95.65 | 94.11 | 42.07 | 3.93 | 240.0 |
| x265 (HEVC) · preset slow | 26 | 2,423.7 kbps | 91.53 | 89.42 | 41.08 | 4.77 | 196.3 |
How to read it, and what we saw
1. First, a check: 62 of 96 encodes scored VMAF 99 or higher
Of the 96 encodes, only 34 had a mean VMAF below 99; the other 62 were at 99 or higher. By clip, all 24 blue_sky encodes were at 99.35 or higher; only 4 of 24 riverbed encodes, 11 pedestrian_area encodes and 19 rush_hour encodes were below 99. To get file size at VMAF 97, 98 or 99 you need two measurement points straddling that score, so where results are saturated we either could not compare at all or could state only one end (a lower or upper bound).
2. File size at equal VMAF: how much larger is ultrafast than medium?
For each (clip, encoder, preset), we connected the 4 measurement points with straight lines (file size on a log scale against VMAF) to get file size at VMAF 97, 98 and 99, and expressed it as "how many percent larger than medium." Positive means ultrafast is larger. These are estimates from straight lines between measured points, so differences of 1–2 percentage points mean nothing.
File size difference of ultrafast relative to medium at the same mean VMAF, log interpolation. For rush_hour x265, ultrafast tops out at VMAF 97.6, so only the 97 cell can be computed, and that cell is a line between two medium points (VMAF 96.8 → 98.8, a 2.8x difference in file size), so read it only as "roughly similar." For riverbed x264, every medium point is at VMAF 99.7 or higher, so interpolation is impossible; since ultrafast cannot be made smaller than medium at CRF 24 (23,102,494 B, VMAF 99.738), we give ultrafast's excess as a lower bound.
- In the combinations we could compare, ultrafast was almost always larger than medium. At VMAF 98 the range ran from +8% (rush_hour x264) to +107% (pedestrian_area x264). The only exception is one cell for rush_hour x265 at 97 (−1%), and as the table note explains, that cell has a large interpolation error.
- Footage type largely decided the size of the gap. For x264 at VMAF 98, pedestrian_area was +107% and rush_hour was +8%. For the same pair of presets, that is a difference of more than 13x.
- x265 had a smaller and steadier gap than x264. In the comparable cells, the VMAF 98 values were +14% (riverbed) and +19% (pedestrian_area).
- In the saturated range, VMAF cannot tell presets apart. At x264 CRF 24 on blue_sky, ultrafast was 18,439,848 B (VMAF 99.972) and medium was 5,669,461 B (99.971): the same VMAF at 3.25x the size. As this shows, the same score can hide a large difference in file size.
3. File size at equal VMAF: how much smaller are the slow presets (slower, slow) than medium?
File size difference of the slow preset relative to medium at the same mean VMAF, log interpolation. Negative means the slow preset is smaller. For riverbed x265, every slow point is at VMAF 99.1 or higher, so interpolation is impossible; we used CRF 26 slow (16,024,804 B, VMAF 99.129) as the upper bound and wrote "at least this much smaller." The 99 cell for rush_hour x265 cannot be computed because medium's top VMAF is 98.758.
- In every cell we could compare, the slow preset was smaller. At VMAF 98 the range ran from −10% (pedestrian_area x264) to −45% (rush_hour x265).
- x265 slow saved more relative to medium than x264 slower did. At VMAF 98, pedestrian_area was −10% for x264 and −23% for x265, and rush_hour was −19% for x264 and −45% for x265.
- The 99 column has the largest error. For example, the −43% for pedestrian_area x265 comes from slow having an actual measured point (5,760,486 B) at VMAF 98.98, while medium's value is a line between VMAF 99.33 and 97.84 (a 2.3x difference in file size), so the straight-line interpolation may have overestimated medium's size. For the 99 column, use only the direction, and trust the 98 and 97 columns more.
- That blue_sky cannot be compared at all is itself informative. At x264 CRF 24, slower (5,691,627 B) was actually 0.4% larger than medium (5,669,461 B), and VMAF was the same, 99.973 vs 99.971. On an easy video where VMAF saturates at 99.97, this metric did not capture any benefit of the slower preset.
4. Time: how many times more CPU time?
We compared time by CPU time (utime_s). Across the same 4 CRF steps, we calculated "medium ÷ ultrafast" and "slower (slow) ÷ medium" and give the minimum–maximum per clip. Quality is not equal at the same CRF, but the point here is to see how much time grows within a single setting.
CPU time (utime_s) ratio at the same CRF. Minimum–maximum over the 4 CRF steps. Each value was measured once.
Matching time at the same VMAF 98 (interpolating utime the same way as file size), the combinations we could compare gave the following.
CPU time ratio interpolated at VMAF 98, rounded to one decimal place. For rush_hour x265, ultrafast never reached 98, and slow÷medium has a large error because the two medium points are far apart.
- For x264, ultrafast → medium was the biggest jump in time. It was 6.6–16.2x at the same CRF and 9.5–12.8x when matched at VMAF 98. Medium → slower, by contrast, was 3.0–4.3x.
- For x265, ultrafast → medium was 2.9–6.2x and medium → slow was 2.0–2.6x, so time grew less per step than for x264.
- Looking at time against size savings, each step up shows diminishing returns. For pedestrian_area x264 at VMAF 98, going from ultrafast to medium cut file size roughly in half (17.5 → 8.4 MB) at about 9.5x the time, while medium to slower went from 8.4 to 7.6 MB (−10%) at about 3.1x the time. The size reductions are for this 10-second clip; apply the same ratio to a longer video.
5. 5th-percentile VMAF: the clip mattered more than the preset
We collected the 5th-percentile and minimum VMAF for the 10 measurement points whose mean VMAF landed in 97–99 (all from pedestrian_area and rush_hour).
All measurement points with a mean VMAF of at least 97 and below 99. File size is size_bytes divided by 1,000,000, rounded to one decimal place.
- The gap between the mean and the 5th percentile was 2.5–2.9 points for pedestrian_area and 0.9–1.2 points for rush_hour. Within the same clip, the gap was similar across presets (pedestrian_area 2.49–2.87, rush_hour 0.94–1.17). In other words, the type of video, not the preset, decided how bad the worst frames were.
- The minimum VMAF also clustered tightly within each clip. It was 92.1–92.9 for pedestrian_area and 94.3–95.4 for rush_hour. At these 10 points, ultrafast was not noticeably worse in the 5th percentile. The cost showed up not in the 5th percentile but in file size (section 2 above).
Limitations
- There are only four 10-second clips, and half of them saturated. The equal-VMAF comparison essentially rests on two clips, pedestrian_area and rush_hour. Animation, screen recordings, dark footage and noisy footage are missing, and whether slow presets really give no benefit on easy footage was not confirmed by this metric.
- VMAF is insensitive above 99. Even when the score is the same 99.97, as with blue_sky, PSNR differed (x265 CRF 22: ultrafast 39.159 dB, medium 41.139 dB, slow 41.892 dB; but file sizes also differed, 5.7, 7.9 and 9.6 MB, so this is not a same-condition comparison). If how close the archive is to the original matters, do not judge by VMAF alone; check PSNR or look at it with your own eyes.
- File size at VMAF 97, 98 and 99 is an interpolation with log-scale straight lines between 4 CRF points. The points are sparse (in places file size differs 2–3x between neighboring points), and the error grows if the curve is not a straight line. The 99 column and the rush_hour x265 cells are especially uncertain. Cells that could not be interpolated because of saturation are given only as lower or upper bounds.
- We measured only three presets per codec. Intermediate and slower presets such as fast, slow and veryslow were not measured (the mid-quality range in the x264 preset test and the x265 preset test fills some of this in). Also, the "slow side" is named slower for x264 and slow for x265, so we cannot say whether the two codecs' slow presets represent the same level of effort.
- 8-bit yuv420p, one PC, one measurement. We did not repeat runs to estimate error, and elapsed time fluctuates because of IDLE priority. The time multiples are based on CPU time (utime) and are for reference (multi-core utilization test). They assume 4 threads, so actual time differs on a PC with more or fewer cores.
- We did not evaluate visual quality. The same VMAF does not mean the video looks the same to a person.
Practical recommendations
- For archival encodes, it is better to avoid ultrafast. In every combination we could compare, file size at the same VMAF was larger than medium, from +8% (rush_hour x264, VMAF 98) to +107% (pedestrian_area x264). For a file you make once and keep for a long time, the space it permanently occupies outlasts the several-fold extra encoding time. If you are in a big hurry, or the file is an intermediate you will delete soon, a different call is right.
- Medium → slower (slow) depends on the footage. On clips with motion and detail (pedestrian_area, rush_hour), at VMAF 98 x264 was 10–19% smaller and x265 was 23–45% smaller. CPU time was about 3x for x264 and about 1.7–2.4x for x265. On the easy video (blue_sky), the benefit did not show up in this metric. For long-term storage where size matters, a slower preset is worth trying; if you are short on time, for some videos you lose little by stopping at medium.
- When choosing a preset, match VMAF or file size, not the CRF number. At the same CRF 20 on x264 pedestrian_area, ultrafast gave VMAF 99.409 (23,621,848 B) and medium gave 98.753 (9,774,893 B): ultrafast has the higher VMAF but 2.4x the size. Matching only CRF creates this kind of illusion.
- First check what kind of footage you have, using a short segment. Get a starting point with the CRF recommender, then encode 10 seconds of representative footage with medium and one step slower so that VMAF matches, and compare file sizes. By the results in this article, the savings range from the 10% level to the 40% level depending on the footage. Also, check beforehand whether the devices that will play the archive support the codec, using the codec support checker.
- "Lossless CRF 0 archiving" and the range in this article are different stories. For the cost of lossless archiving, see the lossless CRF 0 test; for the ceiling of slow presets, see the slowest presets test.
The full raw data can be downloaded from the CSV at the bottom of the page. You can recompute the ratios and differences in the tables yourself from size_bytes, vmaf_mean, vmaf_p5 and utime_s in the CSV.
Raw data: archive-quality-preset-cost-v1.csv