Lab · 2026-11-22한국어日本語

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)

The short answer

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.

Every clip in this article is live action

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

ItemDetails
FFmpeg9.0.2 (gyan.dev full_build)
PCOne machine: AMD Ryzen 5 PRO 4650G (6 cores, 12 threads), 16 GB RAM
Threads per job4. Process priority set to IDLE
Input formatyuv420p 8-bit, 1920x1080, 25 fps. Input is the original y4m, output is mkv (no audio)
LengthOnly the first 250 frames (10 seconds) of each clip
Quality metriclibvmaf default model (vmaf_v0.6.1), measured per frame against the source. Mean (vmaf_mean), 5th percentile (vmaf_p5), minimum (vmaf_min)
Time metricEncoding uses the CSV's utime_s (CPU time); decoding uses dec_utime_s (CPU time of 4-thread decoding). Wall-clock time (rtime_s) fluctuates with other jobs, so we did not use it
Measured on2026-11-22 (4 clips × 8 settings × 3 levels = 96 encodes). Preset fixed at medium; only the tune varies

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

Encoder3 CRF valuesCommand (key options)Add this for the tuned settings
x264 medium20, 28, 36-c:v libx264 -preset medium -crf Q -threads 4-tune film / grain / animation
x265 medium22, 30, 38-c:v libx265 -preset medium -crf Q -x265-params pools=4:log-level=error-tune grain / animation / fastdecode

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.

Interpolated values, not directly matched ones

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

80901001M2M5M10MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=36: 961.5 kbps, VMAF 83.576x264 (H.264) · preset medium q=28: 2,490.2 kbps, VMAF 99.51x264 (H.264) · preset medium q=20: 9,140.9 kbps, VMAF 99.979x264 (H.264) · preset medium+film q=36: 980.2 kbps, VMAF 83.918x264 (H.264) · preset medium+film q=28: 2,604.8 kbps, VMAF 99.558x264 (H.264) · preset medium+film q=20: 10,160.1 kbps, VMAF 99.98x264 (H.264) · preset medium+grain q=36: 1,318.4 kbps, VMAF 91.592x264 (H.264) · preset medium+grain q=28: 3,606.1 kbps, VMAF 99.958x264 (H.264) · preset medium+grain q=20: 16,701.2 kbps, VMAF 99.982x264 (H.264) · preset medium+anim q=36: 996.2 kbps, VMAF 87.21x264 (H.264) · preset medium+anim q=28: 2,598.8 kbps, VMAF 99.744x264 (H.264) · preset medium+anim q=20: 9,074 kbps, VMAF 99.981x265 (HEVC) · preset medium q=38: 638.4 kbps, VMAF 81.807x265 (HEVC) · preset medium q=30: 1,874.4 kbps, VMAF 98.083x265 (HEVC) · preset medium q=22: 6,348.2 kbps, VMAF 99.977x265 (HEVC) · preset medium+grain q=38: 841.2 kbps, VMAF 80.892x265 (HEVC) · preset medium+grain q=30: 2,259.6 kbps, VMAF 99.678x265 (HEVC) · preset medium+grain q=22: 7,932 kbps, VMAF 99.979x265 (HEVC) · preset medium+anim q=38: 598.7 kbps, VMAF 81.183x265 (HEVC) · preset medium+anim q=30: 1,787.4 kbps, VMAF 97.871x265 (HEVC) · preset medium+anim q=22: 6,097.9 kbps, VMAF 99.977x265 (HEVC) · preset medium+fastdec q=38: 665.4 kbps, VMAF 81.499x265 (HEVC) · preset medium+fastdec q=30: 1,936.2 kbps, VMAF 98.079x265 (HEVC) · preset medium+fastdec q=22: 6,473.8 kbps, VMAF 99.979
x264 (H.264) · preset mediumx264 (H.264) · preset medium+filmx264 (H.264) · preset medium+grainx264 (H.264) · preset medium+animx265 (HEVC) · preset mediumx265 (HEVC) · preset medium+grainx265 (HEVC) · preset medium+animx265 (HEVC) · preset medium+fastdec
blue_sky — blue sky and tree branches — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium209,140.9 kbps99.98100.0041.1020.734.2
x264 (H.264) · preset medium+film2010,160.1 kbps99.98100.0041.1019.8635.4
x264 (H.264) · preset medium+grain2016,701.2 kbps99.98100.0042.3018.1441.4
x264 (H.264) · preset medium+anim209,074 kbps99.98100.0041.6220.7535.4
x264 (H.264) · preset medium282,490.2 kbps99.5197.4437.2534.6320.8
x264 (H.264) · preset medium+film282,604.8 kbps99.5697.5837.2733.8121.0
x264 (H.264) · preset medium+grain283,606.1 kbps99.96100.0038.4131.5123.5
x264 (H.264) · preset medium+anim282,598.8 kbps99.7498.2537.9429.8125.5
x264 (H.264) · preset medium36961.5 kbps83.5875.2632.5547.4216.1
x264 (H.264) · preset medium+film36980.2 kbps83.9275.6032.5646.5915.8
x264 (H.264) · preset medium+grain361,318.4 kbps91.5987.4233.9643.7217.4
x264 (H.264) · preset medium+anim36996.2 kbps87.2180.6133.3436.9920.5
x265 (HEVC) · preset medium226,348.2 kbps99.98100.0041.1417.8156.4
x265 (HEVC) · preset medium+grain227,932 kbps99.98100.0041.039.8499.1
x265 (HEVC) · preset medium+anim226,097.9 kbps99.98100.0041.1316.8859.8
x265 (HEVC) · preset medium+fastdec226,473.8 kbps99.98100.0040.8319.8649.8
x265 (HEVC) · preset medium301,874.4 kbps98.0892.6137.4228.534.4
x265 (HEVC) · preset medium+grain302,259.6 kbps99.6897.5436.8417.3356.7
x265 (HEVC) · preset medium+anim301,787.4 kbps97.8791.5537.4025.0538.8
x265 (HEVC) · preset medium+fastdec301,936.2 kbps98.0893.0337.0131.5230.3
x265 (HEVC) · preset medium38638.4 kbps81.8172.8032.9536.7525.6
x265 (HEVC) · preset medium+grain38841.2 kbps80.8974.5932.2122.5243.6
x265 (HEVC) · preset medium+anim38598.7 kbps81.1871.1632.8930.3730.5
x265 (HEVC) · preset medium+fastdec38665.4 kbps81.5073.1132.4939.1422.9
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

