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

VP9 vs HEVC (x265) at the Same VMAF: Which Gives Smaller Files, and How Much Slower Is It? (x264 Baseline Included)

We encoded four 10-second 1080p25 clips with x264, x265 (medium) and VP9 (libvpx, cpu-used 2 and 5) at six steps each, then interpolated every curve to find the file size and CPU time at a mean VMAF of 93 and 95. In all 14 comparisons that could be computed, VP9 files were smaller than x265 medium (by 3.9–21.3%), while CPU time flipped depending on the clip, from 0.54× to 2.81×.

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

At a mean VMAF of 93, VP9 (libvpx) produced a smaller file than x265 medium on all four clips (cpu-used 2: −6.9% to −18.9%, cpu-used 5: −3.9% to −21.3%). Encoding time, on the other hand, flipped depending on the clip. On blue_sky, VP9 cpu-used 2 used 2.81× the CPU time of x265, while on riverbed, VP9 cpu-used 5 used only 0.54×. At the same VMAF, x264 medium files were 5.5–47.1% larger than x265. All values are interpolated from the six CRF points.

Why we measured this

VP9 and HEVC are codecs of a similar generation and are often compared, but our earlier measurements only pitted VP9 against AV1 (VP9 vs AV1) and x265 against SVT-AV1 (x265 vs SVT-AV1 at the same VMAF). We had never compared the two directly. CRF values mean different things in different codecs, so you can't compare the same numbers across them. Instead, this article interpolates each encoder's (file size, VMAF) curve and compares file size and CPU time at the point where the mean VMAF is the same. In our cpu-used step-by-step measurement, VP9's efficiency and speed differed by step, so we included both a slow setting (2) and a middle setting (5). x264 medium is the baseline.

These are interpolated values, not targeted encodes

We did not encode with a VMAF 93 or 95 target. For each encoder we connected the points from six CRF values and calculated the result from the two points on either side of the target VMAF. Where the VMAF gap between neighboring points is more than 10 points (riverbed x264 16.6 points, x265 10.1 points, blue_sky x264 11.3 points), the interpolation error may be large. If a target was outside the range of measured points, we did not extrapolate and wrote "not reached" instead.

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 frame by frame against the original. Mean (vmaf_mean), bottom 5% (vmaf_p5), minimum (vmaf_min)
Time metricutime_s in the CSV (total CPU time used by the process). Wall-clock time (rtime_s) fluctuates with other jobs, so we did not use it in this article
Measured on2026-11-14 (4 clips × 4 encoder settings × 6 steps = 96 encodes)

VMAF is a quality metric developed 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 bottom 5% (p5) is the score at the 5% mark from the worst end of the 250 frames.

Encoder settings

EncoderPresetSix quality valuesCommand (key options)
x264medium20, 25, 30, 35, 40, 45-c:v libx264 -preset medium -crf Q -threads 4
x265medium22, 27, 32, 37, 42, 47-c:v libx265 -preset medium -crf Q -x265-params pools=4:log-level=error
VP9cpu-used 228, 34, 40, 46, 52, 58-c:v libvpx-vp9 -cpu-used 2 -crf Q -b:v 0 -row-mt 1 -threads 4
VP9cpu-used 528, 34, 40, 46, 52, 58-c:v libvpx-vp9 -cpu-used 5 -crf Q -b:v 0 -row-mt 1 -threads 4

Input and output paths are omitted. Each value above was substituted for Q in turn. CRF means something different in each codec, so the ranges differ.

How we interpolated

For a target VMAF T, we found the two adjacent measured points around it (mean VMAF v1 > v2, bitrates b1 and b2, CPU times t1 and t2) and computed f = (v1 − T) ÷ (v1 − v2). Then bitrate = b1 × (b2/b1)^f and CPU time = t1 × (t2/t1)^f (log-scale interpolation). Bitrate is the kbps column in the CSV and is proportional to file size, so the bitrate savings equal the file size savings. You can recompute the values yourself from kbps, utime_s and vmaf_mean in the CSV.

Test clip sources and licenses

