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

VP9 cpu-used 2 to 8 Tested: How Much File Size Do Slower libvpx Settings Save? (File Size, VMAF and Encoding Time)

We ran libvpx-vp9 with -cpu-used 2, 3, 4, 5, 6 and 8 on four 10-second 1080p25 clips. cpu-used 5, 6 and 8 produced identical file sizes and VMAF. At the same VMAF, cpu-used 2 to 4 gave files from 2% smaller to 7% larger than cpu-used 5 and above, while using 1.1 to 1.8x the CPU time.

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

In this data, slower cpu-used values did not save file size. Taking cpu-used 5 and above as 100% at the same VMAF, cpu-used 2 came to 98–105% (two clips 1–2% smaller, two clips 3–5% larger) at 1.6–1.8x the CPU time, cpu-used 3 to 101–107% at 1.2–1.3x, and cpu-used 4 to 103–107% at 1.1–1.2x. On top of that, cpu-used 5, 6 and 8 gave the same file size and VMAF on all four clips, to the last digit, so in this configuration there was no reason to pick 6 or 8 over 5.

Why we ran this

When you encode VP9 (libvpx-vp9) with FFmpeg, you have to choose a -cpu-used value yourself. Lower numbers are known to be slower and more efficient, but it is hard to see in numbers how much slower they get and how much file size they save. Our earlier VP9 vs libaom test used only two values, cpu-used 2 and 5, and the codec showdown at similar speeds and the 1080p real-time preset test covered only some VP9 settings. This time we look at VP9 alone, running cpu-used 2, 3, 4, 5, 6 and 8 at the same four CRF values, to see how file size and encoding time change at the same VMAF. We do not compare against AV1 or other codecs.

Changing the setting changes the quality even at the same CRF, so we compare file size at the same VMAF rather than at the same CRF. Varying only the speed setting within one encoder is the same approach as the SVT-AV1 preset test.

Test setup

ItemDetails
FFmpeg9.0.2 (gyan.dev full_build). The libvpx version itself was not recorded
PCOne machine: AMD Ryzen 5 PRO 4650G (6 cores, 12 threads), 16 GB RAM
Threads per job4 (-threads 4, -row-mt 1). Process priority set to IDLE
Input formatyuv420p 8-bit, 1920x1080, 25 fps, original y4m
LengthOnly the first 250 frames (10 seconds) of each clip. Output is mkv, no audio
Quality metriclibvmaf default model (vmaf_v0.6.1), measured per frame against the original → mean (vmaf_mean), 5th percentile (vmaf_p5), minimum (vmaf_min)
Time metricElapsed time (rtime) fluctuates because of the IDLE priority, so comparisons use CPU time (utime)
Number of jobs4 clips × 6 settings (cpu-used 2, 3, 4, 5, 6, 8) × 4 CRF values (28, 36, 44, 52) = 96. cpu-used 7 sits between 6 and 8, so it was skipped
Measured on2026-11-12

VMAF is a video quality metric developed by Netflix. It compares the encoded video with the original frame by frame and scores each frame from 0 to 100. The closer to 100, the harder it is to tell the encode from the original, though the score does not replace human judgment. "Mean" is the average of the 250 per-frame scores, and "5th percentile" is the cutoff for the worst 5% of frames.

Encoder settings

Encoding with CRF 28, 36, 44 and 52 while changing only cpu-used (input/output paths omitted, -deadline not set)
ffmpeg -i clip.y4m -c:v libvpx-vp9 -cpu-used 2 -crf Q -b:v 0 -row-mt 1 -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libvpx-vp9 -cpu-used 3 -crf Q -b:v 0 -row-mt 1 -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libvpx-vp9 -cpu-used 4 -crf Q -b:v 0 -row-mt 1 -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libvpx-vp9 -cpu-used 5 -crf Q -b:v 0 -row-mt 1 -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libvpx-vp9 -cpu-used 6 -crf Q -b:v 0 -row-mt 1 -threads 4 -an out.mkv
ffmpeg -i clip.y4m -c:v libvpx-vp9 -cpu-used 8 -crf Q -b:v 0 -row-mt 1 -threads 4 -an out.mkv

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

Results by clip