5060708090100500k1M2M5M10MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=36: 1,054.6 kbps, VMAF 65.045x264 (H.264) · preset medium q=28: 2,480 kbps, VMAF 88.665x264 (H.264) · preset medium q=20: 7,819.9 kbps, VMAF 98.753x264 (H.264) · preset medium+film q=36: 1,063.2 kbps, VMAF 65.356x264 (H.264) · preset medium+film q=28: 2,524.7 kbps, VMAF 89.275x264 (H.264) · preset medium+film q=20: 8,584.2 kbps, VMAF 99.031x264 (H.264) · preset medium+grain q=36: 1,325.5 kbps, VMAF 73.854x264 (H.264) · preset medium+grain q=28: 3,273 kbps, VMAF 93.864x264 (H.264) · preset medium+grain q=20: 12,988.7 kbps, VMAF 99.644x264 (H.264) · preset medium+anim q=36: 925.6 kbps, VMAF 66.059x264 (H.264) · preset medium+anim q=28: 2,162.5 kbps, VMAF 89.219x264 (H.264) · preset medium+anim q=20: 6,448.5 kbps, VMAF 98.668x265 (HEVC) · preset medium q=38: 570.8 kbps, VMAF 62.096x265 (HEVC) · preset medium q=30: 1,472.2 kbps, VMAF 87.05x265 (HEVC) · preset medium q=22: 4,357.1 kbps, VMAF 97.842x265 (HEVC) · preset medium+grain q=38: 879.4 kbps, VMAF 65.891x265 (HEVC) · preset medium+grain q=30: 2,212.3 kbps, VMAF 89.855x265 (HEVC) · preset medium+grain q=22: 7,324.9 kbps, VMAF 99.239x265 (HEVC) · preset medium+anim q=38: 453.3 kbps, VMAF 57.327x265 (HEVC) · preset medium+anim q=30: 1,116.6 kbps, VMAF 84.303x265 (HEVC) · preset medium+anim q=22: 3,111.8 kbps, VMAF 96.961x265 (HEVC) · preset medium+fastdec q=38: 579.5 kbps, VMAF 61.427x265 (HEVC) · preset medium+fastdec q=30: 1,483.7 kbps, VMAF 86.686x265 (HEVC) · preset medium+fastdec q=22: 4,424.8 kbps, VMAF 98.091
x264 (H.264) · preset mediumx264 (H.264) · preset medium+filmx264 (H.264) · preset medium+grainx264 (H.264) · preset medium+animx265 (HEVC) · preset mediumx265 (HEVC) · preset medium+grainx265 (HEVC) · preset medium+animx265 (HEVC) · preset medium+fastdec
pedestrian_area — pedestrian street — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium207,819.9 kbps98.7595.9741.6517.7842.3
x264 (H.264) · preset medium+film208,584.2 kbps99.0396.4241.5717.1144.0
x264 (H.264) · preset medium+grain2012,988.7 kbps99.6497.8042.0715.1850.9
x264 (H.264) · preset medium+anim206,448.5 kbps98.6795.8941.7618.0547.0
x264 (H.264) · preset medium282,480 kbps88.6785.9138.7231.5128.0
x264 (H.264) · preset medium+film282,524.7 kbps89.2886.6938.7531.1127.8
x264 (H.264) · preset medium+grain283,273 kbps93.8690.5639.5826.9431.3
x264 (H.264) · preset medium+anim282,162.5 kbps89.2286.3138.9226.7834.0
x264 (H.264) · preset medium361,054.6 kbps65.0562.3034.9542.8220.9
x264 (H.264) · preset medium+film361,063.2 kbps65.3662.6534.9642.8320.8
x264 (H.264) · preset medium+grain361,325.5 kbps73.8570.9835.9839.3923.0
x264 (H.264) · preset medium+anim36925.6 kbps66.0663.1335.2133.3927.4
x265 (HEVC) · preset medium224,357.1 kbps97.8495.0641.4812.8377.2
x265 (HEVC) · preset medium+grain227,324.9 kbps99.2497.2041.078.66113.8
x265 (HEVC) · preset medium+anim223,111.8 kbps96.9693.9941.171376.5
x265 (HEVC) · preset medium+fastdec224,424.8 kbps98.0995.3140.9015.1365.0
x265 (HEVC) · preset medium301,472.2 kbps87.0584.3638.5418.553.6
x265 (HEVC) · preset medium+grain302,212.3 kbps89.8686.7638.0712.6777.6
x265 (HEVC) · preset medium+anim301,116.6 kbps84.3081.7138.0916.9857.9
x265 (HEVC) · preset medium+fastdec301,483.7 kbps86.6983.5637.8121.1846.2
x265 (HEVC) · preset medium38570.8 kbps62.1058.7634.6724.4539.7
x265 (HEVC) · preset medium+grain38879.4 kbps65.8961.7334.5015.9362.1
x265 (HEVC) · preset medium+anim38453.3 kbps57.3353.3034.1521.1844.5
x265 (HEVC) · preset medium+fastdec38579.5 kbps61.4357.1934.0327.0435.7
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (small ripples)