All four clips are 1080p25 video made by TUM / Taurus Media Technik (2001), downloaded from the Xiph.org derf collection (media.xiph.org/video/derf/y4m/). The accompanying ReadMe_1080p.txt states "Restrictions of use: No restrictions" and "Copyright: No Copyright" (checked 2026-11-08).

Results by clip (raw data)

In the curves, the horizontal axis is bitrate and the vertical axis is VMAF. At the same height (the same VMAF), the encoder whose curve is further left reached the same score with a smaller file. blue_sky saturates above VMAF 99 at low CRF values, so the useful part for comparison is the high-CRF end. Speed fluctuates because the jobs ran at IDLE priority, so treat it as a rough guide.

blue_sky — blue sky and tree branches

405060708090100200k500k1M2M5M10MBitrate (bps, log scale)VMAFx264 (H.264) q=45: 444.2 kbps, VMAF 46.217x264 (H.264) q=40: 656.5 kbps, VMAF 68.105x264 (H.264) q=35: 1,068.6 kbps, VMAF 86.89x264 (H.264) q=30: 1,916.7 kbps, VMAF 98.224x264 (H.264) q=25: 3,868.7 kbps, VMAF 99.965x264 (H.264) q=20: 9,140.9 kbps, VMAF 99.979x265 (HEVC) q=47: 171.7 kbps, VMAF 45.04x265 (HEVC) q=42: 369.4 kbps, VMAF 67.54x265 (HEVC) q=37: 728.9 kbps, VMAF 84.747x265 (HEVC) q=32: 1,420.9 kbps, VMAF 95.756x265 (HEVC) q=27: 2,882.1 kbps, VMAF 99.743x265 (HEVC) q=22: 6,348.2 kbps, VMAF 99.977VP9 (libvpx) · preset 2 q=58: 538.4 kbps, VMAF 81.196VP9 (libvpx) · preset 2 q=52: 891.4 kbps, VMAF 90.718VP9 (libvpx) · preset 2 q=46: 1,495.6 kbps, VMAF 97.449VP9 (libvpx) · preset 2 q=40: 2,570 kbps, VMAF 99.867VP9 (libvpx) · preset 2 q=34: 4,761.9 kbps, VMAF 99.979VP9 (libvpx) · preset 2 q=28: 8,553.5 kbps, VMAF 99.982VP9 (libvpx) · preset 5 q=58: 516.7 kbps, VMAF 79.363VP9 (libvpx) · preset 5 q=52: 862.2 kbps, VMAF 89.456VP9 (libvpx) · preset 5 q=46: 1,414.5 kbps, VMAF 96.847VP9 (libvpx) · preset 5 q=40: 2,443.8 kbps, VMAF 99.82VP9 (libvpx) · preset 5 q=34: 4,375.6 kbps, VMAF 99.979VP9 (libvpx) · preset 5 q=28: 7,940.8 kbps, VMAF 99.983
x264 (H.264)x265 (HEVC)VP9 (libvpx) · preset 2VP9 (libvpx) · preset 5
blue_sky — blue sky and tree branches — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
VP9 (libvpx) · preset 2288,553.5 kbps99.98100.0041.306.52138.0
VP9 (libvpx) · preset 2344,761.9 kbps99.98100.0039.857.53118.1
VP9 (libvpx) · preset 2402,570 kbps99.8798.9638.148.48103.5
VP9 (libvpx) · preset 2461,495.6 kbps97.4592.8436.369.394.5
VP9 (libvpx) · preset 252891.4 kbps90.7285.2134.499.6991.1
VP9 (libvpx) · preset 258538.4 kbps81.2074.3732.5510.0987.5
VP9 (libvpx) · preset 5287,940.8 kbps99.98100.0041.008.0591.0
VP9 (libvpx) · preset 5344,375.6 kbps99.98100.0039.469.8774.2
VP9 (libvpx) · preset 5402,443.8 kbps99.8298.5437.7312.0559.8
VP9 (libvpx) · preset 5461,414.5 kbps96.8592.1435.9013.9951.2
VP9 (libvpx) · preset 552862.2 kbps89.4683.5434.0215.9444.1
VP9 (libvpx) · preset 558516.7 kbps79.3672.8132.0617.4838.9
x264 (H.264) · preset medium209,140.9 kbps99.98100.0041.1020.4934.4
x264 (H.264) · preset medium253,868.7 kbps99.97100.0038.8229.423.8
x264 (H.264) · preset medium301,916.7 kbps98.2293.7836.1538.2619.4
x264 (H.264) · preset medium351,068.6 kbps86.8979.3433.1746.3816.1
x264 (H.264) · preset medium40656.5 kbps68.1158.8030.0749.615.3
x264 (H.264) · preset medium45444.2 kbps46.2237.8726.9450.6214.5
x265 (HEVC) · preset medium226,348.2 kbps99.98100.0041.1416.0462.6
x265 (HEVC) · preset medium272,882.1 kbps99.7497.8838.9322.6443.9
x265 (HEVC) · preset medium321,420.9 kbps95.7688.5636.3628.634.3
x265 (HEVC) · preset medium37728.9 kbps84.7575.8833.5532.8528.9
x265 (HEVC) · preset medium42369.4 kbps67.5457.3630.5037.7624.8
x265 (HEVC) · preset medium47171.7 kbps45.0435.4227.2441.4922.3
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