In each curve, the horizontal axis is file size (bitrate, log scale) and the vertical axis is VMAF. At the same height, the curve further left reached the same quality at a smaller file size. The curves for cpu-used 5, 6 and 8 have identical values, so they appear to overlap. The tables list file size, VMAF, fps and CPU time for every setting and CRF.

blue_sky — blue sky and tree branches

80901001M2M5M10MBitrate (bps, log scale)VMAFVP9 (libvpx) · preset 2 q=52: 891.4 kbps, VMAF 90.718VP9 (libvpx) · preset 2 q=44: 1,781.7 kbps, VMAF 98.74VP9 (libvpx) · preset 2 q=36: 3,830.8 kbps, VMAF 99.978VP9 (libvpx) · preset 2 q=28: 8,553.5 kbps, VMAF 99.982VP9 (libvpx) · preset 3 q=52: 892.7 kbps, VMAF 90.317VP9 (libvpx) · preset 3 q=44: 1,786.9 kbps, VMAF 98.713VP9 (libvpx) · preset 3 q=36: 3,887.1 kbps, VMAF 99.978VP9 (libvpx) · preset 3 q=28: 8,763 kbps, VMAF 99.983VP9 (libvpx) · preset 4 q=52: 876.9 kbps, VMAF 89.591VP9 (libvpx) · preset 4 q=44: 1,763.5 kbps, VMAF 98.458VP9 (libvpx) · preset 4 q=36: 3,826.2 kbps, VMAF 99.979VP9 (libvpx) · preset 4 q=28: 8,784.6 kbps, VMAF 99.984VP9 (libvpx) · preset 5 q=52: 862.2 kbps, VMAF 89.456VP9 (libvpx) · preset 5 q=44: 1,688.7 kbps, VMAF 98.404VP9 (libvpx) · preset 5 q=36: 3,552 kbps, VMAF 99.978VP9 (libvpx) · preset 5 q=28: 7,940.8 kbps, VMAF 99.983VP9 (libvpx) · preset 6 q=52: 862.2 kbps, VMAF 89.456VP9 (libvpx) · preset 6 q=44: 1,688.7 kbps, VMAF 98.404VP9 (libvpx) · preset 6 q=36: 3,552 kbps, VMAF 99.978VP9 (libvpx) · preset 6 q=28: 7,940.8 kbps, VMAF 99.983VP9 (libvpx) · preset 8 q=52: 862.2 kbps, VMAF 89.456VP9 (libvpx) · preset 8 q=44: 1,688.7 kbps, VMAF 98.404VP9 (libvpx) · preset 8 q=36: 3,552 kbps, VMAF 99.978VP9 (libvpx) · preset 8 q=28: 7,940.8 kbps, VMAF 99.983
VP9 (libvpx) · preset 2VP9 (libvpx) · preset 3VP9 (libvpx) · preset 4VP9 (libvpx) · preset 5VP9 (libvpx) · preset 6VP9 (libvpx) · preset 8
blue_sky — blue sky and tree branches — file size vs. VMAF (6 cpu-used values)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
VP9 (libvpx) · preset 2288,553.5 kbps99.98100.0041.307.06124.0
VP9 (libvpx) · preset 2363,830.8 kbps99.98100.0039.278.58102.9
VP9 (libvpx) · preset 2441,781.7 kbps98.7495.0836.9510.1686.1
VP9 (libvpx) · preset 252891.4 kbps90.7285.2134.4910.7181.6
VP9 (libvpx) · preset 3288,763 kbps99.98100.0041.309.2393.7
VP9 (libvpx) · preset 3363,887.1 kbps99.98100.0039.2410.9979.0
VP9 (libvpx) · preset 3441,786.9 kbps98.7194.7636.8913.1364.7
VP9 (libvpx) · preset 352892.7 kbps90.3284.3834.3815.2454.8
VP9 (libvpx) · preset 4288,784.6 kbps99.98100.0041.2210.2283.7
VP9 (libvpx) · preset 4363,826.2 kbps99.98100.0039.1112.1869.8
VP9 (libvpx) · preset 4441,763.5 kbps98.4694.7036.7414.4358.1
VP9 (libvpx) · preset 452876.9 kbps89.5984.1134.2117.2247.7
VP9 (libvpx) · preset 5287,940.8 kbps99.98100.0041.008.9982.4
VP9 (libvpx) · preset 5363,552 kbps99.98100.0038.8711.5863.2
VP9 (libvpx) · preset 5441,688.7 kbps98.4094.5936.5214.4949.3
VP9 (libvpx) · preset 552862.2 kbps89.4683.5434.0217.0240.9
VP9 (libvpx) · preset 6287,940.8 kbps99.98100.0041.008.9281.8
VP9 (libvpx) · preset 6363,552 kbps99.98100.0038.8711.5863.1
VP9 (libvpx) · preset 6441,688.7 kbps98.4094.5936.5214.3349.0
VP9 (libvpx) · preset 652862.2 kbps89.4683.5434.0217.1540.6
VP9 (libvpx) · preset 8287,940.8 kbps99.98100.0041.008.9281.9
VP9 (libvpx) · preset 8363,552 kbps99.98100.0038.8711.5663.7
VP9 (libvpx) · preset 8441,688.7 kbps98.4094.5936.5214.2650.3
VP9 (libvpx) · preset 852862.2 kbps89.4683.5434.0216.7841.8
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