4050607080901002M5M10M20M50MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=36: 4,446.8 kbps, VMAF 52.612x264 (H.264) · preset medium q=28: 11,622.6 kbps, VMAF 88.974x264 (H.264) · preset medium q=20: 29,769.2 kbps, VMAF 99.957x264 (H.264) · preset medium+film q=36: 4,495 kbps, VMAF 53.197x264 (H.264) · preset medium+film q=28: 11,855.1 kbps, VMAF 89.792x264 (H.264) · preset medium+film q=20: 31,187.5 kbps, VMAF 99.959x264 (H.264) · preset medium+grain q=36: 6,714.2 kbps, VMAF 71.665x264 (H.264) · preset medium+grain q=28: 17,341.8 kbps, VMAF 99.808x264 (H.264) · preset medium+grain q=20: 47,248.9 kbps, VMAF 99.972x264 (H.264) · preset medium+anim q=36: 4,206.2 kbps, VMAF 56.406x264 (H.264) · preset medium+anim q=28: 11,495.3 kbps, VMAF 91.563x264 (H.264) · preset medium+anim q=20: 30,573.3 kbps, VMAF 99.959x265 (HEVC) · preset medium q=38: 2,512.6 kbps, VMAF 46.324x265 (HEVC) · preset medium q=30: 7,534.2 kbps, VMAF 79.562x265 (HEVC) · preset medium q=22: 19,060.6 kbps, VMAF 99.592x265 (HEVC) · preset medium+grain q=38: 2,513 kbps, VMAF 47.371x265 (HEVC) · preset medium+grain q=30: 7,974.1 kbps, VMAF 80.55x265 (HEVC) · preset medium+grain q=22: 20,169.9 kbps, VMAF 99.964x265 (HEVC) · preset medium+anim q=38: 1,987.5 kbps, VMAF 42.534x265 (HEVC) · preset medium+anim q=30: 5,975.4 kbps, VMAF 76.33x265 (HEVC) · preset medium+anim q=22: 15,565.5 kbps, VMAF 98.821x265 (HEVC) · preset medium+fastdec q=38: 2,514 kbps, VMAF 46.383x265 (HEVC) · preset medium+fastdec q=30: 7,583.5 kbps, VMAF 79.71x265 (HEVC) · preset medium+fastdec q=22: 19,234.5 kbps, VMAF 99.604
x264 (H.264) · preset mediumx264 (H.264) · preset medium+filmx264 (H.264) · preset medium+grainx264 (H.264) · preset medium+animx265 (HEVC) · preset mediumx265 (HEVC) · preset medium+grainx265 (HEVC) · preset medium+animx265 (HEVC) · preset medium+fastdec
riverbed — riverbed (small ripples) — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium2029,769.2 kbps99.96100.0039.7712.483.9
x264 (H.264) · preset medium+film2031,187.5 kbps99.96100.0039.7412.2684.5
x264 (H.264) · preset medium+grain2047,248.9 kbps99.97100.0041.4911.5789.3
x264 (H.264) · preset medium+anim2030,573.3 kbps99.96100.0040.178.78119.0
x264 (H.264) · preset medium2811,622.6 kbps88.9786.9935.3815.7966.6
x264 (H.264) · preset medium+film2811,855.1 kbps89.7987.9835.3615.4167.8
x264 (H.264) · preset medium+grain2817,341.8 kbps99.8199.0237.1114.0474.6
x264 (H.264) · preset medium+anim2811,495.3 kbps91.5689.2636.0110.6699.3
x264 (H.264) · preset medium364,446.8 kbps52.6149.6130.7920.7644.8
x264 (H.264) · preset medium+film364,495 kbps53.2049.9230.7521.0845.1
x264 (H.264) · preset medium+grain366,714.2 kbps71.6768.3232.7618.6856.0
x264 (H.264) · preset medium+anim364,206.2 kbps56.4152.1631.4214.1269.9
x265 (HEVC) · preset medium2219,060.6 kbps99.5998.1138.694.1238.6
x265 (HEVC) · preset medium+grain2220,169.9 kbps99.96100.0037.974.41221.9
x265 (HEVC) · preset medium+anim2215,565.5 kbps98.8296.4838.404.16235.3
x265 (HEVC) · preset medium+fastdec2219,234.5 kbps99.6098.0238.225.12191.2
x265 (HEVC) · preset medium307,534.2 kbps79.5674.6534.545.84168.0
x265 (HEVC) · preset medium+grain307,974.1 kbps80.5578.2233.925.92165.3
x265 (HEVC) · preset medium+anim305,975.4 kbps76.3371.2534.275.7172.1
x265 (HEVC) · preset medium+fastdec307,583.5 kbps79.7174.7633.867.26134.7
x265 (HEVC) · preset medium382,512.6 kbps46.3241.0830.218.96109.5
x265 (HEVC) · preset medium+grain382,513 kbps47.3744.6929.718.57113.6
x265 (HEVC) · preset medium+anim381,987.5 kbps42.5337.2730.028.96110.1
x265 (HEVC) · preset medium+fastdec382,514 kbps46.3840.5529.6410.8690.1
riverbed — riverbed (small ripples) — all measurements