2030405060708090100200k500k1M2M5MBitrate (bps, log scale)VMAFx264 (H.264) q=45: 440.2 kbps, VMAF 28.165x264 (H.264) q=40: 706.5 kbps, VMAF 48.43x264 (H.264) q=35: 1,164 kbps, VMAF 68.698x264 (H.264) q=30: 1,981.2 kbps, VMAF 84.209x264 (H.264) q=25: 3,563.2 kbps, VMAF 94.013x264 (H.264) q=20: 7,819.9 kbps, VMAF 98.753x265 (HEVC) q=47: 195.9 kbps, VMAF 24.347x265 (HEVC) q=42: 341.1 kbps, VMAF 45.205x265 (HEVC) q=37: 647.8 kbps, VMAF 66.026x265 (HEVC) q=32: 1,164.4 kbps, VMAF 82.22x265 (HEVC) q=27: 2,123.4 kbps, VMAF 92.439x265 (HEVC) q=22: 4,357.1 kbps, VMAF 97.842VP9 (libvpx) · preset 2 q=58: 544.4 kbps, VMAF 65.59VP9 (libvpx) · preset 2 q=52: 812.4 kbps, VMAF 76.521VP9 (libvpx) · preset 2 q=46: 1,222.7 kbps, VMAF 85.289VP9 (libvpx) · preset 2 q=40: 1,864.9 kbps, VMAF 91.775VP9 (libvpx) · preset 2 q=34: 3,007.7 kbps, VMAF 96.183VP9 (libvpx) · preset 2 q=28: 5,089.4 kbps, VMAF 98.468VP9 (libvpx) · preset 5 q=58: 547.5 kbps, VMAF 63.718VP9 (libvpx) · preset 5 q=52: 815.5 kbps, VMAF 74.844VP9 (libvpx) · preset 5 q=46: 1,207.9 kbps, VMAF 84.153VP9 (libvpx) · preset 5 q=40: 1,826.6 kbps, VMAF 91.09VP9 (libvpx) · preset 5 q=34: 2,900.7 kbps, VMAF 95.846VP9 (libvpx) · preset 5 q=28: 4,768.6 kbps, VMAF 98.381
x264 (H.264)x265 (HEVC)VP9 (libvpx) · preset 2VP9 (libvpx) · preset 5
pedestrian_area — pedestrian street — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
VP9 (libvpx) · preset 2285,089.4 kbps98.4795.4241.506.07148.8
VP9 (libvpx) · preset 2343,007.7 kbps96.1892.6740.547.67117.2
VP9 (libvpx) · preset 2401,864.9 kbps91.7887.9539.379.1496.6
VP9 (libvpx) · preset 2461,222.7 kbps85.2980.9838.0310.7381.7
VP9 (libvpx) · preset 252812.4 kbps76.5271.4436.5512.3169.8
VP9 (libvpx) · preset 258544.4 kbps65.5959.3034.9213.2865.2
VP9 (libvpx) · preset 5284,768.6 kbps98.3895.3641.168.5990.7
VP9 (libvpx) · preset 5342,900.7 kbps95.8592.3540.1511.169.7
VP9 (libvpx) · preset 5401,826.6 kbps91.0987.1138.9813.5155.8
VP9 (libvpx) · preset 5461,207.9 kbps84.1579.5037.6415.8746.9
VP9 (libvpx) · preset 552815.5 kbps74.8469.1936.1718.4839.7
VP9 (libvpx) · preset 558547.5 kbps63.7256.9934.5619.8237.3
x264 (H.264) · preset medium207,819.9 kbps98.7595.9741.6517.2843.2
x264 (H.264) · preset medium253,563.2 kbps94.0191.0839.9626.1431.9
x264 (H.264) · preset medium301,981.2 kbps84.2181.3337.8533.9626.4
x264 (H.264) · preset medium351,164 kbps68.7066.0135.4541.3921.5
x264 (H.264) · preset medium40706.5 kbps48.4345.6032.8546.3418.9
x264 (H.264) · preset medium45440.2 kbps28.1625.2029.9748.3515.9
x265 (HEVC) · preset medium224,357.1 kbps97.8495.0641.4811.6284.8
x265 (HEVC) · preset medium272,123.4 kbps92.4489.5539.7714.8766.4
x265 (HEVC) · preset medium321,164.4 kbps82.2279.5337.6318.1154.6
x265 (HEVC) · preset medium37647.8 kbps66.0362.6935.2022.0244.5
x265 (HEVC) · preset medium42341.1 kbps45.2040.8132.4826.4435.6
x265 (HEVC) · preset medium47195.9 kbps24.3519.5029.7631.2429.3
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (fine ripples)