7080901001M2M5MBitrate (bps, log scale)VMAFVP9 (libvpx) · preset 2 q=52: 812.4 kbps, VMAF 76.521VP9 (libvpx) · preset 2 q=44: 1,409 kbps, VMAF 87.788VP9 (libvpx) · preset 2 q=36: 2,542.8 kbps, VMAF 94.882VP9 (libvpx) · preset 2 q=28: 5,089.4 kbps, VMAF 98.468VP9 (libvpx) · preset 3 q=52: 819.1 kbps, VMAF 76.208VP9 (libvpx) · preset 3 q=44: 1,434.5 kbps, VMAF 87.519VP9 (libvpx) · preset 3 q=36: 2,608.1 kbps, VMAF 94.739VP9 (libvpx) · preset 3 q=28: 5,263.5 kbps, VMAF 98.411VP9 (libvpx) · preset 4 q=52: 835.6 kbps, VMAF 75.919VP9 (libvpx) · preset 4 q=44: 1,454.9 kbps, VMAF 87.376VP9 (libvpx) · preset 4 q=36: 2,642.4 kbps, VMAF 94.591VP9 (libvpx) · preset 4 q=28: 5,241.1 kbps, VMAF 98.337VP9 (libvpx) · preset 5 q=52: 815.5 kbps, VMAF 74.844VP9 (libvpx) · preset 5 q=44: 1,381.9 kbps, VMAF 86.825VP9 (libvpx) · preset 5 q=36: 2,465.3 kbps, VMAF 94.446VP9 (libvpx) · preset 5 q=28: 4,768.6 kbps, VMAF 98.381VP9 (libvpx) · preset 6 q=52: 815.5 kbps, VMAF 74.844VP9 (libvpx) · preset 6 q=44: 1,381.9 kbps, VMAF 86.825VP9 (libvpx) · preset 6 q=36: 2,465.3 kbps, VMAF 94.446VP9 (libvpx) · preset 6 q=28: 4,768.6 kbps, VMAF 98.381VP9 (libvpx) · preset 8 q=52: 815.5 kbps, VMAF 74.844VP9 (libvpx) · preset 8 q=44: 1,381.9 kbps, VMAF 86.825VP9 (libvpx) · preset 8 q=36: 2,465.3 kbps, VMAF 94.446VP9 (libvpx) · preset 8 q=28: 4,768.6 kbps, VMAF 98.381
VP9 (libvpx) · preset 2VP9 (libvpx) · preset 3VP9 (libvpx) · preset 4VP9 (libvpx) · preset 5VP9 (libvpx) · preset 6VP9 (libvpx) · preset 8
pedestrian_area — pedestrian street — file size vs. VMAF (6 cpu-used values)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
VP9 (libvpx) · preset 2285,089.4 kbps98.4795.4241.506.61135.3
VP9 (libvpx) · preset 2362,542.8 kbps94.8891.3840.158.9298.3
VP9 (libvpx) · preset 2441,409 kbps87.7983.9038.5110.0887.0
VP9 (libvpx) · preset 252812.4 kbps76.5271.4436.5513.1464.9
VP9 (libvpx) · preset 3285,263.5 kbps98.4195.4441.458.52102.9
VP9 (libvpx) · preset 3362,608.1 kbps94.7491.0840.1011.1877.3
VP9 (libvpx) · preset 3441,434.5 kbps87.5283.3838.4412.3769.3
VP9 (libvpx) · preset 352819.1 kbps76.2170.9836.4716.0352.5
VP9 (libvpx) · preset 4285,241.1 kbps98.3495.4041.348.8599.2
VP9 (libvpx) · preset 4362,642.4 kbps94.5990.9839.9711.5973.5
VP9 (libvpx) · preset 4441,454.9 kbps87.3883.0738.3214.1758.3
VP9 (libvpx) · preset 452835.6 kbps75.9270.7836.3517.3647.0
VP9 (libvpx) · preset 5284,768.6 kbps98.3895.3641.168.9486.2
VP9 (libvpx) · preset 5362,465.3 kbps94.4590.7139.7712.162.1
VP9 (libvpx) · preset 5441,381.9 kbps86.8382.4738.1215.4648.8
VP9 (libvpx) · preset 552815.5 kbps74.8469.1936.1718.938.5
VP9 (libvpx) · preset 6284,768.6 kbps98.3895.3641.168.9686.0
VP9 (libvpx) · preset 6362,465.3 kbps94.4590.7139.7711.9962.7
VP9 (libvpx) · preset 6441,381.9 kbps86.8382.4738.1215.4247.9
VP9 (libvpx) · preset 652815.5 kbps74.8469.1936.1718.8538.5
VP9 (libvpx) · preset 8284,768.6 kbps98.3895.3641.168.9385.9
VP9 (libvpx) · preset 8362,465.3 kbps94.4590.7139.7712.3262.0
VP9 (libvpx) · preset 8441,381.9 kbps86.8382.4738.1215.4448.2
VP9 (libvpx) · preset 852815.5 kbps74.8469.1936.1718.9839.6
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (fine ripples)