rush_hour — rush-hour traffic

5060708090100500k1M2M5M10MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=36: 875.7 kbps, VMAF 63.431x264 (H.264) · preset medium q=28: 2,275.6 kbps, VMAF 84.821x264 (H.264) · preset medium q=20: 8,033 kbps, VMAF 95.617x264 (H.264) · preset medium+film q=36: 878.6 kbps, VMAF 63.724x264 (H.264) · preset medium+film q=28: 2,314.7 kbps, VMAF 85.149x264 (H.264) · preset medium+film q=20: 9,039.1 kbps, VMAF 96.071x264 (H.264) · preset medium+grain q=36: 1,127.8 kbps, VMAF 71.556x264 (H.264) · preset medium+grain q=28: 3,067.8 kbps, VMAF 90.038x264 (H.264) · preset medium+grain q=20: 14,560.1 kbps, VMAF 98.342x264 (H.264) · preset medium+anim q=36: 740.2 kbps, VMAF 64.058x264 (H.264) · preset medium+anim q=28: 1,986.2 kbps, VMAF 85x264 (H.264) · preset medium+anim q=20: 6,233.7 kbps, VMAF 95.635x265 (HEVC) · preset medium q=38: 370.5 kbps, VMAF 58.295x265 (HEVC) · preset medium q=30: 1,233.5 kbps, VMAF 81.816x265 (HEVC) · preset medium q=22: 4,009.4 kbps, VMAF 93.759x265 (HEVC) · preset medium+grain q=38: 699.5 kbps, VMAF 68.46x265 (HEVC) · preset medium+grain q=30: 2,053.3 kbps, VMAF 87.974x265 (HEVC) · preset medium+grain q=22: 7,199.7 kbps, VMAF 97.03x265 (HEVC) · preset medium+anim q=38: 295.1 kbps, VMAF 54.049x265 (HEVC) · preset medium+anim q=30: 932.2 kbps, VMAF 78.555x265 (HEVC) · preset medium+anim q=22: 2,936.9 kbps, VMAF 92.44x265 (HEVC) · preset medium+fastdec q=38: 375.8 kbps, VMAF 58.013x265 (HEVC) · preset medium+fastdec q=30: 1,254.3 kbps, VMAF 81.677x265 (HEVC) · preset medium+fastdec q=22: 4,193.6 kbps, VMAF 94.195
x264 (H.264) · preset mediumx264 (H.264) · preset medium+filmx264 (H.264) · preset medium+grainx264 (H.264) · preset medium+animx265 (HEVC) · preset mediumx265 (HEVC) · preset medium+grainx265 (HEVC) · preset medium+animx265 (HEVC) · preset medium+fastdec
rush_hour — rush-hour traffic — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium208,033 kbps95.6294.0942.0416.9749.1
x264 (H.264) · preset medium+film209,039.1 kbps96.0794.5341.8916.2352.2
x264 (H.264) · preset medium+grain2014,560.1 kbps98.3497.2442.3914.261.9
x264 (H.264) · preset medium+anim206,233.7 kbps95.6494.1842.1618.6649.2
x264 (H.264) · preset medium282,275.6 kbps84.8282.4039.8432.4128.1
x264 (H.264) · preset medium+film282,314.7 kbps85.1582.7839.7931.2128.7
x264 (H.264) · preset medium+grain283,067.8 kbps90.0488.2240.5727.3332.3
x264 (H.264) · preset medium+anim281,986.2 kbps85.0082.7239.9628.2333.0
x264 (H.264) · preset medium36875.7 kbps63.4359.9436.4544.4319.7
x264 (H.264) · preset medium+film36878.6 kbps63.7260.1736.4344.3819.6
x264 (H.264) · preset medium+grain361,127.8 kbps71.5669.0937.4742.521.3
x264 (H.264) · preset medium+anim36740.2 kbps64.0660.7736.5334.9623.8
x265 (HEVC) · preset medium224,009.4 kbps93.7692.0641.7711.7383.9
x265 (HEVC) · preset medium+grain227,199.7 kbps97.0396.2541.468.14120.7
x265 (HEVC) · preset medium+anim222,936.9 kbps92.4490.8041.6111.8783.9
x265 (HEVC) · preset medium+fastdec224,193.6 kbps94.1992.5240.8313.3573.3
x265 (HEVC) · preset medium301,233.5 kbps81.8278.9539.3519.1751.1
x265 (HEVC) · preset medium+grain302,053.3 kbps87.9786.9339.6012.8776.0
x265 (HEVC) · preset medium+anim30932.2 kbps78.5675.4238.9817.9854.3
x265 (HEVC) · preset medium+fastdec301,254.3 kbps81.6878.8038.5721.2345.5
x265 (HEVC) · preset medium38370.5 kbps58.3054.3435.6928.7732.4
x265 (HEVC) · preset medium+grain38699.5 kbps68.4666.8536.6116.9957.1
x265 (HEVC) · preset medium+anim38295.1 kbps54.0550.3135.1122.7536.6
x265 (HEVC) · preset medium+fastdec38375.8 kbps58.0153.8735.1530.6228.9
rush_hour — rush-hour traffic — all measurements

