Do You Need x264 slow? Raising One Option on medium (ref, me, subme, trellis): File Size Savings vs Encoding Time
We encoded four 10-second 1080p25 clips with x264 medium, x264 slow, and six variants that raise just one medium option to a slow-level value (ref=5, me=umh, subme=9, trellis=2, rc-lookahead=60, aq-mode=3), at CRF 22, 30 and 38. At the same CRF, slow's file size differed by −13.3% to +3.0% and CPU time rose by +24.3% to +108.1%. Matched to the same VMAF (the score of medium at CRF 30), slow's gain was much smaller, −0.3% to −3.9%. Among the single options, only ref=5 gave smaller files on all four clips (−0.1% to −0.6%), but the gain was small.
The test PC, FFmpeg and VMAF settings shared by every lab article are collected on the methodology page. Methodology (common to all tests)
Raising a single option on medium could not catch up with slow's gain. Even slow itself saved only −0.3% to −3.9% at the same VMAF, and any single option saved less than that. At CRF 30, the 4-clip average CPU time was +49.5% for slow, +15.6% for ref=5 and +11.9% for trellis=2. Looking only at the same CRF, trellis=2 seems to shrink files about as much as slow (pedestrian_area and rush_hour at CRF 30: −7.4% and −14.1%), but VMAF dropped along with it (−1.00 and −2.10 points), and matched to the same VMAF the change was −0.4% and +1.1%. subme=9 and aq-mode=3 actually produced larger files at the same VMAF (aq-mode=3 on pedestrian_area, riverbed and rush_hour: +5.1%, +5.4% and +5.0%), and me=umh and rc-lookahead=60 showed practically no gain.
Why this matters
It is well known that -preset slow makes x264 take much longer, but a preset changes several options at once (ref, me, subme, trellis, rc-lookahead and others), so comparing presets can't tell you which option shrinks the file and which one just burns time. That leads to the obvious question: if slow's time cost is too much, can't you just raise ref on medium, or just trellis? The time and size of whole preset bundles are covered in x264 preset speed tested and preset vs CRF at the same file size. This article looks inside the bundle, at what each option contributes on its own.
A matching VMAF or PSNR score doesn't mean the video looks the same. Options like trellis and aq-mode are known to be aimed at how the video looks rather than at scores, so "the file was larger at the same VMAF" here means "a loss by the score", not "it looks worse to the eye." This article did no side-by-side viewing and measured only VMAF against the source.
How we measured
VMAF is a quality metric developed by Netflix. It compares the source and the encoded result frame by frame and scores them from 0 to 100. The "mean" is the average of all frame scores, and the "5th percentile" is the value at the point where the lowest 5% of frames sit, so it looks at the worst scenes.
Options and encoder settings
The baseline is x264 medium (ref=3, me=hex, subme=7, trellis=1, rc-lookahead=40, aq-mode=2), and slow is ref=5, me=umh, subme=8, trellis=2, rc-lookahead=50. The other six change just one option from medium. Of those, subme=9 and aq-mode=3 are not values slow uses (slow's subme is 8, and its aq-mode is 2, the same as medium). rc-lookahead=60 is also higher than slow's 50. So these three variants are not "raised to slow level" but go one step further. The variant names are the medium+tag entries in the CSV's preset column.
Input and output paths omitted. Q was replaced with 22, 30 and 38 in turn.
How we compared at the same VMAF (interpolation)
At the same CRF, file size and score both change, so you can't separate out the "gain." So for each variant we separately worked out the file size at the score of the baseline (medium) at CRF 30. Starting from the variant's CRF 30 point, we picked the neighboring point (CRF 22 or 38) on the side of the target score, assumed the log of file size is a straight line against score, and extended along it. This is only trustworthy when the target isn't far from the variant's CRF 30 score. The values were computed by hand, so we report them to one decimal place only. With just three CRF points, there is some error.
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 ReadMe_1080p.txt that comes with them states "Restrictions of use: No restrictions" and "Copyright: No Copyright" (checked 2026-11-08).
Per-clip results (raw data)
In each curve the horizontal axis is bitrate and the vertical axis is VMAF. The baseline, slow and the six variants are on one chart, and the table has file size, VMAF (mean, 5th percentile, minimum) and time for every CRF. blue_sky saturates at VMAF 99.97 at CRF 22, so the score is the same whatever the settings, and in that cell you can only compare file size. Speed was measured under IDLE priority and wobbles, so treat it as a rough guide.
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 medium | 22 | 6,348.8 kbps | 99.98 | 100.00 | 40.24 | 23.69 | 28.8 |
| x264 (H.264) · preset medium | 30 | 1,916.7 kbps | 98.22 | 93.78 | 36.15 | 38.65 | 19.3 |
| x264 (H.264) · preset medium | 38 | 788.4 kbps | 76.26 | 68.30 | 31.30 | 49.7 | 15.4 |
| x264 (H.264) · preset slow | 22 | 6,242.8 kbps | 99.98 | 100.00 | 40.23 | 13.04 | 46.0 |
| x264 (H.264) · preset medium+ref5 | 22 | 6,348.4 kbps | 99.98 | 100.00 | 40.24 | 22.27 | 31.6 |
| x264 (H.264) · preset medium+umh | 22 | 6,345.3 kbps | 99.98 | 100.00 | 40.24 | 20.5 | 34.3 |
| x264 (H.264) · preset medium+subme9 | 22 | 6,438.7 kbps | 99.98 | 100.00 | 40.21 | 19 | 40.0 |
| x264 (H.264) · preset medium+trel2 | 22 | 6,131.2 kbps | 99.98 | 100.00 | 40.21 | 18.55 | 36.4 |
| x264 (H.264) · preset medium+la60 | 22 | 6,412.8 kbps | 99.98 | 100.00 | 40.27 | 23.04 | 28.8 |
| x264 (H.264) · preset medium+aq3 | 22 | 5,945.2 kbps | 99.97 | 100.00 | 39.72 | 23.7 | 29.5 |
| x264 (H.264) · preset slow | 30 | 1,882.7 kbps | 98.31 | 94.25 | 36.19 | 22.9 | 28.1 |
| x264 (H.264) · preset medium+ref5 | 30 | 1,915.8 kbps | 98.23 | 93.86 | 36.15 | 35.42 | 21.4 |
| x264 (H.264) · preset medium+umh | 30 | 1,913.2 kbps | 98.24 | 93.96 | 36.14 | 31.52 | 24.4 |
| x264 (H.264) · preset medium+subme9 | 30 | 1,959.2 kbps | 98.41 | 94.29 | 36.12 | 30.98 | 25.4 |
| x264 (H.264) · preset medium+trel2 | 30 | 1,845.8 kbps | 98.08 | 93.62 | 36.12 | 32.1 | 22.3 |
| x264 (H.264) · preset medium+la60 | 30 | 1,931.8 kbps | 98.31 | 94.13 | 36.20 | 35.71 | 19.3 |
| x264 (H.264) · preset medium+aq3 | 30 | 1,780.4 kbps | 96.59 | 89.55 | 35.53 | 38.83 | 19.5 |
| x264 (H.264) · preset slow | 38 | 767 kbps | 75.94 | 69.96 | 31.20 | 36.04 | 20.3 |
| x264 (H.264) · preset medium+ref5 | 38 | 782.9 kbps | 76.18 | 68.12 | 31.30 | 47.69 | 16.4 |
| x264 (H.264) · preset medium+umh | 38 | 780.8 kbps | 76.33 | 68.50 | 31.30 | 42.92 | 20.0 |
| x264 (H.264) · preset medium+subme9 | 38 | 803.6 kbps | 76.72 | 69.23 | 31.16 | 43.58 | 19.5 |
| x264 (H.264) · preset medium+trel2 | 38 | 755.7 kbps | 74.73 | 68.49 | 31.18 | 47.06 | 16.6 |
| x264 (H.264) · preset medium+la60 | 38 | 789.2 kbps | 76.59 | 68.42 | 31.36 | 45.49 | 15.6 |
| x264 (H.264) · preset medium+aq3 | 38 | 742.3 kbps | 71.79 | 57.81 | 30.65 | 50.89 | 15.3 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 22 | 5,449.7 kbps | 97.51 | 94.43 | 41.05 | 20.93 | 37.0 |
| x264 (H.264) · preset medium | 30 | 1,981.2 kbps | 84.21 | 81.33 | 37.85 | 34.64 | 25.8 |
| x264 (H.264) · preset medium | 38 | 861.7 kbps | 57.08 | 54.27 | 33.94 | 44.69 | 19.8 |
| x264 (H.264) · preset slow | 22 | 5,356.4 kbps | 97.78 | 94.64 | 40.97 | 11.11 | 57.3 |
| x264 (H.264) · preset medium+ref5 | 22 | 5,403.8 kbps | 97.53 | 94.47 | 41.06 | 18.37 | 41.7 |
| x264 (H.264) · preset medium+umh | 22 | 5,450.4 kbps | 97.53 | 94.44 | 41.04 | 16.85 | 46.8 |
| x264 (H.264) · preset medium+subme9 | 22 | 5,650.2 kbps | 97.68 | 94.61 | 40.99 | 15.86 | 52.6 |
| x264 (H.264) · preset medium+trel2 | 22 | 5,239.1 kbps | 97.56 | 94.44 | 41.00 | 17.23 | 45.3 |
| x264 (H.264) · preset medium+la60 | 22 | 5,453.5 kbps | 97.52 | 94.51 | 41.05 | 20.13 | 37.9 |
| x264 (H.264) · preset medium+aq3 | 22 | 6,262 kbps | 97.90 | 94.94 | 41.25 | 19.43 | 39.5 |
| x264 (H.264) · preset slow | 30 | 1,856.2 kbps | 83.87 | 80.92 | 37.64 | 21.56 | 35.1 |
| x264 (H.264) · preset medium+ref5 | 30 | 1,970.7 kbps | 84.16 | 81.37 | 37.85 | 29.77 | 29.0 |
| x264 (H.264) · preset medium+umh | 30 | 1,986.9 kbps | 84.25 | 81.50 | 37.87 | 26.82 | 33.1 |
| x264 (H.264) · preset medium+subme9 | 30 | 2,029.3 kbps | 84.74 | 82.16 | 37.79 | 26.03 | 34.8 |
| x264 (H.264) · preset medium+trel2 | 30 | 1,834 kbps | 83.21 | 80.18 | 37.69 | 31.92 | 28.8 |
| x264 (H.264) · preset medium+la60 | 30 | 1,980.1 kbps | 84.26 | 81.54 | 37.85 | 32.67 | 26.0 |
| x264 (H.264) · preset medium+aq3 | 30 | 2,159.9 kbps | 85.36 | 82.53 | 38.12 | 33.28 | 27.0 |
| x264 (H.264) · preset slow | 38 | 783.5 kbps | 55.70 | 52.81 | 33.63 | 34.07 | 24.7 |
| x264 (H.264) · preset medium+ref5 | 38 | 856.4 kbps | 57.04 | 54.50 | 33.92 | 40.66 | 21.7 |
| x264 (H.264) · preset medium+umh | 38 | 868.2 kbps | 57.76 | 55.05 | 34.02 | 34.97 | 25.5 |
| x264 (H.264) · preset medium+subme9 | 38 | 892.6 kbps | 58.40 | 55.73 | 33.91 | 36.31 | 24.0 |
| x264 (H.264) · preset medium+trel2 | 38 | 778.9 kbps | 55.13 | 51.51 | 33.66 | 42.42 | 21.6 |
| x264 (H.264) · preset medium+la60 | 38 | 863.5 kbps | 56.78 | 53.91 | 33.93 | 41.71 | 20.3 |
| x264 (H.264) · preset medium+aq3 | 38 | 929.2 kbps | 58.92 | 56.19 | 34.22 | 44.23 | 19.9 |
riverbed — riverbed (small ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 22 | 23,396.4 kbps | 99.94 | 100.00 | 38.69 | 12.98 | 80.3 |
| x264 (H.264) · preset medium | 30 | 9,188.1 kbps | 81.34 | 79.28 | 34.26 | 16.86 | 62.2 |
| x264 (H.264) · preset medium | 38 | 3,423.6 kbps | 43.12 | 39.89 | 29.57 | 21.56 | 39.0 |
| x264 (H.264) · preset slow | 22 | 24,108.3 kbps | 99.95 | 100.00 | 38.71 | 5.91 | 167.0 |
| x264 (H.264) · preset medium+ref5 | 22 | 23,350.3 kbps | 99.94 | 100.00 | 38.68 | 10.39 | 99.1 |
| x264 (H.264) · preset medium+umh | 22 | 23,411.4 kbps | 99.94 | 100.00 | 38.65 | 9.73 | 105.3 |
| x264 (H.264) · preset medium+subme9 | 22 | 24,352.2 kbps | 99.95 | 100.00 | 38.75 | 9.37 | 109.1 |
| x264 (H.264) · preset medium+trel2 | 22 | 23,364.4 kbps | 99.95 | 100.00 | 38.70 | 10.73 | 95.8 |
| x264 (H.264) · preset medium+la60 | 22 | 23,397.9 kbps | 99.94 | 100.00 | 38.69 | 12.46 | 80.5 |
| x264 (H.264) · preset medium+aq3 | 22 | 25,429.4 kbps | 99.95 | 100.00 | 38.91 | 12.84 | 80.9 |
| x264 (H.264) · preset slow | 30 | 9,371.5 kbps | 83.05 | 80.02 | 34.18 | 8.85 | 112.4 |
| x264 (H.264) · preset medium+ref5 | 30 | 9,173.5 kbps | 81.37 | 79.24 | 34.27 | 13.23 | 78.9 |
| x264 (H.264) · preset medium+umh | 30 | 9,240.7 kbps | 81.23 | 79.02 | 34.23 | 12.03 | 85.7 |
| x264 (H.264) · preset medium+subme9 | 30 | 9,456.7 kbps | 82.62 | 80.40 | 34.28 | 12.7 | 81.4 |
| x264 (H.264) · preset medium+trel2 | 30 | 9,135 kbps | 81.45 | 79.02 | 34.19 | 15.18 | 68.7 |
| x264 (H.264) · preset medium+la60 | 30 | 9,186.2 kbps | 81.35 | 79.30 | 34.27 | 15.99 | 62.5 |
| x264 (H.264) · preset medium+aq3 | 30 | 9,946.7 kbps | 82.42 | 80.55 | 34.45 | 16.33 | 63.9 |
| x264 (H.264) · preset slow | 38 | 3,113.7 kbps | 41.31 | 37.86 | 29.15 | 15.61 | 64.8 |
| x264 (H.264) · preset medium+ref5 | 38 | 3,409.2 kbps | 43.25 | 40.31 | 29.60 | 19.64 | 52.3 |
| x264 (H.264) · preset medium+umh | 38 | 3,587 kbps | 44.28 | 41.27 | 29.79 | 17.43 | 59.9 |
| x264 (H.264) · preset medium+subme9 | 38 | 3,428.8 kbps | 43.84 | 40.34 | 29.53 | 20.28 | 48.6 |
| x264 (H.264) · preset medium+trel2 | 38 | 3,165.2 kbps | 41.19 | 37.89 | 29.23 | 21.22 | 41.3 |
| x264 (H.264) · preset medium+la60 | 38 | 3,424.9 kbps | 43.13 | 40.28 | 29.57 | 20.26 | 39.4 |
| x264 (H.264) · preset medium+aq3 | 38 | 3,762.4 kbps | 43.62 | 40.22 | 29.78 | 21.41 | 40.9 |
rush_hour — rush-hour road
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 22 | 5,294.4 kbps | 93.69 | 91.91 | 41.58 | 20.92 | 41.2 |
| x264 (H.264) · preset medium | 30 | 1,778.7 kbps | 80.57 | 77.94 | 39.10 | 35.88 | 25.7 |
| x264 (H.264) · preset medium | 38 | 685.6 kbps | 56.42 | 52.75 | 35.42 | 45.99 | 17.5 |
| x264 (H.264) · preset slow | 22 | 5,065.1 kbps | 93.82 | 91.92 | 41.47 | 10.84 | 62.5 |
| x264 (H.264) · preset medium+ref5 | 22 | 5,281 kbps | 93.74 | 92.03 | 41.60 | 18.49 | 45.1 |
| x264 (H.264) · preset medium+umh | 22 | 5,306.7 kbps | 93.71 | 92.03 | 41.59 | 17.11 | 50.3 |
| x264 (H.264) · preset medium+subme9 | 22 | 5,484.9 kbps | 93.87 | 92.19 | 41.53 | 15.24 | 60.3 |
| x264 (H.264) · preset medium+trel2 | 22 | 4,935 kbps | 93.58 | 91.78 | 41.50 | 17.53 | 49.7 |
| x264 (H.264) · preset medium+la60 | 22 | 5,293.3 kbps | 93.68 | 92.04 | 41.58 | 20.17 | 41.8 |
| x264 (H.264) · preset medium+aq3 | 22 | 6,219.4 kbps | 94.21 | 92.62 | 41.73 | 18.92 | 44.5 |
| x264 (H.264) · preset slow | 30 | 1,544 kbps | 78.82 | 75.84 | 38.75 | 22.71 | 34.8 |
| x264 (H.264) · preset medium+ref5 | 30 | 1,777.2 kbps | 80.69 | 77.98 | 39.13 | 31.25 | 28.8 |
| x264 (H.264) · preset medium+umh | 30 | 1,782.5 kbps | 80.68 | 78.05 | 39.13 | 28.3 | 31.4 |
| x264 (H.264) · preset medium+subme9 | 30 | 1,797.9 kbps | 80.73 | 78.09 | 39.01 | 25.1 | 34.8 |
| x264 (H.264) · preset medium+trel2 | 30 | 1,527.4 kbps | 78.47 | 75.54 | 38.77 | 33.05 | 28.3 |
| x264 (H.264) · preset medium+la60 | 30 | 1,778.3 kbps | 80.60 | 78.11 | 39.10 | 32.09 | 26.7 |
| x264 (H.264) · preset medium+aq3 | 30 | 1,962.5 kbps | 81.78 | 79.13 | 39.34 | 34.12 | 26.5 |
| x264 (H.264) · preset slow | 38 | 594.2 kbps | 52.73 | 48.35 | 34.90 | 39.56 | 22.7 |
| x264 (H.264) · preset medium+ref5 | 38 | 681.9 kbps | 56.49 | 52.83 | 35.44 | 44.99 | 19.5 |
| x264 (H.264) · preset medium+umh | 38 | 686.9 kbps | 56.98 | 53.20 | 35.55 | 40.98 | 22.3 |
| x264 (H.264) · preset medium+subme9 | 38 | 701.6 kbps | 56.70 | 53.06 | 35.34 | 40.26 | 22.2 |
| x264 (H.264) · preset medium+trel2 | 38 | 603.8 kbps | 52.82 | 48.64 | 34.93 | 44.72 | 19.3 |
| x264 (H.264) · preset medium+la60 | 38 | 686 kbps | 56.63 | 52.92 | 35.41 | 41.05 | 18.9 |
| x264 (H.264) · preset medium+aq3 | 38 | 754.1 kbps | 58.42 | 54.65 | 35.76 | 44.98 | 18.4 |
How to read it, and what we see
1. At the same CRF: how much does slow save, and how much time does it cost?
Each cell in the table below is "variant − baseline (medium)" on the same clip at the same CRF. Each cell reads: file size change / mean VMAF change / utime change.
Differences taken from the CSV, against the baseline (x264 medium) on the same clip at the same CRF. Each cell reads: file size change / mean VMAF change / encoding CPU time (utime) change.
- At the same CRF, slow often shrank the file, but not always. The file got smaller in 10 of the 12 cells (−1.67% to −13.33%), while riverbed at CRF 22 and 30 got larger (+3.04% and +2.00%). In those two cells VMAF also went up (+0.01 and +1.71).
- In many of the cells that shrank, the score dropped too. rush_hour shrank by −13.19% and −13.33% at CRF 30 and 38, but mean VMAF fell by −1.75 and −3.69 points, and pedestrian_area at CRF 38 was −9.08% with −1.38 points. So the same-CRF size comparison alone can't show slow's "pure gain." We look again in section 2 with the scores matched.
- Time went up in all 12 cells. From +24.3% to +108.1%. riverbed, the hardest clip, rose the most (+66.1% to +108.1%), and the percentage increase in time was larger at lower CRF (higher quality).
2. At the same VMAF: file size for slow and for each single option
This is how many percent the file size, matched to the score of baseline medium at CRF 30, differed from the baseline (see the interpolation method above). The table below shows the result, and the rightmost column is the 4-clip average utime increase at CRF 30.
Change in file size, relative to the baseline, at the score of baseline medium at CRF 30 (interpolated values). Negative means a smaller file. For blue_sky, trellis=2 and aq-mode=3 were extended from the saturated 99.98-point CRF 22 point, so they are hard to trust. Average time is the 4-clip average computed from utime_s in the CSV.
- slow's same-VMAF gain was −0.3% to −3.9%, averaging −2.2% over the 4 clips. rush_hour, which looked like −13% at the same CRF, was only −0.3% once the scores were matched. That means most of the big same-CRF reduction was paid for with a lower score. This is a straight-line interpolation near the CRF 30 point, so for differences within ±1%, look at the direction only.
- Only ref=5 was smaller on all 4 clips. −0.1% to −0.6% (average −0.3%). CRF 30 time rose by +11.0% to +27.0% (average +15.6%). The gain is about one-eighth of slow's gain (average −2.2%). In the same-CRF table too, ref=5's file size change was small in all 12 cells (−0.01% to −0.84%) and the VMAF change was small (−0.08 to +0.13).
- At the same CRF, trellis=2 looks like slow. At CRF 38, pedestrian_area, rush_hour and riverbed shrank by −9.61%, −11.93% and −7.55%, but the score also fell by −1.95, −3.61 and −1.93 points. Matched to the same VMAF, the gain nearly vanished: −0.4%, +1.1% and −0.9%. Still, its time was +11.9% on average at CRF 30, about a quarter of slow's (+49.5%), so it is true that it is the cheapest way to cut file size sharply at the same CRF. But the score goes down by the same token.
- me=umh and subme=9 gave no gain for the time. me=umh went either way at the same VMAF (from +1.1% to −0.2%) with time +28.8%, and subme=9 ranged from −0.5% to +1.4% with time +33.2%. At the same CRF, subme=9 made the file larger in all 12 cells (+0.15% to +4.09%), and mean VMAF was the same or higher in all 12 cells (0.00 to +1.32 points).
- rc-lookahead=60 did almost nothing. At the same CRF, file size changed by −0.05% to +1.01%, mean VMAF changed by −0.30 to +0.34 points, and time rose by +0.1% to +8.2%. Because the clips are only 10 seconds (250 frames), looking far ahead may have had little to work with, but this experiment did not check that separately.
- aq-mode=3 raised the score at the cost of larger files. On pedestrian_area, riverbed and rush_hour, file size grew by +7.83% to +17.47% at the same CRF while the score went up or stayed the same (+0.00 to +2.00), and even matched to the same VMAF the files were +5.0% to +5.4% larger. Time barely increased (−0.7% to +7.9%). blue_sky went the other way: the file shrank by −5.85% to −7.11% while mean VMAF fell by −1.63 and −4.46 points at CRF 30 and 38.
3. Same-CRF comparison tables, option by option
Differences taken from the CSV, against the baseline (x264 medium) on the same clip at the same CRF. Each cell reads: file size change / mean VMAF change / encoding CPU time (utime) change.
Differences taken from the CSV, against the baseline (x264 medium) on the same clip at the same CRF. Each cell reads: file size change / mean VMAF change / encoding CPU time (utime) change.
Differences taken from the CSV, against the baseline (x264 medium) on the same clip at the same CRF. Each cell reads: file size change / mean VMAF change / encoding CPU time (utime) change.
Differences taken from the CSV, against the baseline (x264 medium) on the same clip at the same CRF. Each cell reads: file size change / mean VMAF change / encoding CPU time (utime) change.
Differences taken from the CSV, against the baseline (x264 medium) on the same clip at the same CRF. Each cell reads: file size change / mean VMAF change / encoding CPU time (utime) change.
Differences taken from the CSV, against the baseline (x264 medium) on the same clip at the same CRF. Each cell reads: file size change / mean VMAF change / encoding CPU time (utime) change.
4. 5th percentile VMAF (the worst scenes)
aq-mode=3 is known as an option that protects dark scenes more, so we look at the 5th percentile separately. Below is the change in 5th-percentile VMAF against the baseline (medium); each cell is CRF 30 / CRF 38. We left out CRF 22, because the baseline and nearly all variants are 100.0 there.
Difference in vmaf_p5 in the CSV (variant − medium). Each cell is CRF 30 / CRF 38. Higher scores are better.
- aq-mode=3 dropped the 5th percentile sharply on blue_sky. At CRF 30 it went from 93.780 to 89.553 (−4.23), and at CRF 38 from 68.302 to 57.814 (−10.49). On the other 3 clips the same option raised it by +0.34 to +1.92. blue_sky is not a dark clip but a bright-sky clip, and this experiment could not confirm why the results split this way.
- The 5th percentile moved together for slow and trellis=2. At rush_hour CRF 38, slow was −4.40 and trellis=2 was −4.11, and at pedestrian_area CRF 38 they were −1.47 and −2.76. With both settings the mean and the 5th percentile fell together, so it was not a case of sacrificing only the worst scenes.
- ref=5 and rc-lookahead=60 also changed the 5th percentile only a little. All 16 values for each of the two options (4 clips × 2 CRF steps, over the 2 options) fell between −0.36 and +0.42.
5. Do the option effects add up to slow?
You shouldn't simply add up the option effects and compare that with slow. This experiment changed only one option at a time and did not measure any combination of two or more. Whether the effects add up or cancel out when stacked is not in the data. For reference, at the same VMAF, as 4-clip averages, slow was −2.2%, ref=5 −0.3%, me=umh +0.2%, subme=9 +0.5% and rc-lookahead=60 0.0% (trellis=2 averaged −0.1% over 3 clips, leaving out blue_sky's saturated point). The sum of the individual effects falls far short of slow's gain, so slow's gain may come from these options stacking or from other settings this article didn't measure. This data can't tell us which.
6. Differences between clips
- riverbed (ripples) had the biggest time increases. For many options, riverbed was the clip with the largest time increase (ref=5 at CRF 38 +34.0%, me=umh at CRF 38 +53.7%, slow at CRF 22 +108.1%). The harder the video, the heavier the time cost of the search options.
- On blue_sky, the CRF 22 comparison is meaningless because of saturation. At CRF 22, the mean VMAF of the baseline, slow, ref=5, me=umh, subme=9, trellis=2, la60 and aq-mode=3 was the same at 99.975 to 99.977, yet file size differed from 7.43 MB to 8.05 MB. There is no room for the score to go up in this range.
- slow's same-VMAF gain was largest on pedestrian_area (−3.9%) and smallest on rush_hour (−0.3%). At the same CRF it is the exact opposite, with rush_hour shrinking the most (−13.3%). If you compare slow's effect across clips by same-CRF file size alone, the order flips.
Limitations
- Scores are not visible quality. We did not compare by eye. Some people say trellis and aq-mode look better even when they hurt the score, and this experiment can neither verify nor refute that claim.
- The same-VMAF file sizes are hand-interpolated. With only three CRF points (22, 30, 38), we drew straight lines across stretches where the score gap is wide (for example, the baseline on pedestrian_area is 13.3 points between CRF 22 and 30, and 27.1 points between 30 and 38). In particular, blue_sky's CRF 30 score is in the 98s, close to the saturated range, so the interpolated values for trellis=2 and aq-mode=3 are hard to trust. For differences within 1%, look at the direction only.
- We changed only one option at a time. Combinations of two or more (for example, ref=5 + trellis=2) were not measured. Each option was also tried at only one value, so intermediate values like ref=4 or subme=8 are unknown.
- Only four 10-second clips. They differ in character (scenery, city, ripples), but animation, screen recordings, dark video and film-grain footage are missing.
- 8-bit yuv420p, 4 threads per job, one PC, one measurement run. Time wobbles under IDLE priority, so we compared by utime, and it is a rough guide. With a different thread count, the percentage increase in time could differ too.
What to do in practice
- If you use medium and can spend a little more time, ref=5 was the safest pick in this data. The same-VMAF file size was smaller on all 4 clips, but the gain was −0.1% to −0.6%. The gain is small for +15.6% time (CRF 30 average), so don't expect much.
- To shrink files meaningfully, raising the CRF or the preset works better than one option. Even slow's same-VMAF gain was −0.3% to −3.9%. For the return on time invested at the same size and score, read this with time doubling vs file size savings and the CRF step size rule.
- Don't choose an option based only on the file size reduction at the same CRF. trellis=2 and slow cut file size by up to −14% at the same CRF, but VMAF also dropped by around 2 points. Compare with file size and score matched together. For interpreting scores, see the VMAF score interpreter tool and VMAF 5th percentile tested.
- me=umh and subme=9 cost +28.8% and +33.2% time and gave no gain. rc-lookahead=60 barely adds time, but gave no file size gain either. aq-mode=3 raised both score and file size on pedestrian_area, riverbed and rush_hour (+5% larger at the same VMAF), and made blue_sky's 5th percentile much worse. We found no reason in this data to move off the defaults. For a similar question on x265's psy-rd and aq-mode, see x265 psy-rd and aq-mode tested.
- For what happens if you go to presets slower than slow, see the slowest presets ceiling test.
You can download the full raw data as a CSV at the very bottom of the page. The same-CRF differences can be recomputed directly from the size_bytes, vmaf_mean, vmaf_p5 and utime_s columns of the CSV.
Raw data: x264-medium-single-option-upgrade-v1.csv