607080901005M10M20MBitrate (bps, log scale)VMAFVP9 (libvpx) · preset 2 q=52: 4,294.8 kbps, VMAF 68.482VP9 (libvpx) · preset 2 q=44: 7,891.6 kbps, VMAF 86.414VP9 (libvpx) · preset 2 q=36: 14,030.8 kbps, VMAF 97.355VP9 (libvpx) · preset 2 q=28: 23,868.2 kbps, VMAF 99.981VP9 (libvpx) · preset 3 q=52: 4,310.8 kbps, VMAF 68.145VP9 (libvpx) · preset 3 q=44: 7,985.7 kbps, VMAF 86.279VP9 (libvpx) · preset 3 q=36: 14,268.5 kbps, VMAF 97.338VP9 (libvpx) · preset 3 q=28: 24,780.1 kbps, VMAF 99.98VP9 (libvpx) · preset 4 q=52: 4,387.1 kbps, VMAF 68.602VP9 (libvpx) · preset 4 q=44: 8,171.7 kbps, VMAF 86.869VP9 (libvpx) · preset 4 q=36: 14,650.3 kbps, VMAF 97.682VP9 (libvpx) · preset 4 q=28: 25,676.8 kbps, VMAF 99.982VP9 (libvpx) · preset 5 q=52: 4,026.7 kbps, VMAF 66.462VP9 (libvpx) · preset 5 q=44: 7,271 kbps, VMAF 85.128VP9 (libvpx) · preset 5 q=36: 12,880.1 kbps, VMAF 96.772VP9 (libvpx) · preset 5 q=28: 22,198.7 kbps, VMAF 99.98VP9 (libvpx) · preset 6 q=52: 4,026.7 kbps, VMAF 66.462VP9 (libvpx) · preset 6 q=44: 7,271 kbps, VMAF 85.128VP9 (libvpx) · preset 6 q=36: 12,880.1 kbps, VMAF 96.772VP9 (libvpx) · preset 6 q=28: 22,198.7 kbps, VMAF 99.98VP9 (libvpx) · preset 8 q=52: 4,026.7 kbps, VMAF 66.462VP9 (libvpx) · preset 8 q=44: 7,271 kbps, VMAF 85.128VP9 (libvpx) · preset 8 q=36: 12,880.1 kbps, VMAF 96.772VP9 (libvpx) · preset 8 q=28: 22,198.7 kbps, VMAF 99.98
VP9 (libvpx) · preset 2VP9 (libvpx) · preset 3VP9 (libvpx) · preset 4VP9 (libvpx) · preset 5VP9 (libvpx) · preset 6VP9 (libvpx) · preset 8
riverbed — riverbed (fine ripples) — file size vs. VMAF (6 cpu-used values)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
VP9 (libvpx) · preset 22823,868.2 kbps99.98100.0040.153.61255.5
VP9 (libvpx) · preset 23614,030.8 kbps97.3693.6237.994.26216.0
VP9 (libvpx) · preset 2447,891.6 kbps86.4178.8635.565.02183.0
VP9 (libvpx) · preset 2524,294.8 kbps68.4859.4532.985.87154.7
VP9 (libvpx) · preset 32824,780.1 kbps99.98100.0040.224.99181.5
VP9 (libvpx) · preset 33614,268.5 kbps97.3493.6037.995.73158.7
VP9 (libvpx) · preset 3447,985.7 kbps86.2878.7435.536.64136.3
VP9 (libvpx) · preset 3524,310.8 kbps68.1459.0032.947.92112.8
VP9 (libvpx) · preset 42825,676.8 kbps99.98100.0040.164.6196.4
VP9 (libvpx) · preset 43614,650.3 kbps97.6894.1337.955.44166.1
VP9 (libvpx) · preset 4448,171.7 kbps86.8779.3635.526.67134.9
VP9 (libvpx) · preset 4524,387.1 kbps68.6059.1832.928.61101.5
VP9 (libvpx) · preset 52822,198.7 kbps99.98100.0039.804.51185.2
VP9 (libvpx) · preset 53612,880.1 kbps96.7792.6137.615.87136.2
VP9 (libvpx) · preset 5447,271 kbps85.1377.4635.227.64105.0
VP9 (libvpx) · preset 5524,026.7 kbps66.4657.0932.729.9579.5
VP9 (libvpx) · preset 62822,198.7 kbps99.98100.0039.804.32185.3
VP9 (libvpx) · preset 63612,880.1 kbps96.7792.6137.616.14135.5
VP9 (libvpx) · preset 6447,271 kbps85.1377.4635.227.69104.3
VP9 (libvpx) · preset 6524,026.7 kbps66.4657.0932.7210.2778.3
VP9 (libvpx) · preset 82822,198.7 kbps99.98100.0039.804.29186.5
VP9 (libvpx) · preset 83612,880.1 kbps96.7792.6137.616.16134.3
VP9 (libvpx) · preset 8447,271 kbps85.1377.4635.227.93103.9
VP9 (libvpx) · preset 8524,026.7 kbps66.4657.0932.7210.1677.3
riverbed — riverbed (fine ripples) — all measurements

