x264 and x265 -tune Tested: film, grain, animation and fastdecode — How Much Do File Size and VMAF Change at the Same CRF?
We encoded four live-action 1080p25 10-second clips with x264 (CRF 20, 28, 36) and x265 (CRF 22, 30, 38) at preset medium, once with no tune and once each with film, grain, animation and fastdecode. At the same CRF, x264 grain made files +25.7 to +82.7% larger, x264 animation changed size by −22.4 to +4.4% depending on the clip (on live-action footage), and x264 film by +0.3 to +12.5%. Matched at the same VMAF, x264 film was essentially identical, grain was +1.6 to +4.4% larger, and animation was 8–15% smaller on 3 clips. fastdecode cut x265 decoding CPU time by 6–32%.
The test PC, FFmpeg and VMAF settings shared by every lab article are collected on the methodology page. Methodology (common to all tests)
A tune is not an option that 'gives better quality at the same CRF'. It moves you to a different position on the size–quality curve, and even when matched at the same VMAF, the effect differed by tune and by video. x264 film produced almost the same file size at the same VMAF (−0.4 to +0.2%), and grain was +1.6 to +4.4% larger (x265: +2.3 to +34.9%). Even on live-action clips, animation was −8.2 to −14.6% at the same VMAF on 3 clips with x264 and −1.1 to −9.0% on 3 clips with x265, but we could not confirm in this article whether that gain holds up in visible quality. fastdecode on x265 cost +0.1 to +4.6% in file size and brought decoding CPU time to 0.68–0.94×.
Why we wanted to know
x264 and x265 have options such as -tune film, grain, animation and fastdecode. In the community, opinions collide without numbers: 'use animation even on live action and the file gets smaller', 'no, it just wrecks the quality', 'grain is a must for footage with noise'. Our earlier measurements covered presets (x264 preset speed and size) and CRF (the CRF curve), but never tune. So we fixed the preset at medium, changed only the tune, and measured how file size, VMAF and time change.
All four clips were shot with a camera. The animation tune was designed for cartoons and anime, so what we looked at here is not 'the effect on animation' but 'the effect of using it on live action, by mistake or on purpose'. Also, VMAF is a computed score, not a human judgment, so it can under- or overestimate how a tune changes texture and noise (see 'Limitations' below).
How we measured
VMAF is a quality metric developed by Netflix. It compares the source and the encoded result frame by frame and scores each from 0 to 100; the closer to 100, the harder it is to tell the encode from the source. The 5th percentile (p5) is the score at the bad end: the point below which the worst 5% of the 250 frames fall.
Encoder settings
Input and output paths are omitted. By design, we did not run fastdecode on x264 or film on x265. x264 CRF 20/28/36 and x265 CRF 22/30/38 are pairs chosen to give similar quality levels based on our earlier experiments. A tuned setting does not give identical quality at the same CRF, so we compared file size twice: at the same CRF and at the same VMAF (below).
How we compared at the same VMAF
We took the mean VMAF of the baseline (no tune) CRF 28 point (x264) or CRF 30 point (x265) as the target. On the tuned setting's curve, we took the two adjacent measured points that bracket that VMAF (bitrates b1 > b2, mean VMAF v1 > v2), computed f = (v1 − T) ÷ (v1 − v2), and calculated bitrate = b1 × (b2/b1)^f (log-scale interpolation). The baseline side is an actual measured value, so it has no interpolation. Bitrate is the CSV's kbps column and is proportional to file size, so the percentage change equals the file size change.
We did not encode with a VMAF target. The gaps between adjacent measured points are 10–35 points, so interpolation error is large. That is also why we used only the baseline CRF 28/30 points as targets. When we tried a target of VMAF 90 instead, it forced interpolation over a wide interval of the baseline curve and the results swung a lot (for example, x264 grain on rush_hour came out 20-something percent smaller), so we left those values out. Since we did not repeat measurements, it is safest to treat differences of a few percent as within the margin of error.
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 states "Restrictions of use: No restrictions" and "Copyright: No Copyright" (checked 2026-11-08).
Per-clip results (raw data)
In each curve, the x-axis is bitrate and the y-axis is VMAF. Each setting (e.g. medium, medium+grain) is drawn separately; a curve that sits above and to the left of the baseline (no tune) means higher VMAF at the same file size. Times in the tables fluctuate because we ran at IDLE priority, so treat them as indicative only.
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 | 20 | 9,140.9 kbps | 99.98 | 100.00 | 41.10 | 20.7 | 34.2 |
| x264 (H.264) · preset medium+film | 20 | 10,160.1 kbps | 99.98 | 100.00 | 41.10 | 19.86 | 35.4 |
| x264 (H.264) · preset medium+grain | 20 | 16,701.2 kbps | 99.98 | 100.00 | 42.30 | 18.14 | 41.4 |
| x264 (H.264) · preset medium+anim | 20 | 9,074 kbps | 99.98 | 100.00 | 41.62 | 20.75 | 35.4 |
| x264 (H.264) · preset medium | 28 | 2,490.2 kbps | 99.51 | 97.44 | 37.25 | 34.63 | 20.8 |
| x264 (H.264) · preset medium+film | 28 | 2,604.8 kbps | 99.56 | 97.58 | 37.27 | 33.81 | 21.0 |
| x264 (H.264) · preset medium+grain | 28 | 3,606.1 kbps | 99.96 | 100.00 | 38.41 | 31.51 | 23.5 |
| x264 (H.264) · preset medium+anim | 28 | 2,598.8 kbps | 99.74 | 98.25 | 37.94 | 29.81 | 25.5 |
| x264 (H.264) · preset medium | 36 | 961.5 kbps | 83.58 | 75.26 | 32.55 | 47.42 | 16.1 |
| x264 (H.264) · preset medium+film | 36 | 980.2 kbps | 83.92 | 75.60 | 32.56 | 46.59 | 15.8 |
| x264 (H.264) · preset medium+grain | 36 | 1,318.4 kbps | 91.59 | 87.42 | 33.96 | 43.72 | 17.4 |
| x264 (H.264) · preset medium+anim | 36 | 996.2 kbps | 87.21 | 80.61 | 33.34 | 36.99 | 20.5 |
| x265 (HEVC) · preset medium | 22 | 6,348.2 kbps | 99.98 | 100.00 | 41.14 | 17.81 | 56.4 |
| x265 (HEVC) · preset medium+grain | 22 | 7,932 kbps | 99.98 | 100.00 | 41.03 | 9.84 | 99.1 |
| x265 (HEVC) · preset medium+anim | 22 | 6,097.9 kbps | 99.98 | 100.00 | 41.13 | 16.88 | 59.8 |
| x265 (HEVC) · preset medium+fastdec | 22 | 6,473.8 kbps | 99.98 | 100.00 | 40.83 | 19.86 | 49.8 |
| x265 (HEVC) · preset medium | 30 | 1,874.4 kbps | 98.08 | 92.61 | 37.42 | 28.5 | 34.4 |
| x265 (HEVC) · preset medium+grain | 30 | 2,259.6 kbps | 99.68 | 97.54 | 36.84 | 17.33 | 56.7 |
| x265 (HEVC) · preset medium+anim | 30 | 1,787.4 kbps | 97.87 | 91.55 | 37.40 | 25.05 | 38.8 |
| x265 (HEVC) · preset medium+fastdec | 30 | 1,936.2 kbps | 98.08 | 93.03 | 37.01 | 31.52 | 30.3 |
| x265 (HEVC) · preset medium | 38 | 638.4 kbps | 81.81 | 72.80 | 32.95 | 36.75 | 25.6 |
| x265 (HEVC) · preset medium+grain | 38 | 841.2 kbps | 80.89 | 74.59 | 32.21 | 22.52 | 43.6 |
| x265 (HEVC) · preset medium+anim | 38 | 598.7 kbps | 81.18 | 71.16 | 32.89 | 30.37 | 30.5 |
| x265 (HEVC) · preset medium+fastdec | 38 | 665.4 kbps | 81.50 | 73.11 | 32.49 | 39.14 | 22.9 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 7,819.9 kbps | 98.75 | 95.97 | 41.65 | 17.78 | 42.3 |
| x264 (H.264) · preset medium+film | 20 | 8,584.2 kbps | 99.03 | 96.42 | 41.57 | 17.11 | 44.0 |
| x264 (H.264) · preset medium+grain | 20 | 12,988.7 kbps | 99.64 | 97.80 | 42.07 | 15.18 | 50.9 |
| x264 (H.264) · preset medium+anim | 20 | 6,448.5 kbps | 98.67 | 95.89 | 41.76 | 18.05 | 47.0 |
| x264 (H.264) · preset medium | 28 | 2,480 kbps | 88.67 | 85.91 | 38.72 | 31.51 | 28.0 |
| x264 (H.264) · preset medium+film | 28 | 2,524.7 kbps | 89.28 | 86.69 | 38.75 | 31.11 | 27.8 |
| x264 (H.264) · preset medium+grain | 28 | 3,273 kbps | 93.86 | 90.56 | 39.58 | 26.94 | 31.3 |
| x264 (H.264) · preset medium+anim | 28 | 2,162.5 kbps | 89.22 | 86.31 | 38.92 | 26.78 | 34.0 |
| x264 (H.264) · preset medium | 36 | 1,054.6 kbps | 65.05 | 62.30 | 34.95 | 42.82 | 20.9 |
| x264 (H.264) · preset medium+film | 36 | 1,063.2 kbps | 65.36 | 62.65 | 34.96 | 42.83 | 20.8 |
| x264 (H.264) · preset medium+grain | 36 | 1,325.5 kbps | 73.85 | 70.98 | 35.98 | 39.39 | 23.0 |
| x264 (H.264) · preset medium+anim | 36 | 925.6 kbps | 66.06 | 63.13 | 35.21 | 33.39 | 27.4 |
| x265 (HEVC) · preset medium | 22 | 4,357.1 kbps | 97.84 | 95.06 | 41.48 | 12.83 | 77.2 |
| x265 (HEVC) · preset medium+grain | 22 | 7,324.9 kbps | 99.24 | 97.20 | 41.07 | 8.66 | 113.8 |
| x265 (HEVC) · preset medium+anim | 22 | 3,111.8 kbps | 96.96 | 93.99 | 41.17 | 13 | 76.5 |
| x265 (HEVC) · preset medium+fastdec | 22 | 4,424.8 kbps | 98.09 | 95.31 | 40.90 | 15.13 | 65.0 |
| x265 (HEVC) · preset medium | 30 | 1,472.2 kbps | 87.05 | 84.36 | 38.54 | 18.5 | 53.6 |
| x265 (HEVC) · preset medium+grain | 30 | 2,212.3 kbps | 89.86 | 86.76 | 38.07 | 12.67 | 77.6 |
| x265 (HEVC) · preset medium+anim | 30 | 1,116.6 kbps | 84.30 | 81.71 | 38.09 | 16.98 | 57.9 |
| x265 (HEVC) · preset medium+fastdec | 30 | 1,483.7 kbps | 86.69 | 83.56 | 37.81 | 21.18 | 46.2 |
| x265 (HEVC) · preset medium | 38 | 570.8 kbps | 62.10 | 58.76 | 34.67 | 24.45 | 39.7 |
| x265 (HEVC) · preset medium+grain | 38 | 879.4 kbps | 65.89 | 61.73 | 34.50 | 15.93 | 62.1 |
| x265 (HEVC) · preset medium+anim | 38 | 453.3 kbps | 57.33 | 53.30 | 34.15 | 21.18 | 44.5 |
| x265 (HEVC) · preset medium+fastdec | 38 | 579.5 kbps | 61.43 | 57.19 | 34.03 | 27.04 | 35.7 |
riverbed — riverbed (small ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 29,769.2 kbps | 99.96 | 100.00 | 39.77 | 12.4 | 83.9 |
| x264 (H.264) · preset medium+film | 20 | 31,187.5 kbps | 99.96 | 100.00 | 39.74 | 12.26 | 84.5 |
| x264 (H.264) · preset medium+grain | 20 | 47,248.9 kbps | 99.97 | 100.00 | 41.49 | 11.57 | 89.3 |
| x264 (H.264) · preset medium+anim | 20 | 30,573.3 kbps | 99.96 | 100.00 | 40.17 | 8.78 | 119.0 |
| x264 (H.264) · preset medium | 28 | 11,622.6 kbps | 88.97 | 86.99 | 35.38 | 15.79 | 66.6 |
| x264 (H.264) · preset medium+film | 28 | 11,855.1 kbps | 89.79 | 87.98 | 35.36 | 15.41 | 67.8 |
| x264 (H.264) · preset medium+grain | 28 | 17,341.8 kbps | 99.81 | 99.02 | 37.11 | 14.04 | 74.6 |
| x264 (H.264) · preset medium+anim | 28 | 11,495.3 kbps | 91.56 | 89.26 | 36.01 | 10.66 | 99.3 |
| x264 (H.264) · preset medium | 36 | 4,446.8 kbps | 52.61 | 49.61 | 30.79 | 20.76 | 44.8 |
| x264 (H.264) · preset medium+film | 36 | 4,495 kbps | 53.20 | 49.92 | 30.75 | 21.08 | 45.1 |
| x264 (H.264) · preset medium+grain | 36 | 6,714.2 kbps | 71.67 | 68.32 | 32.76 | 18.68 | 56.0 |
| x264 (H.264) · preset medium+anim | 36 | 4,206.2 kbps | 56.41 | 52.16 | 31.42 | 14.12 | 69.9 |
| x265 (HEVC) · preset medium | 22 | 19,060.6 kbps | 99.59 | 98.11 | 38.69 | 4.1 | 238.6 |
| x265 (HEVC) · preset medium+grain | 22 | 20,169.9 kbps | 99.96 | 100.00 | 37.97 | 4.41 | 221.9 |
| x265 (HEVC) · preset medium+anim | 22 | 15,565.5 kbps | 98.82 | 96.48 | 38.40 | 4.16 | 235.3 |
| x265 (HEVC) · preset medium+fastdec | 22 | 19,234.5 kbps | 99.60 | 98.02 | 38.22 | 5.12 | 191.2 |
| x265 (HEVC) · preset medium | 30 | 7,534.2 kbps | 79.56 | 74.65 | 34.54 | 5.84 | 168.0 |
| x265 (HEVC) · preset medium+grain | 30 | 7,974.1 kbps | 80.55 | 78.22 | 33.92 | 5.92 | 165.3 |
| x265 (HEVC) · preset medium+anim | 30 | 5,975.4 kbps | 76.33 | 71.25 | 34.27 | 5.7 | 172.1 |
| x265 (HEVC) · preset medium+fastdec | 30 | 7,583.5 kbps | 79.71 | 74.76 | 33.86 | 7.26 | 134.7 |
| x265 (HEVC) · preset medium | 38 | 2,512.6 kbps | 46.32 | 41.08 | 30.21 | 8.96 | 109.5 |
| x265 (HEVC) · preset medium+grain | 38 | 2,513 kbps | 47.37 | 44.69 | 29.71 | 8.57 | 113.6 |
| x265 (HEVC) · preset medium+anim | 38 | 1,987.5 kbps | 42.53 | 37.27 | 30.02 | 8.96 | 110.1 |
| x265 (HEVC) · preset medium+fastdec | 38 | 2,514 kbps | 46.38 | 40.55 | 29.64 | 10.86 | 90.1 |
rush_hour — rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 8,033 kbps | 95.62 | 94.09 | 42.04 | 16.97 | 49.1 |
| x264 (H.264) · preset medium+film | 20 | 9,039.1 kbps | 96.07 | 94.53 | 41.89 | 16.23 | 52.2 |
| x264 (H.264) · preset medium+grain | 20 | 14,560.1 kbps | 98.34 | 97.24 | 42.39 | 14.2 | 61.9 |
| x264 (H.264) · preset medium+anim | 20 | 6,233.7 kbps | 95.64 | 94.18 | 42.16 | 18.66 | 49.2 |
| x264 (H.264) · preset medium | 28 | 2,275.6 kbps | 84.82 | 82.40 | 39.84 | 32.41 | 28.1 |
| x264 (H.264) · preset medium+film | 28 | 2,314.7 kbps | 85.15 | 82.78 | 39.79 | 31.21 | 28.7 |
| x264 (H.264) · preset medium+grain | 28 | 3,067.8 kbps | 90.04 | 88.22 | 40.57 | 27.33 | 32.3 |
| x264 (H.264) · preset medium+anim | 28 | 1,986.2 kbps | 85.00 | 82.72 | 39.96 | 28.23 | 33.0 |
| x264 (H.264) · preset medium | 36 | 875.7 kbps | 63.43 | 59.94 | 36.45 | 44.43 | 19.7 |
| x264 (H.264) · preset medium+film | 36 | 878.6 kbps | 63.72 | 60.17 | 36.43 | 44.38 | 19.6 |
| x264 (H.264) · preset medium+grain | 36 | 1,127.8 kbps | 71.56 | 69.09 | 37.47 | 42.5 | 21.3 |
| x264 (H.264) · preset medium+anim | 36 | 740.2 kbps | 64.06 | 60.77 | 36.53 | 34.96 | 23.8 |
| x265 (HEVC) · preset medium | 22 | 4,009.4 kbps | 93.76 | 92.06 | 41.77 | 11.73 | 83.9 |
| x265 (HEVC) · preset medium+grain | 22 | 7,199.7 kbps | 97.03 | 96.25 | 41.46 | 8.14 | 120.7 |
| x265 (HEVC) · preset medium+anim | 22 | 2,936.9 kbps | 92.44 | 90.80 | 41.61 | 11.87 | 83.9 |
| x265 (HEVC) · preset medium+fastdec | 22 | 4,193.6 kbps | 94.19 | 92.52 | 40.83 | 13.35 | 73.3 |
| x265 (HEVC) · preset medium | 30 | 1,233.5 kbps | 81.82 | 78.95 | 39.35 | 19.17 | 51.1 |
| x265 (HEVC) · preset medium+grain | 30 | 2,053.3 kbps | 87.97 | 86.93 | 39.60 | 12.87 | 76.0 |
| x265 (HEVC) · preset medium+anim | 30 | 932.2 kbps | 78.56 | 75.42 | 38.98 | 17.98 | 54.3 |
| x265 (HEVC) · preset medium+fastdec | 30 | 1,254.3 kbps | 81.68 | 78.80 | 38.57 | 21.23 | 45.5 |
| x265 (HEVC) · preset medium | 38 | 370.5 kbps | 58.30 | 54.34 | 35.69 | 28.77 | 32.4 |
| x265 (HEVC) · preset medium+grain | 38 | 699.5 kbps | 68.46 | 66.85 | 36.61 | 16.99 | 57.1 |
| x265 (HEVC) · preset medium+anim | 38 | 295.1 kbps | 54.05 | 50.31 | 35.11 | 22.75 | 36.6 |
| x265 (HEVC) · preset medium+fastdec | 38 | 375.8 kbps | 58.01 | 53.87 | 35.15 | 30.62 | 28.9 |
How to read it, and what we observed
1. x264: size and VMAF change vs no tune at the same CRF
Computed from the CSV's size_bytes and vmaf_mean, comparing each tuned row against the no-tune row at the same CRF (tuned row ÷ baseline row). At CRF 20 the baseline VMAF is 95.6–100, close to saturation, so the VMAF change looks small.
- film made files a little larger and raised VMAF a little. All 12 comparisons got larger (+0.3 to +12.5%, more at lower CRF), and VMAF rose by 0.00 to +0.82.
- grain made files much larger and also raised VMAF a lot. Size was +25.7 to +82.7%, and VMAF rose by +8.02 to +19.05 at CRF 36. Do not read the higher score at the same CRF as simply 'better quality': the file also grew, which is why we need the same-VMAF comparison below.
- animation made files smaller even on live action. pedestrian_area and rush_hour were −12.2 to −22.4% in all 6 comparisons, with VMAF changes of −0.09 to +1.01. riverbed got smaller as CRF went up (+2.7% → −5.4%), while blue_sky actually got larger at CRF 28 and 36 (+4.4% and +3.6%).
2. x265: change vs no tune at the same CRF (size change (mean VMAF change))
Computed from the CSV's size_bytes and vmaf_mean against the no-tune row at the same CRF. The value in parentheses is the mean VMAF difference (one decimal place).
- x265 animation cut file size by −3.9 to −28.6%, but VMAF dropped too (−0.9 to −4.8; blue_sky 0.0 to −0.6). That differs from x264 animation, which shrank files while keeping VMAF about the same.
- x265 grain added only a little size on riverbed (+0.0 to +5.8%). At x265 baseline CRF 22 this clip has the largest file (23.8 MB) and the most texture. rush_hour and pedestrian_area, on the other hand, grew by +50 to +89%. This data cannot tell us why.
- fastdecode made files larger in all 12 comparisons (+0.1 to +4.6%), while VMAF moved up and down between −0.7 and +0.4. The size increase was not large.
3. Size change at the same VMAF
x264 medium. The target is the mean VMAF of the no-tune CRF 28 point. Example: for pedestrian_area the baseline is 2,480.0 kbps, and animation interpolates to about 2,119 kbps. *blue_sky's 99.51 is in a near-saturated range where the score barely changes with bitrate, so it is hard to interpret.
x265 medium. The target is the mean VMAF of the no-tune CRF 30 point. *blue_sky's 98.08 is also in a near-saturated range.
- x264 film made essentially no difference at the same VMAF (−0.4 to +0.2%, excluding the saturated blue_sky). The larger files and higher VMAF at the same CRF were closer to sliding along the same line on the curve.
- grain was larger even at the same VMAF. x264 +1.6 to +4.4%, x265 +2.3 to +34.9% (excluding the saturated range). On these clips, grain did not give 'higher quality at the same size'.
- animation was smaller in every comparison except the saturated blue_sky. x264 −8.2 to −14.6%, x265 −1.1 to −9.0%. This data cannot explain why live action gave these numbers. It is known, however, that the animation tune reduces psy-rd (an optimization that keeps texture so the picture looks good to the eye), and reducing psy-rd is known to tend to raise computed metrics like VMAF, so there is no guarantee that a gain measured by VMAF is a gain to the eye.
- fastdecode was +0.2 to +4.4% larger at the same VMAF. It is best read as paying a little file size to reduce the decoding load.
- The sign changed depending on the target VMAF. For example, blue_sky's x264 animation was +2.5% at VMAF 99.51, but if you match it to the animation CRF 36 point (VMAF 87.21), the baseline curve interpolates to about 1,195 kbps and animation's 996.2 kbps is −16.6%. That comparison interpolates over a 16-point interval of the baseline curve, so the error is large, but it is clear that a tune's effect can differ by quality range.
4. Hard scenes seen through the 5th-percentile VMAF (p5)
Even when mean VMAF is similar, hard scenes can fall apart. Here we compare p5 at x264 CRF 36 on blue_sky, which has a wide sky gradient.
Values as in the CSV. grain and animation also grew in size, by +37.1% and +3.6%. VMAF is not a metric that directly shows whether these settings actually reduced banding.
- At blue_sky CRF 36, p5 rose for grain (+12.2 points) and animation (+5.3 points), and film (+0.3 points) was almost unchanged. This goes in the same direction as mean VMAF. We cannot tell from this data whether the score gap comes from reduced sky banding, and we did not check visually.
- Interpolating the baseline curve to the same VMAF as x264 grain's CRF 36 point (VMAF 91.59, 1,318 kbps) gives about 1,552 kbps, so at this point grain was about 15% smaller. That is the opposite of the +37% at VMAF 99.5 above, and a hint that grain may pay off only in the lower-quality range. However, the baseline curve has 16-point gaps, so interpolation error is large.
5. The cost: encoding time and decoding load
Min–max over 12 comparisons (4 clips × 3 CRF values). Tuned row ÷ baseline row at the same CRF (CSV utime_s, dec_utime_s). We calculated decoding only for fastdecode. Example: rush_hour x265 CRF 38 went from 32.359 s to 28.906 s (0.89×), and decoding from 1.359 s to 1.172 s (0.86×).
- fastdecode reduced decoding CPU time in all 12 comparisons (0.68–0.94×, about 0.83× near the median). Encoding time also fell to 0.80–0.90×. However, the absolute values are small, 1.0–4.9 s for a 10-second clip, and appear in steps of 0.016 s, so the ratios are noisy. The 0.68× is a single point: pedestrian_area at CRF 22 (baseline 2.578 s → 1.75 s).
- x265 grain tended to slow encoding down, but riverbed was nearly unchanged (0.93–1.04× vs 1.44–1.76× on the other clips). We ran at IDLE priority, so treat the times as indicative only.
- x264 animation increased encoding time the most on riverbed, to 1.42–1.56×. This data cannot tell us why.
- We did not measure how much fastdecode helps on hardware decoders or in real players. These values are FFmpeg software-decoding CPU time.
Limitations
- All clips are live action. There is no cartoon, anime or graphics footage, which is what the animation tune was made for. The animation gains seen here cannot be carried over to animated content. There is also no footage with real film grain (riverbed is just full of texture, not film grain).
- VMAF can under- or overestimate the visual effect of a tune. grain and film are options meant to keep texture and noise looking natural to the eye, which may not match a computed score. We did no visual evaluation.
- The same-VMAF comparison is interpolated. With only 3 CRF points, the gaps between points are wide. Changing the target changed the results (last item of section 3), and differences of a few percent should not be trusted.
- One preset (medium), one resolution (1080p), one bit depth (8-bit). We have no evidence that tune effects are the same at other presets, at 4K, or at 10-bit.
- Only four 10-second clips, one PC, one run. We did not repeat measurements to estimate error. Times are CPU time at IDLE priority, so they are indicative only (see utime vs rtime). Decoding values are small and especially noisy.
Practical recommendations
- For ordinary live-action video, skipping tune cost little. x264 film gave almost the same file size at the same VMAF. We found no reason in this data to turn it on.
- Use grain knowing that file size grows a lot. At the same CRF it was +25.7 to +82.7% with x264 and +0.0 to +88.8% with x265, and even matched at the same VMAF it brought no gain. If you really need to preserve noise, check by eye before using it. For a same-size comparison, do it yourself the way the preset vs CRF comparison does.
- Using animation on live action made many clips smaller (x264 −8 to −15%). But before trusting a VMAF-driven improvement as a visual one, compare for yourself. Take one or two representative videos, match the size with and without the tune, compare by eye, and look at hard scenes as well as the average (VMAF worst-frame measurements).
- If the playback device is weak, x265 fastdecode is an option. It gave 0.68–0.94× decoding CPU time at the cost of +0.1 to +4.6% file size. First check whether your target devices support the codec with the codec support checker.
- When choosing a CRF, start with the [CRF recommender](/en/tools/crf-recommender) and the [CRF equivalence table](/en/lab/crf-equivalence-table-x264-anchor-v1), and treat tune as an adjustment you compare on top of that. A similar comparison for another option, bit depth, is in the 10-bit encoding measurements.
The full raw data can be downloaded as a CSV at the bottom of the page. You can recompute the same-CRF changes from size_bytes and vmaf_mean, the same-VMAF comparisons from kbps and vmaf_mean, and the time ratios from utime_s and dec_utime_s.
Raw data: x26x-tune-film-grain-anim-v1.csv