20304050607080901001M2M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) q=45: 1,160.2 kbps, VMAF 23.088x264 (H.264) q=40: 2,576.3 kbps, VMAF 34.707x264 (H.264) q=35: 5,042.6 kbps, VMAF 57.622x264 (H.264) q=30: 9,188.1 kbps, VMAF 81.34x264 (H.264) q=25: 16,448.9 kbps, VMAF 97.933x264 (H.264) q=20: 29,769.2 kbps, VMAF 99.957x265 (HEVC) q=47: 627.9 kbps, VMAF 23.078x265 (HEVC) q=42: 1,262.9 kbps, VMAF 31.42x265 (HEVC) q=37: 2,944.2 kbps, VMAF 50.572x265 (HEVC) q=32: 5,880.9 kbps, VMAF 71.632x265 (HEVC) q=27: 10,736.4 kbps, VMAF 89.473x265 (HEVC) q=22: 19,060.6 kbps, VMAF 99.592VP9 (libvpx) · preset 2 q=58: 2,637.5 kbps, VMAF 53.556VP9 (libvpx) · preset 2 q=52: 4,294.8 kbps, VMAF 68.482VP9 (libvpx) · preset 2 q=46: 6,778.8 kbps, VMAF 82.305VP9 (libvpx) · preset 2 q=40: 10,510 kbps, VMAF 92.828VP9 (libvpx) · preset 2 q=34: 16,267.8 kbps, VMAF 99.173VP9 (libvpx) · preset 2 q=28: 23,868.2 kbps, VMAF 99.981VP9 (libvpx) · preset 5 q=58: 2,502.2 kbps, VMAF 52.167VP9 (libvpx) · preset 5 q=52: 4,026.7 kbps, VMAF 66.462VP9 (libvpx) · preset 5 q=46: 6,275.9 kbps, VMAF 80.882VP9 (libvpx) · preset 5 q=40: 9,686.8 kbps, VMAF 92.008VP9 (libvpx) · preset 5 q=34: 14,933.8 kbps, VMAF 98.75VP9 (libvpx) · preset 5 q=28: 22,198.7 kbps, VMAF 99.98
x264 (H.264)x265 (HEVC)VP9 (libvpx) · preset 2VP9 (libvpx) · preset 5
riverbed — riverbed (fine ripples) — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
VP9 (libvpx) · preset 22823,868.2 kbps99.98100.0040.153.43268.8
VP9 (libvpx) · preset 23416,267.8 kbps99.1796.9738.613.82242.1
VP9 (libvpx) · preset 24010,510 kbps92.8386.9536.794.3214.1
VP9 (libvpx) · preset 2466,778.8 kbps82.3174.1934.914.97186.0
VP9 (libvpx) · preset 2524,294.8 kbps68.4859.4532.985.51166.1
VP9 (libvpx) · preset 2582,637.5 kbps53.5644.2931.076.08148.5
VP9 (libvpx) · preset 52822,198.7 kbps99.98100.0039.804.24200.6
VP9 (libvpx) · preset 53414,933.8 kbps98.7596.0338.225.4154.3
VP9 (libvpx) · preset 5409,686.8 kbps92.0185.7936.436.63126.4
VP9 (libvpx) · preset 5466,275.9 kbps80.8872.5234.597.98104.4
VP9 (libvpx) · preset 5524,026.7 kbps66.4657.0932.729.9481.0
VP9 (libvpx) · preset 5582,502.2 kbps52.1742.9730.8411.1269.6
x264 (H.264) · preset medium2029,769.2 kbps99.96100.0039.7711.5989.8
x264 (H.264) · preset medium2516,448.9 kbps97.9396.2437.0513.3877.7
x264 (H.264) · preset medium309,188.1 kbps81.3479.2834.2616.0865.1
x264 (H.264) · preset medium355,042.6 kbps57.6254.5231.3918.9250.7
x264 (H.264) · preset medium402,576.3 kbps34.7131.5928.2921.2935.3
x264 (H.264) · preset medium451,160.2 kbps23.0920.2425.4823.0324.6
x265 (HEVC) · preset medium2219,060.6 kbps99.5998.1138.693.52278.7
x265 (HEVC) · preset medium2710,736.4 kbps89.4785.2836.124.37224.7
x265 (HEVC) · preset medium325,880.9 kbps71.6366.2433.455.59176.4
x265 (HEVC) · preset medium372,944.2 kbps50.5745.1530.737.32134.1
x265 (HEVC) · preset medium421,262.9 kbps31.4226.5428.1410.8989.6
x265 (HEVC) · preset medium47627.9 kbps23.0820.5226.2018.4353.0
riverbed — riverbed (fine ripples) — all measurements