rush_hour — evening rush-hour traffic

7080901001M2M5MBitrate (bps, log scale)VMAFVP9 (libvpx) · preset 2 q=52: 701.7 kbps, VMAF 73.916VP9 (libvpx) · preset 2 q=44: 1,327.8 kbps, VMAF 84.158VP9 (libvpx) · preset 2 q=36: 2,593.5 kbps, VMAF 91.445VP9 (libvpx) · preset 2 q=28: 5,259.5 kbps, VMAF 95.688VP9 (libvpx) · preset 3 q=52: 707.6 kbps, VMAF 73.689VP9 (libvpx) · preset 3 q=44: 1,347.5 kbps, VMAF 84.136VP9 (libvpx) · preset 3 q=36: 2,646.6 kbps, VMAF 91.471VP9 (libvpx) · preset 3 q=28: 5,309 kbps, VMAF 95.724VP9 (libvpx) · preset 4 q=52: 722.4 kbps, VMAF 73.485VP9 (libvpx) · preset 4 q=44: 1,361 kbps, VMAF 84.103VP9 (libvpx) · preset 4 q=36: 2,677.1 kbps, VMAF 91.475VP9 (libvpx) · preset 4 q=28: 5,396 kbps, VMAF 95.723VP9 (libvpx) · preset 5 q=52: 703.2 kbps, VMAF 72.655VP9 (libvpx) · preset 5 q=44: 1,283.1 kbps, VMAF 83.467VP9 (libvpx) · preset 5 q=36: 2,478.2 kbps, VMAF 91.184VP9 (libvpx) · preset 5 q=28: 4,911.9 kbps, VMAF 95.681VP9 (libvpx) · preset 6 q=52: 703.2 kbps, VMAF 72.655VP9 (libvpx) · preset 6 q=44: 1,283.1 kbps, VMAF 83.467VP9 (libvpx) · preset 6 q=36: 2,478.2 kbps, VMAF 91.184VP9 (libvpx) · preset 6 q=28: 4,911.9 kbps, VMAF 95.681VP9 (libvpx) · preset 8 q=52: 703.2 kbps, VMAF 72.655VP9 (libvpx) · preset 8 q=44: 1,283.1 kbps, VMAF 83.467VP9 (libvpx) · preset 8 q=36: 2,478.2 kbps, VMAF 91.184VP9 (libvpx) · preset 8 q=28: 4,911.9 kbps, VMAF 95.681
VP9 (libvpx) · preset 2VP9 (libvpx) · preset 3VP9 (libvpx) · preset 4VP9 (libvpx) · preset 5VP9 (libvpx) · preset 6VP9 (libvpx) · preset 8
rush_hour — evening rush-hour traffic — file size vs. VMAF (6 cpu-used values)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
VP9 (libvpx) · preset 2285,259.5 kbps95.6993.8042.196.05150.1
VP9 (libvpx) · preset 2362,593.5 kbps91.4488.7541.128.09109.0
VP9 (libvpx) · preset 2441,327.8 kbps84.1680.5639.7210.4184.5
VP9 (libvpx) · preset 252701.7 kbps73.9269.7737.9412.7967.3
VP9 (libvpx) · preset 3285,309 kbps95.7293.8342.137.83113.4
VP9 (libvpx) · preset 3362,646.6 kbps91.4788.8041.0610.4882.0
VP9 (libvpx) · preset 3441,347.5 kbps84.1480.4139.6713.1365.3
VP9 (libvpx) · preset 352707.6 kbps73.6969.5337.8516.1751.9
VP9 (libvpx) · preset 4285,396 kbps95.7293.8542.058.44103.7
VP9 (libvpx) · preset 4362,677.1 kbps91.4788.8540.9811.0977.5
VP9 (libvpx) · preset 4441,361 kbps84.1080.5239.5914.0759.8
VP9 (libvpx) · preset 452722.4 kbps73.4869.1837.7617.4647.1
VP9 (libvpx) · preset 5284,911.9 kbps95.6893.8141.847.7796.9
VP9 (libvpx) · preset 5362,478.2 kbps91.1888.4440.7410.9267.8
VP9 (libvpx) · preset 5441,283.1 kbps83.4779.7039.3614.8550.7
VP9 (libvpx) · preset 552703.2 kbps72.6668.3637.5918.6338.4
VP9 (libvpx) · preset 6284,911.9 kbps95.6893.8141.848.0396.8
VP9 (libvpx) · preset 6362,478.2 kbps91.1888.4440.7410.9267.7
VP9 (libvpx) · preset 6441,283.1 kbps83.4779.7039.3614.2951.7
VP9 (libvpx) · preset 652703.2 kbps72.6668.3637.5918.4839.7
VP9 (libvpx) · preset 8284,911.9 kbps95.6893.8141.847.8495.3
VP9 (libvpx) · preset 8362,478.2 kbps91.1888.4440.7411.2367.6
VP9 (libvpx) · preset 8441,283.1 kbps83.4779.7039.3614.4251.8
VP9 (libvpx) · preset 852703.2 kbps72.6668.3637.5918.2739.9
rush_hour — evening rush-hour traffic — all measurements