How to read it, and what we observed

1. x264: size and VMAF change vs no tune at the same CRF

Tune · clipSize change at CRF 20 / 28 / 36Mean VMAF change at CRF 20 / 28 / 36
film · blue_sky+11.2% / +4.6% / +1.9%+0.00 / +0.05 / +0.34
film · pedestrian_area+9.8% / +1.8% / +0.8%+0.28 / +0.61 / +0.31
film · riverbed+4.8% / +2.0% / +1.1%+0.00 / +0.82 / +0.59
film · rush_hour+12.5% / +1.7% / +0.3%+0.45 / +0.33 / +0.29
grain · blue_sky+82.7% / +44.8% / +37.1%+0.00 / +0.45 / +8.02
grain · pedestrian_area+66.1% / +32.0% / +25.7%+0.89 / +5.20 / +8.81
grain · riverbed+58.7% / +49.2% / +51.0%+0.02 / +10.83 / +19.05
grain · rush_hour+81.3% / +34.8% / +28.8%+2.73 / +5.22 / +8.13
animation · blue_sky−0.7% / +4.4% / +3.6%+0.00 / +0.23 / +3.63
animation · pedestrian_area−17.5% / −12.8% / −12.2%−0.09 / +0.55 / +1.01
animation · riverbed+2.7% / −1.1% / −5.4%+0.00 / +2.59 / +3.79
animation · rush_hour−22.4% / −12.7% / −15.5%+0.02 / +0.18 / +0.63

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))