rush_hour — evening rush-hour traffic

2030405060708090100100k200k500k1M2M5MBitrate (bps, log scale)VMAFx264 (H.264) q=45: 281.9 kbps, VMAF 32.177x264 (H.264) q=40: 534.7 kbps, VMAF 49.19x264 (H.264) q=35: 981.2 kbps, VMAF 66.752x264 (H.264) q=30: 1,778.7 kbps, VMAF 80.568x264 (H.264) q=25: 3,381.4 kbps, VMAF 89.933x264 (H.264) q=20: 8,033 kbps, VMAF 95.617x265 (HEVC) q=47: 109.8 kbps, VMAF 26.303x265 (HEVC) q=42: 202 kbps, VMAF 43.394x265 (HEVC) q=37: 432.8 kbps, VMAF 61.86x265 (HEVC) q=32: 917.1 kbps, VMAF 76.914x265 (HEVC) q=27: 1,899.3 kbps, VMAF 87.409x265 (HEVC) q=22: 4,009.4 kbps, VMAF 93.759VP9 (libvpx) · preset 2 q=58: 434.7 kbps, VMAF 64.192VP9 (libvpx) · preset 2 q=52: 701.7 kbps, VMAF 73.916VP9 (libvpx) · preset 2 q=46: 1,125.8 kbps, VMAF 81.722VP9 (libvpx) · preset 2 q=40: 1,830.3 kbps, VMAF 88.182VP9 (libvpx) · preset 2 q=34: 3,108.9 kbps, VMAF 92.851VP9 (libvpx) · preset 2 q=28: 5,259.5 kbps, VMAF 95.688VP9 (libvpx) · preset 5 q=58: 441.5 kbps, VMAF 62.867VP9 (libvpx) · preset 5 q=52: 703.2 kbps, VMAF 72.655VP9 (libvpx) · preset 5 q=46: 1,099 kbps, VMAF 81VP9 (libvpx) · preset 5 q=40: 1,767.8 kbps, VMAF 87.781VP9 (libvpx) · preset 5 q=34: 2,965 kbps, VMAF 92.668VP9 (libvpx) · preset 5 q=28: 4,911.9 kbps, VMAF 95.681
x264 (H.264)x265 (HEVC)VP9 (libvpx) · preset 2VP9 (libvpx) · preset 5
rush_hour — evening rush-hour traffic — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
VP9 (libvpx) · preset 2285,259.5 kbps95.6993.8042.195.77156.8
VP9 (libvpx) · preset 2343,108.9 kbps92.8590.4741.447.27122.8
VP9 (libvpx) · preset 2401,830.3 kbps88.1885.0640.478.82100.4
VP9 (libvpx) · preset 2461,125.8 kbps81.7277.9039.3010.2885.6
VP9 (libvpx) · preset 252701.7 kbps73.9269.7737.9412.2470.1
VP9 (libvpx) · preset 258434.7 kbps64.1959.8936.3613.6463.3
VP9 (libvpx) · preset 5284,911.9 kbps95.6893.8141.847.39101.2
VP9 (libvpx) · preset 5342,965 kbps92.6790.2441.049.8978.1
VP9 (libvpx) · preset 5401,767.8 kbps87.7884.5940.1112.4262.1
VP9 (libvpx) · preset 5461,099 kbps81.0077.0338.9514.9950.0
VP9 (libvpx) · preset 552703.2 kbps72.6668.3637.5917.9941.0
VP9 (libvpx) · preset 558441.5 kbps62.8758.3535.9819.4637.1
x264 (H.264) · preset medium208,033 kbps95.6294.0942.0416.9349.7
x264 (H.264) · preset medium253,381.4 kbps89.9387.9440.7926.2633.5
x264 (H.264) · preset medium301,778.7 kbps80.5777.9439.1035.3925.6
x264 (H.264) · preset medium35981.2 kbps66.7563.4336.9443.8120.3
x264 (H.264) · preset medium40534.7 kbps49.1945.0334.294716.0
x264 (H.264) · preset medium45281.9 kbps32.1827.8831.2348.4213.7
x265 (HEVC) · preset medium224,009.4 kbps93.7692.0641.7710.1996.9
x265 (HEVC) · preset medium271,899.3 kbps87.4185.1340.4114.1469.5
x265 (HEVC) · preset medium32917.1 kbps76.9173.6838.5419.7349.9
x265 (HEVC) · preset medium37432.8 kbps61.8658.2136.2125.536.3
x265 (HEVC) · preset medium42202 kbps43.3939.1333.4729.8228.6
x265 (HEVC) · preset medium47109.8 kbps26.3022.4930.7131.8125.0
rush_hour — evening rush-hour traffic — all measurements