How to read it, and what we saw

First: cpu-used 5, 6 and 8 gave the same result

On all four clips and at all four CRF values, cpu-used 5, 6 and 8 had the same file size (size_bytes), VMAF and PSNR. For example, riverbed at CRF 36 is 16,100,128 B with VMAF 96.772 for all three settings. The only thing that differed was elapsed time, and since the jobs produce identical output, that is measurement noise (blue_sky CRF 36 took 63.2 s, 63.1 s and 63.7 s of CPU time). It is known that in the libvpx default mode (good quality) in FFmpeg, values above 5 are treated the same as 5, and this data matches that. However, we did not check the libvpx source, so we claim only that "they were the same in this configuration (no -deadline, this FFmpeg build)." For that reason, the comparisons below measure cpu-used 2, 3 and 4 against a single baseline called "5 and above", calculated from the cpu-used 8 values.

File size and time at the same VMAF

Because the measurement points do not land on exactly the same VMAF, we estimated the bitrate and CPU time at a reference VMAF by connecting the two measurement points on either side of it (linear interpolation of log bitrate against VMAF, and of CPU time as is against VMAF). The measured CRF values are 8 apart, so the estimate can differ from the true curve, and digits after the decimal point are meaningless. For each clip we chose a reference VMAF that all six curves pass through: 95 for blue_sky and riverbed, 93 for pedestrian_area and rush_hour. On blue_sky, VMAF saturates at 99.98 at CRF 28 and 36 (the 5th percentile is 100), so there is no quality difference between settings there, and we excluded those points from the interpolation and used only the two points at CRF 44 and 52. Because the reference VMAF differs by clip, we do not compare absolute file sizes across clips.

