Does x264/x265 -tune psnr or ssim Raise Your VMAF Score? Tested: PSNR, VMAF and File Size
We encoded four 10-second 1080p25 clips with x264 and x265 at the medium preset, at 3 CRF steps each, with no tune, psnr and ssim (plus stillimage for x264). x264 tune psnr raised PSNR in 11 of 12 cells (+0.109 to +1.886 dB; the other cell was −0.001) and raised mean VMAF in all 12 (+0.005 to +10.508 points). Interpolated to the same VMAF, x264 tune psnr gave smaller files in all 7 comparisons (−12.1% to −21.8%) and tune ssim in all 8 (−1.8% to −10.6%). x264 stillimage was larger in all 8 (+10.1% to +47.1%). With x265 tune psnr, PSNR and VMAF at the same CRF were lower in all 12 cells (PSNR −0.103 to −0.991 dB, VMAF −0.014 to −7.932 points), but files shrank by 1.7% to 35.3%, so at the same VMAF 6 of 7 comparisons were smaller (−0.4% to −16.2%). We did not check how the video looks to the eye.
The test PC, FFmpeg and VMAF settings shared by every lab article are collected on the methodology page. Methodology (common to all tests)
"Turn on a metric tune and your score goes up" held at the same CRF only for x264's psnr tune. With x265, the score at the same CRF actually went down. In exchange the files shrank even more, so matched to the same VMAF, the tunes were mostly a win. Interpolated to VMAF 90 and 80, the file size versus the default was −12.1% to −21.8% for x264 tune psnr (all 7 comparisons), −1.8% to −10.6% for x264 tune ssim (all 8), −0.4% to −16.2% for x265 tune psnr (6 of 7; only blue_sky at VMAF 90 was +0.6%) and −0.1% to −9.9% for x265 tune ssim (all 8). x264 stillimage lost in all 8 (+10.1% to +47.1%). These are results by score only; we did not measure how the video looks to the eye.
Why this matters
x264 and x265 have options such as -tune psnr and -tune ssim whose names point straight at a quality metric. According to the documentation, these turn off or reduce the psychovisual optimizations tuned for human eyes (psy-rd, adaptive quantization and so on) in order to push numbers like PSNR and SSIM higher. x264's stillimage is said to be meant for still-image content. So it is plausible that someone would turn these on just to inflate benchmark scores. But whether PSNR actually goes up at the same CRF, how VMAF (a different metric) and file size change, and whether matching to the same VMAF is a win or a loss can differ from video to video. This article covers only psnr, ssim and stillimage. film, grain, animation and the rest are in the x264 and x265 tune test, zerolatency is in the zerolatency test, and the same kind of experiment for SVT-AV1 is in the SVT-AV1 tune 0, 1, 2 test.
VMAF is a metric that imitates human vision, not human vision itself. We did not compare frames by eye to see whether turning off psy-rd smears texture or loses detail. Do not read "smaller at the same VMAF" as "the same quality."
How we measured
VMAF is a quality metric created by Netflix. It compares the original and the encoded result frame by frame and scores them from 0 to 100. The closer to 100, the harder it is to tell the encode from the original. The 5th percentile (p5) is the score at the worse 5% mark out of 250 frames. PSNR only counts how far pixel values differ from the original; higher means closer to the original.
Encoder settings
Q is 22, 30, 38 for x264 and 24, 32, 40 for x265. Input and output paths are omitted. The preset column in the CSV reads 'medium', 'medium+tpsnr', 'medium+tssim' and 'medium+tstill'. x265 has no stillimage tune, so we did not test it. The default rows are results with no tune specified.
How we compared at the same VMAF
When the tune changes, both quality and file size change at the same CRF, so a same-CRF comparison alone cannot tell you whether it is a win. So we also calculated the file size needed to reach the same VMAF (90 and 80). On each curve, we took the two adjacent points that bracket the target VMAF T (file sizes s1 > s2, mean VMAF v1 > v2), computed f = (v1 − T) ÷ (v1 − v2), and got the file size at that VMAF as size = s1 × (s2/s1)^f (log interpolation). We calculated only when the target fell inside the curve, and left out cases where the curve never reached that VMAF.
We did not encode to hit a VMAF target; we interpolated between 3 CRF points. Adjacent measurement points are 12 to 38 VMAF points apart (for example, riverbed x264 default goes from 81.3 to 43.1 between CRF 30 and 38), so the error is large, and there are no repeat runs. It is safer to treat a difference of a few percent as within the margin of error. For blue_sky (x264 CRF 22, x265 CRF 24) and riverbed (x264 CRF 22), VMAF is saturated at 99.9 or higher, so we did not interpret the VMAF differences (±0.0x) in those cells in the same-CRF comparison.
Test clip 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 says "Restrictions of use: No restrictions" and "Copyright: No Copyright" (checked 2026-11-08). At x264 default CRF 22, riverbed (lots of texture) is the largest at 29.2MB, and the other three are 6.6 to 7.9MB.
Results by clip (raw data)
In the curves, the horizontal axis is bitrate and the vertical axis is VMAF. The higher a curve sits at the same horizontal position, the higher the quality at the same bitrate. The times in the tables fluctuate because we ran under IDLE priority, so treat them 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.61 | 29.0 |
| x264 (H.264) · preset medium+tpsnr | 22 | 8,391.4 kbps | 99.98 | 100.00 | 41.70 | 24.32 | 25.3 |
| x264 (H.264) · preset medium+tssim | 22 | 4,753 kbps | 99.97 | 100.00 | 39.88 | 26.19 | 24.1 |
| x264 (H.264) · preset medium+tstill | 22 | 9,156.3 kbps | 99.97 | 100.00 | 39.82 | 20.49 | 34.4 |
| x264 (H.264) · preset medium | 30 | 1,916.7 kbps | 98.22 | 93.78 | 36.15 | 38.16 | 19.8 |
| x264 (H.264) · preset medium+tpsnr | 30 | 2,453.3 kbps | 99.76 | 98.53 | 37.98 | 36.7 | 17.7 |
| x264 (H.264) · preset medium+tssim | 30 | 1,548.9 kbps | 96.00 | 89.62 | 35.62 | 39.15 | 17.5 |
| x264 (H.264) · preset medium+tstill | 30 | 2,160.5 kbps | 97.89 | 93.34 | 35.77 | 36.36 | 20.7 |
| x264 (H.264) · preset medium | 38 | 788.4 kbps | 76.26 | 68.30 | 31.30 | 49.6 | 15.3 |
| x264 (H.264) · preset medium+tpsnr | 38 | 955.6 kbps | 86.76 | 81.08 | 33.19 | 48.41 | 13.4 |
| x264 (H.264) · preset medium+tssim | 38 | 639.4 kbps | 69.90 | 56.88 | 30.49 | 51.77 | 13.1 |
| x264 (H.264) · preset medium+tstill | 38 | 866.9 kbps | 74.77 | 65.97 | 30.93 | 49.06 | 16.3 |
| x265 (HEVC) · preset medium | 24 | 4,608.6 kbps | 99.97 | 100.00 | 40.32 | 20.61 | 48.6 |
| x265 (HEVC) · preset medium+tpsnr | 24 | 4,530.7 kbps | 99.96 | 100.00 | 40.20 | 21.52 | 46.7 |
| x265 (HEVC) · preset medium+tssim | 24 | 4,389.6 kbps | 99.96 | 100.00 | 40.15 | 22.39 | 44.3 |
| x265 (HEVC) · preset medium | 32 | 1,420.9 kbps | 95.76 | 88.56 | 36.36 | 30.66 | 31.8 |
| x265 (HEVC) · preset medium+tpsnr | 32 | 1,382.7 kbps | 95.00 | 87.24 | 36.25 | 31.53 | 30.8 |
| x265 (HEVC) · preset medium+tssim | 32 | 1,322.6 kbps | 94.69 | 86.67 | 36.15 | 32.16 | 30.0 |
| x265 (HEVC) · preset medium | 40 | 489.1 kbps | 75.05 | 66.21 | 31.74 | 37.83 | 25.0 |
| x265 (HEVC) · preset medium+tpsnr | 40 | 457.4 kbps | 73.97 | 64.96 | 31.57 | 39.83 | 24.5 |
| x265 (HEVC) · preset medium+tssim | 40 | 442.3 kbps | 73.00 | 64.14 | 31.45 | 39.16 | 24.0 |
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.89 | 37.5 |
| x264 (H.264) · preset medium+tpsnr | 22 | 4,600 kbps | 97.67 | 94.31 | 41.16 | 23.73 | 31.5 |
| x264 (H.264) · preset medium+tssim | 22 | 4,973.9 kbps | 97.39 | 94.19 | 41.27 | 21.47 | 33.7 |
| x264 (H.264) · preset medium+tstill | 22 | 8,462.1 kbps | 98.49 | 95.83 | 40.55 | 18.07 | 42.6 |
| x264 (H.264) · preset medium | 30 | 1,981.2 kbps | 84.21 | 81.33 | 37.85 | 34.27 | 26.3 |
| x264 (H.264) · preset medium+tpsnr | 30 | 1,681.6 kbps | 85.13 | 81.70 | 38.06 | 36.08 | 22.3 |
| x264 (H.264) · preset medium+tssim | 30 | 1,765.5 kbps | 83.92 | 80.87 | 38.07 | 34.64 | 23.4 |
| x264 (H.264) · preset medium+tstill | 30 | 2,349.3 kbps | 85.43 | 82.82 | 37.68 | 32.92 | 27.5 |
| x264 (H.264) · preset medium | 38 | 861.7 kbps | 57.08 | 54.27 | 33.94 | 44.25 | 19.8 |
| x264 (H.264) · preset medium+tpsnr | 38 | 734.3 kbps | 59.17 | 55.58 | 34.21 | 45.45 | 16.1 |
| x264 (H.264) · preset medium+tssim | 38 | 758.5 kbps | 55.39 | 52.10 | 34.02 | 44.36 | 16.9 |
| x264 (H.264) · preset medium+tstill | 38 | 995.1 kbps | 57.75 | 55.20 | 33.77 | 43.48 | 20.0 |
| x265 (HEVC) · preset medium | 24 | 3,176.6 kbps | 96.27 | 93.45 | 40.85 | 14.34 | 69.2 |
| x265 (HEVC) · preset medium+tpsnr | 24 | 2,083.9 kbps | 93.71 | 90.67 | 40.15 | 16.2 | 60.8 |
| x265 (HEVC) · preset medium+tssim | 24 | 2,672.2 kbps | 95.69 | 92.68 | 40.79 | 15.27 | 64.6 |
| x265 (HEVC) · preset medium | 32 | 1,164.4 kbps | 82.22 | 79.53 | 37.63 | 19.86 | 49.3 |
| x265 (HEVC) · preset medium+tpsnr | 32 | 800.5 kbps | 76.20 | 72.91 | 36.78 | 21.8 | 45.0 |
| x265 (HEVC) · preset medium+tssim | 32 | 992.7 kbps | 80.65 | 77.53 | 37.53 | 20.64 | 48.1 |
| x265 (HEVC) · preset medium | 40 | 443.3 kbps | 53.88 | 49.99 | 33.60 | 26.14 | 36.6 |
| x265 (HEVC) · preset medium+tpsnr | 40 | 326.8 kbps | 45.94 | 41.32 | 32.64 | 28.36 | 33.4 |
| x265 (HEVC) · preset medium+tssim | 40 | 407.1 kbps | 51.57 | 47.16 | 33.46 | 26.84 | 35.6 |
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.94 | 80.6 |
| x264 (H.264) · preset medium+tpsnr | 22 | 25,038 kbps | 99.96 | 100.00 | 39.73 | 13.28 | 78.5 |
| x264 (H.264) · preset medium+tssim | 22 | 23,510.5 kbps | 99.95 | 100.00 | 39.17 | 13.05 | 79.7 |
| x264 (H.264) · preset medium+tstill | 22 | 26,889.1 kbps | 99.95 | 100.00 | 37.69 | 12.66 | 81.6 |
| x264 (H.264) · preset medium | 30 | 9,188.1 kbps | 81.34 | 79.28 | 34.26 | 16.76 | 62.5 |
| x264 (H.264) · preset medium+tpsnr | 30 | 9,483.3 kbps | 88.05 | 84.68 | 35.45 | 16.97 | 61.6 |
| x264 (H.264) · preset medium+tssim | 30 | 8,875.9 kbps | 82.86 | 80.65 | 34.79 | 16.81 | 61.7 |
| x264 (H.264) · preset medium+tstill | 30 | 10,003.8 kbps | 80.89 | 78.95 | 33.49 | 16.53 | 63.2 |
| x264 (H.264) · preset medium | 38 | 3,423.6 kbps | 43.12 | 39.89 | 29.57 | 21.4 | 39.2 |
| x264 (H.264) · preset medium+tpsnr | 38 | 3,180.2 kbps | 50.63 | 46.23 | 30.61 | 21.72 | 38.4 |
| x264 (H.264) · preset medium+tssim | 38 | 2,907 kbps | 39.16 | 35.80 | 29.73 | 21.83 | 37.3 |
| x264 (H.264) · preset medium+tstill | 38 | 3,653.5 kbps | 42.63 | 38.77 | 29.11 | 21.48 | 39.8 |
| x265 (HEVC) · preset medium | 24 | 15,197.8 kbps | 97.00 | 93.72 | 37.69 | 4.44 | 221.0 |
| x265 (HEVC) · preset medium+tpsnr | 24 | 11,319.1 kbps | 93.83 | 89.03 | 37.10 | 4.89 | 200.6 |
| x265 (HEVC) · preset medium+tssim | 24 | 13,529.3 kbps | 96.61 | 93.20 | 37.75 | 4.6 | 212.8 |
| x265 (HEVC) · preset medium | 32 | 5,880.9 kbps | 71.63 | 66.24 | 33.45 | 6.51 | 150.2 |
| x265 (HEVC) · preset medium+tpsnr | 32 | 4,155 kbps | 65.45 | 58.73 | 32.90 | 7.05 | 139.6 |
| x265 (HEVC) · preset medium+tssim | 32 | 5,054.4 kbps | 70.01 | 64.34 | 33.53 | 6.57 | 149.9 |
| x265 (HEVC) · preset medium | 40 | 1,799.1 kbps | 38.37 | 33.28 | 29.16 | 10.46 | 94.0 |
| x265 (HEVC) · preset medium+tpsnr | 40 | 1,293.2 kbps | 33.84 | 28.47 | 28.70 | 12.26 | 80.1 |
| x265 (HEVC) · preset medium+tssim | 40 | 1,624.6 kbps | 36.44 | 31.31 | 29.30 | 11.26 | 87.3 |
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.8 | 41.1 |
| x264 (H.264) · preset medium+tpsnr | 22 | 4,339.2 kbps | 94.36 | 92.83 | 41.81 | 24.94 | 32.9 |
| x264 (H.264) · preset medium+tssim | 22 | 4,748.9 kbps | 93.67 | 91.82 | 41.81 | 22.35 | 35.3 |
| x264 (H.264) · preset medium+tstill | 22 | 9,619.2 kbps | 94.63 | 92.80 | 40.75 | 16.43 | 52.1 |
| x264 (H.264) · preset medium | 30 | 1,778.7 kbps | 80.57 | 77.94 | 39.10 | 35.61 | 25.5 |
| x264 (H.264) · preset medium+tpsnr | 30 | 1,517.5 kbps | 81.43 | 78.85 | 39.25 | 37.87 | 22.0 |
| x264 (H.264) · preset medium+tssim | 30 | 1,558 kbps | 80.06 | 76.72 | 39.28 | 35.85 | 22.6 |
| x264 (H.264) · preset medium+tstill | 30 | 2,069.8 kbps | 80.89 | 78.15 | 38.79 | 33.79 | 27.1 |
| x264 (H.264) · preset medium | 38 | 685.6 kbps | 56.42 | 52.75 | 35.42 | 45.44 | 17.8 |
| x264 (H.264) · preset medium+tpsnr | 38 | 573.2 kbps | 58.31 | 54.79 | 35.42 | 46.61 | 13.6 |
| x264 (H.264) · preset medium+tssim | 38 | 567.5 kbps | 54.90 | 50.58 | 35.43 | 46.46 | 13.6 |
| x264 (H.264) · preset medium+tstill | 38 | 791.2 kbps | 56.94 | 53.40 | 35.26 | 44.5 | 19.0 |
| x265 (HEVC) · preset medium | 24 | 2,938.9 kbps | 91.64 | 89.72 | 41.28 | 13.2 | 75.1 |
| x265 (HEVC) · preset medium+tpsnr | 24 | 1,902.8 kbps | 88.74 | 86.49 | 40.82 | 16.08 | 61.3 |
| x265 (HEVC) · preset medium+tssim | 24 | 2,541.6 kbps | 90.97 | 88.84 | 41.36 | 14.13 | 69.6 |
| x265 (HEVC) · preset medium | 32 | 917.1 kbps | 76.91 | 73.68 | 38.54 | 21.69 | 45.1 |
| x265 (HEVC) · preset medium+tpsnr | 32 | 608.6 kbps | 70.86 | 67.20 | 37.75 | 24.75 | 38.9 |
| x265 (HEVC) · preset medium+tssim | 32 | 785.2 kbps | 75.03 | 71.26 | 38.51 | 23.4 | 41.6 |
| x265 (HEVC) · preset medium | 40 | 270.9 kbps | 51.04 | 46.88 | 34.60 | 29.84 | 29.1 |
| x265 (HEVC) · preset medium+tpsnr | 40 | 198.9 kbps | 44.28 | 40.24 | 33.61 | 32.29 | 26.5 |
| x265 (HEVC) · preset medium+tssim | 40 | 251 kbps | 49.09 | 44.91 | 34.49 | 29.91 | 28.2 |
How to read it, and what we saw
1. PSNR at the same CRF: only x264's psnr tune raised it
psnr_y (luma) from the CSV minus the default row at the same CRF (dB).
psnr_y from the CSV minus the default row at the same CRF (dB).
- x264 tune psnr raised PSNR in 11 of 12 cells (+0.109 to +1.886 dB). The exception was rush_hour at CRF 38, at −0.001 dB. The gains were large on blue_sky (+1.458 to +1.886) and riverbed (+1.041 to +1.184) and small on pedestrian_area and rush_hour (+0.0 to +0.27 dB).
- x264 tune ssim raised PSNR in 9 of 12 cells, and the 3 blue_sky cells went down (−0.365 to −0.818 dB). stillimage went down in all 12 cells (−0.154 to −0.999 dB).
- With x265, tune psnr lowered PSNR in all 12 cells (−0.103 to −0.991 dB). tune ssim also lowered it in 8 of 12 cells, and the 4 cells that went up (3 riverbed cells, rush_hour CRF 24) rose only +0.064 to +0.137 dB. So a tune meant for scores ended up with lower PSNR. However, x265 tune psnr cut file size by 1.7% to 35.3% at the same CRF (section 3), so PSNR is lower in part because fewer bits were spent; we did not calculate file size at the same PSNR this time.
2. Mean VMAF at the same CRF
vmaf_mean from the CSV minus the default row at the same CRF (points). At CRF 22, blue_sky and riverbed have VMAF saturated at 99.9 or higher, so the difference is near 0.
vmaf_mean from the CSV minus the default row at the same CRF (points).
- x264 tune psnr raised mean VMAF in all 12 cells too (+0.005 to +10.508 points). That is the opposite of the hypothesis that a PSNR tune would lose on VMAF. The biggest gains were blue_sky CRF 38 (+10.508) and riverbed CRF 30 and 38 (+6.711 and +7.512). We could not tell the cause from this data (for example, how turning off psychovisual optimizations affects the score in this model).
- x264 tune ssim had VMAF equal or lower in 10 of 12 cells (−0.001 to −6.356 points). The only cells that went up were riverbed CRF 22 (+0.003, saturated) and CRF 30 (+1.520). stillimage split by video. pedestrian_area and rush_hour went up in all 6 cells (+0.319 to +1.219), while blue_sky and riverbed mostly went down (−0.333 to −1.488).
- With x265, both tune psnr and tune ssim lowered VMAF in all 24 cells (psnr −0.014 to −7.932, ssim −0.014 to −2.309 points). The drops with tune psnr were large on pedestrian_area, riverbed and rush_hour, at −2.557 to −7.932 points. In other words, x265's psnr and ssim tunes were not options that raise the score at the same CRF. You have to read this together with the file size change (section 3) to tell whether it is a win.
3. File size at the same CRF
size_bytes from the CSV. Change versus the default row at the same CRF (setting row ÷ default row − 1).
size_bytes from the CSV. Change versus the default row at the same CRF.
- At the same CRF, x264's file size moved in different directions depending on the tune. tune psnr made files smaller in 7 of 12 cells (−7.1% to −18.0%) and larger in 5 (+3.2% to +32.2%: all 3 blue_sky cells and 2 riverbed cells). tune ssim made files smaller in 11 of 12 cells (−3.4% to −25.1%; only riverbed CRF 22 was +0.5%). stillimage made files larger in all 12 cells (+6.7% to +81.7%). The increase was especially big at the low CRF (22) on rush_hour (+81.7%), pedestrian_area (+55.3%) and blue_sky (+44.2%), and shrank as CRF rose.
- With x265, both tune psnr and tune ssim made files smaller in all 24 cells. psnr by −1.7% to −35.3% and ssim by −4.8% to −15.9%. The reduction was large for tune psnr on pedestrian_area, riverbed and rush_hour (−25.5% to −35.3%) and small on blue_sky (−1.7% to −6.5%).
- The same CRF does not mean the same quality. To see how much VMAF dropped for the bytes saved, look at the same-VMAF comparison in the next section.
4. File size at the same VMAF: win or loss?
KB = 1,000 bytes. Log interpolation between two points on the curve at the same clip and the same target mean VMAF (method above). Difference = setting size ÷ default size − 1. The blue_sky tpsnr curve has a minimum of 86.764 and never reaches VMAF 80, so we left it out. The x264 default interpolation for rush_hour at VMAF 80 sits very close to the CRF 30 point (80.568).
Method and how to read it are the same as the x264 table above. The rush_hour tpsnr curve tops out at 88.738 and never reaches VMAF 90, so we left it out.
- x264 tune psnr gave smaller files at the same VMAF in all 7 comparisons we could calculate (−12.1% to −21.8%). blue_sky and riverbed, whose files got larger at the same CRF, were smaller once matched to the same VMAF (−12.1%, and −15.5% to −21.7%). That is because VMAF rose a lot at the same CRF.
- x264 tune ssim was also smaller in all 8, but by a narrower margin than tune psnr (−1.8% to −10.6%). stillimage was larger in all 8 (+10.1% to +47.1%). The biggest was rush_hour at VMAF 90, the lower-CRF side (+47.1%). The hypothesis that the loss is bigger for clips with more motion was not consistently confirmed by this data (at VMAF 80, all four clips were similar at +10.1% to +16.2%).
- x265 tune psnr was smaller in 6 of 7 (−0.4% to −16.2%). The exception was blue_sky at VMAF 90 (+0.6%); that clip is within ±1% in both comparisons, so there is effectively no difference. On pedestrian_area, riverbed and rush_hour, VMAF at the same CRF was 2.6 to 7.9 points lower, but files shrank by even more, so at the same VMAF it was a win of −6.9% to −16.2%. tune ssim was smaller in all 8 (−0.1% to −9.9%).
- The hypothesis that "score-oriented tunes only raise the score and are a loss in reality" did not fit this data. Even measured by VMAF, the psnr and ssim tunes were mostly a win, and stillimage was the only one confirmed as a loss. Whether that win is also a win to the eye is a separate question.
5. 5th-percentile VMAF (p5)
vmaf_p5 from the CSV minus the default row at the middle CRF (x264 30, x265 32) (points). We did not test stillimage on x265.
- The direction of change in the 5th percentile matched mean VMAF in all 12 cells. x264 tune psnr raised p5 on all 4 clips at this CRF (+0.379 to +5.399) and x265 lowered it on all of them. Looking at the hard scenes alone told no different story from the average.
- The p5 change was often larger than the change in the mean. For example, x265 riverbed tune psnr at CRF 32 dropped p5 by −7.509, more than the mean's −6.179. Conversely, x264 blue_sky tune ssim had a mean of −2.226 but p5 of −4.156. The hard scenes got worse by more than the average.
6. Encoding time: mostly lower, but it's a single measurement
utime_s (encoding CPU time) from the CSV, change versus the default at the lowest-CRF point (x264 22, x265 24). A single measurement with no repeats, run at IDLE priority, so a difference of a few percent is within the noise.
- x264 stillimage used more CPU time on all 4 clips at the lowest CRF (+1.3% to +26.7%). Files got larger and time got longer, so there is no reason in this data to pick stillimage.
- The psnr and ssim tunes mostly used less CPU time (−1.0% to −20.1%). This happens alongside the file size reduction, so it looks like a gain, but it is one measurement at one CRF, so it is hard to say how big it is.
Limitations
- We did not check how the video looks to the eye. Turning off psy-rd and the like can smear texture or lose detail, and VMAF may not fully reflect that. Conversely, a high VMAF does not guarantee it looks good to the eye. This article covers only scores and file size.
- We did not measure SSIM. tune ssim is an option aimed at SSIM, but we did not measure that metric. The metrics in this article are VMAF and luma PSNR.
- Only four 10-second clips, 8-bit, 1080p, one preset (medium), one PC, a single measurement. We did not get error bars from repeat runs. There is no evidence it holds for other presets, x264/x265 versions, resolutions or 10-bit. The x264 and x265 versions used are not recorded in the CSV or the environment info. We did not verify with this data which detailed options each tune actually changes; the explanations above are what is known from the documentation.
- The same-VMAF comparison is interpolated, and the target VMAF has only two values, 90 and 80. Because it connects between 3 CRF points, it is safer to treat differences of a few percent as within the margin of error. We left out comparisons where the curve did not reach the target.
- Time is CPU time and was run at IDLE priority, so treat it as a rough guide (see utime vs rtime).
Practical recommendations
- Don't use x264 stillimage for video. At the same VMAF it used +10.1% to +47.1% more bytes in all 8 comparisons, and CPU time went up too. It is safer to treat it as being for still images only, as the name says.
- x264's tune psnr and ssim were a win by score, so if you use them, compare a short segment by eye first. They were smaller by −1.8% to −21.8% at the same VMAF. But this data has no evidence that the score equals satisfaction to the eye. Look at hard scenes separately, as in the VMAF worst-frames test.
- Don't compare x265 at the same CRF. tune psnr and ssim cut file size and lowered VMAF in all 24 cells, so even where they look like a loss at the same CRF, they were a win when matched to the same VMAF (−0.1% to −16.2%, except blue_sky at VMAF 90, +0.6%). When you change the tune, you need to pick the CRF again. See the CRF recommender and the CRF by content type test.
- When you compare codecs or settings by score, match the tune and record it. Within the same codec, a single tune moved the file size at the same VMAF by −21.8% to +47.1%. If a metric tune is on for only one side, the comparison can be skewed. For how sensitive the metrics are to settings, see also a case where PSNR and VMAF disagree, a case where VMAF was inflated and the x265 psy-rd and aq-mode test.
You can download the full raw data as a CSV at the very bottom of the page. You can recompute the same-CRF changes from size_bytes, vmaf_mean, vmaf_p5 and psnr_y, the same-VMAF comparisons from vmaf_mean and size_bytes, and the times from utime_s.
Raw data: x26x-tune-psnr-ssim-metric-bias-v1.csv