How to read it, and what we saw

1. File size and CPU time at VMAF 93

Clipx264 mediumx265 mediumVP9 cpu-used 2VP9 cpu-used 5
blue_sky1,464 kbps / 17.8 s1,202 kbps / 32.8 s1,062 kbps / 92.3 s1,093 kbps / 47.4 s
pedestrian_area3,354 kbps / 31.3 s2,288 kbps / 68.1 s2,130 kbps / 101.9 s2,200 kbps / 61.1 s
riverbed13,834 kbps / 73.7 s13,116 kbps / 242.2 s10,638 kbps / 214.8 s10,325 kbps / 130.2 s
rush_hour5,394 kbps / 41.4 s3,667 kbps / 93.1 s3,196 kbps / 124.4 s3,135 kbps / 80.4 s

Bitrate (kbps) / CPU time (utime, seconds) interpolated at a mean VMAF of 93. For a 10-second clip, kbps × 1.25 ÷ 1,000 gives the size in MB.

2. File size and CPU time at VMAF 95

Clipx264 mediumx265 mediumVP9 cpu-used 2VP9 cpu-used 5
blue_sky1,623 kbps / 18.4 s1,357 kbps / 33.9 s1,239 kbps / 93.3 s1,250 kbps / 49.3 s
pedestrian_area4,197 kbps / 34.0 s2,985 kbps / 74.5 s2,646 kbps / 111.3 s2,672 kbps / 67.0 s
riverbed14,840 kbps / 75.3 s14,690 kbps / 252.7 s12,208 kbps / 223.3 s11,737 kbps / 138.1 s
rush_hour7,313 kbps / 47.6 sNot reached4,630 kbps / 147.8 s4,382 kbps / 95.5 s