Clip (reference VMAF)cpu-used 2cpu-used 3cpu-used 4cpu-used 5 and above
blue_sky (95)1,290 kbps1,315 kbps1,343 kbps1,308 kbps
pedestrian_area (93)2,174 kbps2,258 kbps2,317 kbps2,209 kbps
riverbed (95)12,396 kbps12,620 kbps12,675 kbps11,805 kbps
rush_hour (93)3,360 kbps3,399 kbps3,443 kbps3,267 kbps

Estimated bitrate at the reference VMAF. Even at the same VMAF, harder clips need a bigger file (the reference VMAF differs, so do not compare directly across clips).

Clipcpu-used 2cpu-used 3cpu-used 4cpu-used 5 and above
blue_sky99%101%103%100%
pedestrian_area98%102%105%100%
riverbed105%107%107%100%
rush_hour103%104%105%100%

Relative file size at the same VMAF, with cpu-used 5 and above (the cpu-used 8 values) as 100%. Below 100% means a smaller file.

Clipcpu-used 2cpu-used 3cpu-used 4cpu-used 5 and above
blue_sky84.0 s (1.8x)60.3 s (1.3x)54.1 s (1.1x)47.1 s (1x)
pedestrian_area95.3 s (1.6x)75.4 s (1.3x)70.2 s (1.2x)59.4 s (1x)
riverbed208.9 s (1.6x)153.9 s (1.2x)158.4 s (1.2x)129.7 s (1x)
rush_hour124.1 s (1.6x)93.3 s (1.2x)86.9 s (1.1x)78.8 s (1x)

CPU time (utime, the summed CPU time of the 4-thread job) estimated at the same VMAF, and its multiple of cpu-used 8. The absolute times belong to this PC; use only the multiples as a guide.

  • A slower setting made the file smaller in only two cases, and by a small margin. cpu-used 2 was 1% smaller on blue_sky and 2% smaller on pedestrian_area. The other ten cells were all larger than 5 and above (by 1–7%). blue_sky cpu-used 3 (101%) is, after rounding, practically the same. Given the interpolation error, 1–2% is hard to call a difference.
  • The harder the footage, the worse the slower settings did. On riverbed, cpu-used 2, 3 and 4 came to 105–107%, the largest of the four clips, and it is also the clip that needs the highest bitrate. This data cannot tell us why.
  • Time went up as cpu-used went down. cpu-used 2 was a steady 1.6–1.8x across the four clips, 3 was 1.2–1.3x and 4 was 1.1–1.2x. On riverbed, though, cpu-used 4 (158.4 s) actually took longer than 3 (153.9 s), and this reversal also showed up at CRF 28 and 36 (CPU time 196.4 s and 166.1 s versus 181.5 s and 158.7 s). It is hard to dismiss as noise alone.
  • At the same CRF, changing only the setting changes the file size. At CRF 28 and 36, cpu-used 2 to 4 gave files 3–16% larger than 5 and above (for example, riverbed CRF 28 is 32,096,050 B at cpu-used 4 and 27,748,383 B at 5 and above). Yet VMAF is practically the same (riverbed CRF 28: 99.982 versus 99.980). Do not carry a CRF value over unchanged from one setting to another.
  • cpu-used 8 was slow too. The speed by rtime (fps_rt) at cpu-used 8 ranged from 4.29 to 18.98 fps (across all CRF values in the CSV; riverbed CRF 28 was the slowest). On this PC with 4 threads, it could not encode 1080p in real time. Speed fluctuates because of the IDLE priority, so treat it only as a rough guide.