Tune · clipCRF 22CRF 30CRF 38
grain · blue_sky+24.9% (0.0)+20.6% (+1.6)+31.8% (−0.9)
grain · pedestrian_area+68.1% (+1.4)+50.3% (+2.8)+54.1% (+3.8)
grain · riverbed+5.8% (+0.4)+5.8% (+1.0)+0.0% (+1.0)
grain · rush_hour+79.6% (+3.3)+66.5% (+6.2)+88.8% (+10.2)
animation · blue_sky−3.9% (0.0)−4.6% (−0.2)−6.2% (−0.6)
animation · pedestrian_area−28.6% (−0.9)−24.2% (−2.7)−20.6% (−4.8)
animation · riverbed−18.3% (−0.8)−20.7% (−3.2)−20.9% (−3.8)
animation · rush_hour−26.7% (−1.3)−24.4% (−3.3)−20.3% (−4.2)
fastdecode · blue_sky+2.0% (0.0)+3.3% (0.0)+4.2% (−0.3)
fastdecode · pedestrian_area+1.6% (+0.2)+0.8% (−0.4)+1.5% (−0.7)
fastdecode · riverbed+0.9% (0.0)+0.7% (+0.1)+0.1% (+0.1)
fastdecode · rush_hour+4.6% (+0.4)+1.7% (−0.1)+1.5% (−0.3)

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

Clip (target VMAF)filmgrainanimation
blue_sky (99.51)*+4.3%+37.2%+2.5%
pedestrian_area (88.67)−0.4%+4.4%−14.6%
riverbed (88.97)−0.2%+3.6%−8.2%
rush_hour (84.82)+0.2%+1.6%−13.5%

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.

Clip (target VMAF)grainanimationfastdecode
blue_sky (98.08)*+10.9%+7.9%+3.6%
pedestrian_area (87.05)+34.9%−5.3%+4.4%
riverbed (79.56)+2.3%−9.0%+0.2%
rush_hour (81.82)+18.5%−1.1%+3.1%

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.

x264 CRF 36 · blue_skySize (kbps)Mean VMAF5th percentile VMAFMinimum VMAF
no tune961.583.57675.25970.971
film980.283.91875.671.072
grain1,318.491.59287.41778.76
animation996.287.2180.60774.577

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

SettingEncoding CPU time ratio (utime)Decoding CPU time ratio (dec_utime)
x264 film0.98–1.06×—
x264 grain1.07–1.26×—
x264 animation1.00–1.56×—
x265 grain0.93–1.76×—
x265 animation0.99–1.19×—
x265 fastdecode0.80–0.90×0.68–0.94×

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