"Not reached" means the mean VMAF did not reach 95 at any of the measured CRF values (the best score for rush_hour x265 medium was 93.8). On the same clip, VP9 reached 95.7 and x264 reached 95.6.

3. Versus x265 medium: VP9's size difference and CPU time multiple

ClipVMAFVP9 cpu-used 2: size / CPU timeVP9 cpu-used 5: size / CPU time
blue_sky93−11.6% / 2.81×−9.1% / 1.44×
blue_sky95−8.7% / 2.75×−7.9% / 1.46×
pedestrian_area93−6.9% / 1.50×−3.9% / 0.90×
pedestrian_area95−11.4% / 1.49×−10.5% / 0.90×
riverbed93−18.9% / 0.89×−21.3% / 0.54×
riverbed95−16.9% / 0.88×−20.1% / 0.55×
rush_hour93−12.8% / 1.34×−14.5% / 0.86×
rush_hour95Not reachedNot reached

Calculated from tables 1 and 2 above (computed from the unrounded interpolated values, then rounded). A minus sign in size means VP9 is smaller. CPU time is VP9 ÷ x265 medium. For rush_hour at 95, x265 medium did not reach the target.

  • Size went in one direction only. In all 14 comparisons that could be computed (two VP9 settings × 7), VP9 was smaller than x265 medium. The range runs from 3.9% (pedestrian_area, cpu-used 5, VMAF 93) to 21.3% (riverbed, cpu-used 5, VMAF 93). In this data there was no case where VP9 was larger for a given clip.
  • Time flipped depending on the clip. VP9 cpu-used 2 used 0.88–2.81× the CPU time of x265, and cpu-used 5 used 0.54–1.46×. On blue_sky, VP9 was slower at 1.44–2.81×, but on riverbed both settings used less than x265 (0.54–0.89×). riverbed is a clip where x265 medium took an unusually long 242.2 s (VMAF 93). It is hard to boil "how many times slower" down to a single number.
  • The biggest savings were on riverbed (−16.9% to −21.3%); the smallest were on pedestrian_area at VMAF 93 (−3.9%, −6.9%). At VMAF 95, though, even pedestrian_area grew to −10.5% and −11.4%. The result also depends on the target quality.
  • On pedestrian_area, rush_hour and riverbed, VP9 cpu-used 5 produced smaller files than x265 medium and also used less CPU time (0.54–0.90×). Only blue_sky took more, at 1.44–1.46×.

4. Within VP9: cpu-used 2 vs 5 (VMAF 93)

Clipcpu-used 2 vs 5: sizecpu-used 2 vs 5: CPU time
blue_sky−2.8%1.95×
pedestrian_area−3.2%1.67×
riverbed+3.0%1.65×
rush_hour+1.9%1.55×

Calculated from table 1. At VMAF 95, the size difference was blue_sky −0.9%, pedestrian_area −1.0%, riverbed +4.0% and rush_hour +5.7% (table 2).

  • The slower setting (cpu-used 2) was not always smaller. It used 1.55–1.95× the CPU time (VMAF 93), but the file got smaller only on blue_sky and pedestrian_area (−2.8%, −3.2%); on riverbed and rush_hour it was actually larger (+3.0%, +1.9%). At VMAF 95 the gap widened to +4.0% and +5.7%. We also covered VP9's cpu-used efficiency in the cpu-used step-by-step measurement.
  • So the answer to "does slow VP9 beat HEVC?" is that both settings won on file size. In this data, we could not confirm a size-based reason to use cpu-used 2 (cpu-used 5 was smaller on riverbed and rush_hour); it only cost more time.

5. Baseline: how much larger was x264 medium than x265?