Is any kind of video worth the extra time?

Our starting question was whether some kind of video is worth spending more time on a slow setting. In this data, the answer is "we did not find one." The static blue_sky (1% smaller) and the crowded pedestrian_area (2% smaller) were the only cases where cpu-used 2 saved file size, and the price was 1.6–1.8x the CPU time, while on the complex riverbed and rush_hour every slower setting came out larger. Even the two clips with savings are within the interpolation error, so claiming that slower settings win would need a re-measurement with CRF points placed more densely.

How long would a long video take?

If you assume CPU time scales roughly with video length, multiplying the 10-second clip values by 60 gives a rough figure for a 10-minute video. For example, riverbed, the heaviest clip in this test, took about 129.7 s at cpu-used 8 → about 2 hours 10 minutes, and 208.9 s at cpu-used 2 → about 3 hours 30 minutes (both are summed 4-thread CPU time). Because utime is summed CPU time, it is not the same as the actual wall-clock time, and this data did not confirm that time scales exactly with length. For your own estimate, you can try the encode time estimator.

Limitations

  • Only four 10-second clips. They differ in character (scenery, city, ripples), but animation, screen recordings and dark footage are missing.
  • Only 8-bit yuv420p was measured. 10-bit and HDR are not covered.
  • Only six values were tested: cpu-used 2, 3, 4, 5, 6 and 8. We did not measure 0 and 1 (the slower end) or 7, so this article cannot say whether slower settings pay off. We also did not change other options such as -deadline, -tile-columns, -auto-alt-ref or -lag-in-frames.
  • The effects of row-mt and 4 threads are mixed in. Multithreading efficiency may differ by setting, so the time multiples include differences in thread utilization as well as pure algorithm cost. With a different thread count, the multiples could change too.
  • Only four CRF points (28, 36, 44, 52) were measured, and the interpolation is coarse. With a spacing of 8, estimates around the reference VMAF can differ from reality. On riverbed in particular, VMAF at CRF 36 and 44 is more than 11 apart, and a 1–2% difference is within the error. On blue_sky we dropped the two saturated points and interpolated from just two. 2-pass and target-bitrate modes were not covered.
  • The reference VMAF differs by clip (95 for blue_sky and riverbed, 93 for the others). The ratios could differ at other quality levels.
  • Only one VMAF model (the default) was used. The same score can still look different in texture. PSNR (psnr_y) is in the CSV but we did not interpret it, and we did not check whether the ranking of settings changes with the metric.
  • One PC, one run. We did not repeat measurements to estimate error. With IDLE priority, elapsed time fluctuates (even utime varied by 1–4% across three settings that produced identical output), so speed is for reference only.
  • Only software libvpx was measured. File sizes in the tables are video-stream sizes and do not reflect audio, playback compatibility or hardware decoding support.

Practical recommendations

  • When using VP9 with FFmpeg, start with cpu-used 5. In this data, 5, 6 and 8 produced identical output, and 5 was generally smaller than or similar to 2 to 4 at the same VMAF while 2 to 4 took 1.1 to 1.8x as much time as 5 and above. Moving up to 6 or 8 gained nothing.
  • This data does not support the hope of saving file size by dropping to cpu-used 2 to 4. Time went up while only 2 of the 12 cells were 1–2% smaller and the other 10 were 1–7% larger. If you really need it, measure VMAF and file size on your own footage.
  • If you change the setting, do not carry the CRF over unchanged. Even at the same CRF, file size varied by 3–16%. To hold a quality target, re-measure VMAF. File size and quality by CRF are in the CRF test and the CRF by content type test, and you can see suggested values in the CRF recommender.
  • For VP9 versus AV1, see the VP9 vs libaom test; for the codec ranking at similar encoding time, see the codec showdown at similar speeds. For the speed settings of other encoders, see the x264, x265 and SVT-AV1 tests. You can build the command with the FFmpeg command builder.

The full raw data can be downloaded from the CSV at the bottom of the page.

Raw data: vp9-cpu-used-efficiency-v1.csv