ClipVMAF 93: x264 ÷ x265 size / CPU timeVMAF 95: x264 ÷ x265 size / CPU time
blue_sky+21.8% / 0.54×+19.6% / 0.54×
pedestrian_area+46.6% / 0.46×+40.6% / 0.46×
riverbed+5.5% / 0.30×+1.0% / 0.30×
rush_hour+47.1% / 0.45×Not reached

Calculated from tables 1 and 2. A plus sign means x264 is larger.

  • Compared with x265, x264 files were +1.0% to +47.1% larger and used 0.30–0.54× the CPU time. Compared with VP9, at the same VMAF 93 the size of VP9 cpu-used 5 relative to x264 was −25.3% on blue_sky, −34.4% on pedestrian_area, −25.4% on riverbed and −41.9% on rush_hour (values from table 1).
  • riverbed showed the smallest difference among the three codecs. x264 was only +5.5% (VMAF 93) and +1.0% (VMAF 95) larger than x265. For detail-heavy clips that need a high bitrate, switching codecs may bring a small gain. For that kind of clip, see also diminishing returns of high-quality CRF. Even so, on this clip VP9 was −23% to −25% smaller than x264 (at VMAF 93, cpu-used 2: 10,638 vs 13,834 kbps).

Limitations

  • These are interpolated values. We did not actually encode to hit VMAF 93 or 95. Where points are far apart the error may be large (riverbed x264: interpolated between points with a mean VMAF of 97.9 and 81.3).
  • blue_sky saturates in VMAF early. At low CRF values it scores 99 or higher regardless of encoder, so the comparison here used only the high-CRF points (around CRF 32–37 for x265 and CRF 46–52 for VP9). The range we compared is only part of the curve.
  • Some combinations did not reach the target. On rush_hour, x265 medium stayed at a mean VMAF of 93.8 even at its lowest CRF (22), so the comparison at 95 is empty. Measuring a lower CRF would have filled it in.
  • There are only four 10-second clips. Their character differs (landscape, city, ripples), but animation, screen recordings, dark video and noisy video are missing. Do not apply the savings shown here (3.9–21.3%) directly to other video.
  • VMAF does not fully capture each codec's visual character. The same mean VMAF is not guaranteed to look the same to a human viewer, and each codec has its own way of producing blocking or smearing. The bottom 5%, rather than the mean, may also have differed by codec, but we did not interpolate it in this article. For important video, check it yourself. For a result where VMAF differed a lot at the same PSNR, see PSNR vs VMAF measured.
  • 8-bit yuv420p, 4 threads per job, and one preset step each. We did not measure x265 slow or slower, or other VP9 cpu-used values. The time multiples may change with the thread count and the row-mt setting.
  • One PC, one measurement. We did not run repeated measurements to estimate error. Time is CPU time (utime) and the jobs ran at IDLE priority, so it is for reference only.

Practical recommendations

  • If VP9 works in your environment, you can expect smaller files than x265 medium. In this data the savings were 3.9–21.3%, but they varied a lot by clip, so try it first on one or two representative videos (see the CRF equivalence table and the CRF recommender).
  • If you use VP9, start with cpu-used 5. In this data, cpu-used 2 took 1.55–1.95× the CPU time and gave no big gain in size (−3.2% to +3.0% at VMAF 93).
  • If time matters, look at the type of video first. On a simple clip like blue_sky, VP9 was more than 1.4× slower than x265, while on a complex clip like riverbed it actually took less time. Before a large batch, it is safer to time a sample.
  • Check playback compatibility first. A smaller file is no use if the target device can't play it. Check your target environment with codec support check before choosing. For a codec comparison at equal encoding time, see iso-time codec showdown.
  • If you have a file size target, work out the kbps first with the [video size and bitrate calculator](/en/tools/video-bitrate-size-calculator) and compare it with the tables in this article. The values here are for 10-second clips.

You can download the full raw data as a CSV at the bottom of the page. You can recompute the interpolated values yourself from kbps, utime_s and vmaf_mean in the CSV.

Raw data: vp9-vs-hevc-x265-equal-vmaf-v1.csv