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

Is 2-Pass Really Better for VP9 and AV1? 2-Pass vs CRF at the Same Bitrate, VMAF Test (libvpx, libaom)

We encoded libvpx VP9 and libaom AV1 with 4 CRF values and 4 two-pass targets (1,000 to 10,000 kbps), then compared VMAF at the same actual bitrate. At the 13 points where a comparison was possible, the mean VMAF of 2-pass was -6.4 to +2.4 points relative to CRF, and it depended on the video. The actual bitrate of 2-pass missed the target by -22.6 to +22.1%, and CPU time was 1.31 to 1.83 times for VP9 and 0.96 to 0.99 times for libaom.

The test PC, FFmpeg and VMAF settings shared by every lab article are collected on the methodology page. Methodology (common to all tests)

Bottom line

"2-pass beats CRF for VP9 and AV1" was sometimes true and sometimes false in this data, depending on the video. At the 13 points where we could compare at the same actual bitrate (7 for VP9, 6 for libaom), the mean VMAF of 2-pass was more than 0.5 points higher than CRF at 4 points, within 0.5 points (a tie) at 3, and more than 0.5 points lower at 6 (-6.4 to +2.4 points). Averaged, that is -0.8 points for VP9 and -0.8 points for libaom, but the average hides the differences between videos. VP9 was +1.0 to +2.4 points higher on blue_sky and pedestrian_area and -3.6 to -6.4 points lower on riverbed. On riverbed the 5th percentile was also much lower for both codecs (about -20 points for VP9, -7.4 to -12.1 points for libaom). The actual bitrate of 2-pass missed the target by -22.6 to +22.1%, and all 8 blue_sky encodes came out 12.6 to 22.6% under target. CPU time for VP9 2-pass was 1.31 to 1.83 times that of CRF at the same bitrate, and for libaom it was 0.96 to 0.99 times, almost the same. These results are based on VMAF and do not mean the same thing as quality to the human eye.

Why this matters

VP9 and AV1 are known as codecs used by services such as YouTube, and when people encode them by hand, many guides recommend "ffmpeg 2-pass" as the standard way. But for x264 and x265, the mean VMAF of 2-pass and CRF at the same size was almost a tie (2-pass vs CRF test). That article covered only x264 and x265, so 2-pass for VP9 and AV1 was still missing.

This article asks four questions. (1) At the same actual bitrate, is the mean and 5th percentile VMAF of 2-pass higher than CRF? (2) By how many percent does the actual bitrate of 2-pass miss the target? (3) How many times more time does it take? (4) Does the answer change with the type of video?

Test method

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. We use the mean (vmaf_mean), 5th percentile (vmaf_p5) and minimum (vmaf_min)
Measured on2026-11-26 (4 clips × 4 settings × 4 levels = 64 encodes)

VMAF is a quality metric developed by Netflix. It compares the original with the encoded result frame by frame and gives a score from 0 to 100. The closer to 100, the harder it is to tell from the original. The 5th percentile (p5) is the score at the 5% point from the bottom when the frames are sorted by score. Use it to see how the bad frames are distributed even when the mean is the same (worst-frame VMAF test). It does not reproduce perceived quality exactly, so every "higher quality" in this article means "higher VMAF".

Encoder settings

ModeVP9 (libvpx, cpu-used 5)AV1 (libaom, cpu-used 8)
CRF, 4 levelsCRF 28, 38, 48, 56CRF 30, 40, 50, 58
2-pass, 4 levelsTarget 1000, 2500, 5000, 10000 kbpsTarget 1000, 2500, 5000, 10000 kbps

CRF numbers are on a different scale for each codec, so do not compare them directly. The target kbps for 2-pass is the same for both codecs.

Encoder commands (key options only, input/output paths omitted. Q is the value in the table above)
# VP9 CRF (pure CRF mode: -b:v 0)
-c:v libvpx-vp9 -cpu-used 5 -crf Q -b:v 0 -row-mt 1 -threads 4
# VP9 2-pass (Q = target kbps, average bitrate mode)
-c:v libvpx-vp9 -cpu-used 5 -row-mt 1 -threads 4 -b:v Qk

# AV1 CRF
-c:v libaom-av1 -cpu-used 8 -crf Q -b:v 0 -row-mt 1 -threads 4
# AV1 2-pass (Q = target kbps)
-c:v libaom-av1 -cpu-used 8 -row-mt 1 -threads 4 -b:v Qk

VP9 CRF is the pure CRF mode, which you get by also passing -b:v 0, and 2-pass is the mode that hits a target average bitrate. The two are not the same settings with a different number: the rate control method itself is different. For the 2-pass entries we ran the first and second pass with the options above (the FFmpeg -pass 1 and -pass 2 flags are omitted), and the times in the tables (rtime_s, utime_s) are the sum of the two passes. The bitrate (kbps) is the output file size divided by 10 seconds, so it includes a little container overhead.

Test clip sources and licenses

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

Results by clip

In the curves, the horizontal axis is bitrate and the vertical axis is VMAF. Each encoder setting gets one curve, and the ones labeled "+2pass" are 2-pass. For the same codec, a higher curve at the same horizontal position means higher quality at the same bitrate. The time columns in the tables fluctuate because the jobs ran at IDLE priority, so treat them as a rough guide only.

blue_sky — blue sky and tree branches

8090100500k1M2M5M10MBitrate (bps, log scale)VMAFVP9 (libvpx) · preset 5 q=56: 604.6 kbps, VMAF 82.902VP9 (libvpx) · preset 5 q=48: 1,200.4 kbps, VMAF 94.847VP9 (libvpx) · preset 5 q=38: 2,915.1 kbps, VMAF 99.957VP9 (libvpx) · preset 5 q=28: 7,940.8 kbps, VMAF 99.983VP9 (libvpx) · preset 5+2pass q=1000: 874.1 kbps, VMAF 91.375VP9 (libvpx) · preset 5+2pass q=2500: 2,122.5 kbps, VMAF 99.202VP9 (libvpx) · preset 5+2pass q=5000: 4,227.8 kbps, VMAF 99.765VP9 (libvpx) · preset 5+2pass q=10000: 8,258 kbps, VMAF 99.982AV1 (libaom) · preset 8 q=58: 448.4 kbps, VMAF 85.266AV1 (libaom) · preset 8 q=50: 805.8 kbps, VMAF 95.073AV1 (libaom) · preset 8 q=40: 1,479.2 kbps, VMAF 99.823AV1 (libaom) · preset 8 q=30: 2,931.8 kbps, VMAF 99.973AV1 (libaom) · preset 8+2pass q=1000: 774 kbps, VMAF 93.79AV1 (libaom) · preset 8+2pass q=2500: 2,005.8 kbps, VMAF 99.916AV1 (libaom) · preset 8+2pass q=5000: 4,065.9 kbps, VMAF 99.98AV1 (libaom) · preset 8+2pass q=10000: 8,710.4 kbps, VMAF 99.986
VP9 (libvpx) · preset 5VP9 (libvpx) · preset 5+2passAV1 (libaom) · preset 8AV1 (libaom) · preset 8+2pass
blue_sky — blue sky and tree branches — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
AV1 (libaom) · preset 8302,931.8 kbps99.97100.0040.344.16197.9
AV1 (libaom) · preset 8401,479.2 kbps99.8298.8938.155.27152.5
AV1 (libaom) · preset 850805.8 kbps95.0788.8835.906.55121.3
AV1 (libaom) · preset 858448.4 kbps85.2778.6233.567.48106.0
AV1 (libaom) · preset 8+2pass1000774 kbps93.7984.8135.866.81114.9
AV1 (libaom) · preset 8+2pass25002,005.8 kbps99.92100.0039.285.03158.6
AV1 (libaom) · preset 8+2pass50004,065.9 kbps99.98100.0041.313.93205.8
AV1 (libaom) · preset 8+2pass100008,710.4 kbps99.99100.0042.993.13257.8
VP9 (libvpx) · preset 5287,940.8 kbps99.98100.0041.007.52101.1
VP9 (libvpx) · preset 5382,915.1 kbps99.96100.0038.2910.4471.9
VP9 (libvpx) · preset 5481,200.4 kbps94.8589.8835.3013.3355.8
VP9 (libvpx) · preset 556604.6 kbps82.9076.6732.7015.6347.1
VP9 (libvpx) · preset 5+2pass1000874.1 kbps91.3884.6334.705.2794.7
VP9 (libvpx) · preset 5+2pass25002,122.5 kbps99.2092.1138.103.93143.7
VP9 (libvpx) · preset 5+2pass50004,227.8 kbps99.7797.4540.163.22183.8
VP9 (libvpx) · preset 5+2pass100008,258 kbps99.98100.0041.832.34272.6
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

60708090100500k1M2M5M10MBitrate (bps, log scale)VMAFVP9 (libvpx) · preset 5 q=56: 622.1 kbps, VMAF 67.618VP9 (libvpx) · preset 5 q=48: 1,058.4 kbps, VMAF 81.455VP9 (libvpx) · preset 5 q=38: 2,114.3 kbps, VMAF 92.893VP9 (libvpx) · preset 5 q=28: 4,768.6 kbps, VMAF 98.381VP9 (libvpx) · preset 5+2pass q=1000: 973.7 kbps, VMAF 81.699VP9 (libvpx) · preset 5+2pass q=2500: 2,561.8 kbps, VMAF 95.207VP9 (libvpx) · preset 5+2pass q=5000: 4,994.2 kbps, VMAF 98.522VP9 (libvpx) · preset 5+2pass q=10000: 9,985.9 kbps, VMAF 99.548AV1 (libaom) · preset 8 q=58: 354 kbps, VMAF 66.673AV1 (libaom) · preset 8 q=50: 629.1 kbps, VMAF 80.339AV1 (libaom) · preset 8 q=40: 1,148.8 kbps, VMAF 90.812AV1 (libaom) · preset 8 q=30: 2,145.6 kbps, VMAF 97.31AV1 (libaom) · preset 8+2pass q=1000: 974.2 kbps, VMAF 88.661AV1 (libaom) · preset 8+2pass q=2500: 2,413.6 kbps, VMAF 97.852AV1 (libaom) · preset 8+2pass q=5000: 4,977.8 kbps, VMAF 99.509AV1 (libaom) · preset 8+2pass q=10000: 9,671.6 kbps, VMAF 99.872
VP9 (libvpx) · preset 5VP9 (libvpx) · preset 5+2passAV1 (libaom) · preset 8AV1 (libaom) · preset 8+2pass
pedestrian_area — pedestrian street — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
AV1 (libaom) · preset 8302,145.6 kbps97.3194.3441.174.47192.3
AV1 (libaom) · preset 8401,148.8 kbps90.8188.1939.535.59149.8
AV1 (libaom) · preset 850629.1 kbps80.3476.8237.556.72125.1
AV1 (libaom) · preset 858354 kbps66.6761.3435.417.84107.3
AV1 (libaom) · preset 8+2pass1000974.2 kbps88.6684.5539.205.91140.5
AV1 (libaom) · preset 8+2pass25002,413.6 kbps97.8595.3941.524.35192.8
AV1 (libaom) · preset 8+2pass50004,977.8 kbps99.5197.7342.583.63231.7
AV1 (libaom) · preset 8+2pass100009,671.6 kbps99.8799.0543.342.75305.7
VP9 (libvpx) · preset 5284,768.6 kbps98.3895.3641.167.71102.7
VP9 (libvpx) · preset 5382,114.3 kbps92.8989.1739.3811.5768.5
VP9 (libvpx) · preset 5481,058.4 kbps81.4576.5337.1715.351.6
VP9 (libvpx) · preset 556622.1 kbps67.6261.4535.1017.8443.5
VP9 (libvpx) · preset 5+2pass1000973.7 kbps81.7076.6037.476.4774.0
VP9 (libvpx) · preset 5+2pass25002,561.8 kbps95.2192.6840.365.03110.6
VP9 (libvpx) · preset 5+2pass50004,994.2 kbps98.5296.1741.553.97157.2
VP9 (libvpx) · preset 5+2pass100009,985.9 kbps99.5597.6242.522.97231.0
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (fine ripples)

304050607080901001M2M5M10M20MBitrate (bps, log scale)VMAFVP9 (libvpx) · preset 5 q=56: 2,960 kbps, VMAF 56.979VP9 (libvpx) · preset 5 q=48: 5,433.8 kbps, VMAF 76.381VP9 (libvpx) · preset 5 q=38: 11,178.9 kbps, VMAF 94.663VP9 (libvpx) · preset 5 q=28: 22,198.7 kbps, VMAF 99.98VP9 (libvpx) · preset 5+2pass q=1000: 1,220.7 kbps, VMAF 32.637VP9 (libvpx) · preset 5+2pass q=2500: 2,488.1 kbps, VMAF 47.752VP9 (libvpx) · preset 5+2pass q=5000: 4,867.2 kbps, VMAF 66.475VP9 (libvpx) · preset 5+2pass q=10000: 9,775.3 kbps, VMAF 87.615AV1 (libaom) · preset 8 q=58: 1,515.1 kbps, VMAF 42.792AV1 (libaom) · preset 8 q=50: 3,152.4 kbps, VMAF 64.392AV1 (libaom) · preset 8 q=40: 6,525 kbps, VMAF 87.434AV1 (libaom) · preset 8 q=30: 12,919.4 kbps, VMAF 99.897AV1 (libaom) · preset 8+2pass q=1000: 977.7 kbps, VMAF 31.827AV1 (libaom) · preset 8+2pass q=2500: 2,515.9 kbps, VMAF 55.065AV1 (libaom) · preset 8+2pass q=5000: 5,050.1 kbps, VMAF 77.525AV1 (libaom) · preset 8+2pass q=10000: 10,037.5 kbps, VMAF 95.004
VP9 (libvpx) · preset 5VP9 (libvpx) · preset 5+2passAV1 (libaom) · preset 8AV1 (libaom) · preset 8+2pass
riverbed — riverbed (fine ripples) — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
AV1 (libaom) · preset 83012,919.4 kbps99.9099.7938.231.82464.3
AV1 (libaom) · preset 8406,525 kbps87.4384.4735.412.15392.3
AV1 (libaom) · preset 8503,152.4 kbps64.3960.2632.472.83292.6
AV1 (libaom) · preset 8581,515.1 kbps42.7938.5129.853.7225.6
AV1 (libaom) · preset 8+2pass1000977.7 kbps31.8324.2628.304.43187.9
AV1 (libaom) · preset 8+2pass25002,515.9 kbps55.0641.4531.383.13262.8
AV1 (libaom) · preset 8+2pass50005,050.1 kbps77.5365.4734.132.37347.8
AV1 (libaom) · preset 8+2pass1000010,037.5 kbps95.0086.7536.981.93432.7
VP9 (libvpx) · preset 52822,198.7 kbps99.98100.0039.803.83222.2
VP9 (libvpx) · preset 53811,178.9 kbps94.6689.6337.035.51154.2
VP9 (libvpx) · preset 5485,433.8 kbps76.3867.4833.987.63111.5
VP9 (libvpx) · preset 5562,960 kbps56.9847.8331.479.387.6
VP9 (libvpx) · preset 5+2pass10001,220.7 kbps32.6423.3728.234.95102.2
VP9 (libvpx) · preset 5+2pass25002,488.1 kbps47.7528.3230.424.48121.3
VP9 (libvpx) · preset 5+2pass50004,867.2 kbps66.4742.7732.963.89146.8
VP9 (libvpx) · preset 5+2pass100009,775.3 kbps87.6165.1936.043.16191.4
riverbed — riverbed (fine ripples) — all measurements

rush_hour — evening rush-hour traffic

60708090100500k1M2M5M10MBitrate (bps, log scale)VMAFVP9 (libvpx) · preset 5 q=56: 518.4 kbps, VMAF 66.301VP9 (libvpx) · preset 5 q=48: 947.3 kbps, VMAF 78.324VP9 (libvpx) · preset 5 q=38: 2,086.6 kbps, VMAF 89.579VP9 (libvpx) · preset 5 q=28: 4,911.9 kbps, VMAF 95.681VP9 (libvpx) · preset 5+2pass q=1000: 1,026.5 kbps, VMAF 78.758VP9 (libvpx) · preset 5+2pass q=2500: 2,650.5 kbps, VMAF 91.267VP9 (libvpx) · preset 5+2pass q=5000: 5,173.2 kbps, VMAF 95.378VP9 (libvpx) · preset 5+2pass q=10000: 10,095.5 kbps, VMAF 97.899AV1 (libaom) · preset 8 q=58: 256.4 kbps, VMAF 60.358AV1 (libaom) · preset 8 q=50: 496.8 kbps, VMAF 72.145AV1 (libaom) · preset 8 q=40: 1,023.1 kbps, VMAF 83.64AV1 (libaom) · preset 8 q=30: 2,179.8 kbps, VMAF 91.828AV1 (libaom) · preset 8+2pass q=1000: 984.5 kbps, VMAF 82.901AV1 (libaom) · preset 8+2pass q=2500: 2,438.5 kbps, VMAF 92.481AV1 (libaom) · preset 8+2pass q=5000: 4,782.7 kbps, VMAF 96.062AV1 (libaom) · preset 8+2pass q=10000: 9,420.6 kbps, VMAF 98.327
VP9 (libvpx) · preset 5VP9 (libvpx) · preset 5+2passAV1 (libaom) · preset 8AV1 (libaom) · preset 8+2pass
rush_hour — evening rush-hour traffic — bitrate vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
AV1 (libaom) · preset 8302,179.8 kbps91.8390.2241.534.11202.0
AV1 (libaom) · preset 8401,023.1 kbps83.6481.1240.045.27156.5
AV1 (libaom) · preset 850496.8 kbps72.1468.7238.247.11114.8
AV1 (libaom) · preset 858256.4 kbps60.3656.6636.338.4896.5
AV1 (libaom) · preset 8+2pass1000984.5 kbps82.9079.7239.975.35152.7
AV1 (libaom) · preset 8+2pass25002,438.5 kbps92.4890.5241.733.94209.9
AV1 (libaom) · preset 8+2pass50004,782.7 kbps96.0694.6542.573.2252.1
AV1 (libaom) · preset 8+2pass100009,420.6 kbps98.3397.3943.292.49330.3
VP9 (libvpx) · preset 5284,911.9 kbps95.6893.8141.847.04113.3
VP9 (libvpx) · preset 5382,086.6 kbps89.5886.5740.4310.4274.4
VP9 (libvpx) · preset 548947.3 kbps78.3274.0638.5214.7552.4
VP9 (libvpx) · preset 556518.4 kbps66.3062.0836.5417.8543.3
VP9 (libvpx) · preset 5+2pass10001,026.5 kbps78.7674.3938.846.4173.6
VP9 (libvpx) · preset 5+2pass25002,650.5 kbps91.2789.2141.064.73118.9
VP9 (libvpx) · preset 5+2pass50005,173.2 kbps95.3892.1142.013.67169.7
VP9 (libvpx) · preset 5+2pass1000010,095.5 kbps97.9096.3342.842.52259.6
rush_hour — evening rush-hour traffic — all measurements

How to read it, and what we see

1. Is 2-pass higher at the same actual bitrate?

No CRF point has exactly the same bitrate as a 2-pass point. So we took the actual kbps of each 2-pass point and read the value at that bitrate from the curve connecting the 4 CRF points of the same codec and clip (straight-line interpolation between the two neighboring CRF points, with the log of the bitrate on the horizontal axis). Each cell is 2-pass − interpolated CRF (points), so a positive number means 2-pass is higher. We left out points outside the bitrate range of the CRF curve and points in the saturated zone where the interpolated CRF value is above 98. Of the 32 two-pass points, only 13 remain (7 for VP9, 6 for libaom). blue_sky is an easy video and its CRF curve sits at VMAF 99 or higher for most of its range, so only 1 point per codec remained. The values are approximations calculated by hand, so treat differences of around 0.5 points as meaningless.

VP9 clip · targetActual kbpsMean5th pctCPU time ratioWall-clock ratio
blue_sky · 1000874.1+2.1+0.91.83x2.71x
pedestrian_area · 1000973.7+2.4+2.41.47x2.42x
pedestrian_area · 25002561.8+1.0+2.11.44x2.05x
riverbed · 50004867.2-6.4-21.21.37x2.03x
riverbed · 100009775.3-3.6-20.31.31x1.84x
rush_hour · 10001026.5-0.7-0.91.35x2.21x
rush_hour · 25002650.50.0+0.61.39x1.94x

VP9 cpu-used 5. Mean and 5th pct are the VMAF difference (points) of 2-pass relative to the interpolated CRF at the same bitrate. CPU time ratio = 2-pass utime (sum of both passes) ÷ interpolated utime of CRF at the same bitrate; wall-clock ratio is the same calculation with rtime. Log interpolation.

libaom clip · targetActual kbpsMean5th pctCPU time ratioWall-clock ratio
blue_sky · 1000774.0-0.6-3.40.96x0.97x
pedestrian_area · 1000974.2+0.7-0.50.98x0.99x
riverbed · 25002515.9-2.7-12.10.97x0.98x
riverbed · 50005050.1-1.8-10.50.97x0.99x
riverbed · 1000010037.5-0.3-7.40.99x1.00x
rush_hour · 1000984.5-0.1-0.70.99x1.00x

libaom cpu-used 8. Read it the same way as the table above.

  • For mean VMAF, 2-pass was more than 0.5 points higher at 4 of the 13 points, tied at 3, and lower at 6. The differences range from -6.4 to +2.4 points. The average difference per codec is -0.8 points for VP9 and -0.8 points for libaom, but the values split in both directions, so the average means little.
  • VP9 2-pass was ahead on easy videos. Mean VMAF was higher on blue_sky (+2.1) and pedestrian_area (+2.4, +1.0), and the 5th percentile was higher too (+0.9 to +2.4 points). rush_hour, on the other hand, was a tie at -0.7 and 0.0 points.
  • On riverbed, 2-pass was lower than CRF for both codecs. The mean was -3.6 to -6.4 points for VP9 and -0.3 to -2.7 points for libaom, and the 5th percentile was -20.3 to -21.2 points for VP9 and -7.4 to -12.1 points for libaom. The gap was much larger in the worse frames than in the mean. For example, VP9 2-pass at the 5000 kbps target (actual 4867.2) had a mean of 66.5 and a 5th percentile of 42.8, while the interpolated CRF at the same bitrate had a mean of 72.9 and a 5th percentile of 63.9. This is a hard video where even CRF gives a low VMAF in this bitrate range, and this data cannot tell us why 2-pass was lower.
  • libaom had a narrower mean range than VP9 (-2.7 to +0.7 points), but its 5th percentile was lower at all 6 points (-0.5 to -12.1 points). With libaom, looking only at the mean VMAF is not enough to say 2-pass matches CRF.
  • "2-pass is better" and "2-pass is worse" both happened within the same codec, depending on the video. The gap between the highest VP9 result, +2.4 points (pedestrian_area), and the lowest, -6.4 points (riverbed), is 8.8 points. With only 4 clips we cannot state a rule for which kinds of video 2-pass suits.
  • We did not interpret the 19 points left out of the comparison. At the high targets (5000 and 10000 kbps) in particular, the VMAF of blue_sky and pedestrian_area is 98 or higher so the difference is meaningless, and many points fall outside the range of the CRF curve. So this conclusion applies to the low-to-mid bitrate range.

2. How far did the actual bitrate of 2-pass miss the target?

Each cell is actual kbps (% vs target). The actual kbps is the kbps column of the CSV, and the error is (actual − target) ÷ target rounded to one decimal place. A negative number means the result came out below the target.

VP9 clip10002500500010000
blue_sky874.1 (-12.6%)2122.5 (-15.1%)4227.8 (-15.4%)8258.0 (-17.4%)
pedestrian_area973.7 (-2.6%)2561.8 (+2.5%)4994.2 (-0.1%)9985.9 (-0.1%)
riverbed1220.7 (+22.1%)2488.1 (-0.5%)4867.2 (-2.7%)9775.3 (-2.2%)
rush_hour1026.5 (+2.7%)2650.5 (+6.0%)5173.2 (+3.5%)10095.5 (+1.0%)

Column headers are target kbps. VP9 cpu-used 5 2-pass.

libaom clip10002500500010000
blue_sky774.0 (-22.6%)2005.8 (-19.8%)4065.9 (-18.7%)8710.4 (-12.9%)
pedestrian_area974.2 (-2.6%)2413.6 (-3.5%)4977.8 (-0.4%)9671.6 (-3.3%)
riverbed977.7 (-2.2%)2515.9 (+0.6%)5050.1 (+1.0%)10037.5 (+0.4%)
rush_hour984.5 (-1.6%)2438.5 (-2.5%)4782.7 (-4.3%)9420.6 (-5.8%)

Column headers are target kbps. libaom cpu-used 8 2-pass.

  • The error was -17.4 to +22.1% for VP9 and -22.6 to +1.0% for libaom. Within ±5% of the target were 10 of 16 points for VP9 and 11 of 16 points for libaom.
  • All 8 blue_sky encodes came out below target for both codecs (-12.6 to -22.6%). In the x264/x265 2-pass article, blue_sky also always landed under the target (2-pass vs CRF test). This data cannot tell us why. It is an easy video that scores a high VMAF even at low bitrates.
  • The VP9 riverbed 1000 kbps target came out 22.1% over (1220.7 kbps). This suggests that with this video, a low target can sometimes not be met. The mean VMAF there was a very low 32.6.
  • The misses did not go in only one direction. VP9 overshot the target in some cells on riverbed and rush_hour, while libaom mostly came in under. If you are encoding to a size limit, it is safer to check the actual size than to cut the target close.

3. How many times more time does it take?

The time ratios in the tables above are the 2-pass time (sum of both passes) divided by the interpolated time of CRF at the same bitrate. CPU time (utime) is stable even at IDLE priority, while wall-clock time (rtime) fluctuates (thread utilization test).

  • VP9 2-pass took 1.31 to 1.83 times the CPU time and 1.84 to 2.71 times the wall-clock time. We did not confirm why the wall-clock side is larger, but it is possible that multithreading was used less in a setup where the first pass runs in addition to the second. Compared with CRF at the same bitrate finishing in one run, the waiting time is almost double or more.
  • libaom 2-pass was almost the same as CRF: 0.96 to 0.99 times the CPU time and 0.97 to 1.00 times the wall-clock time. This is the result at cpu-used 8, a very fast setting, and we did not measure whether it holds at slower settings. This data also cannot tell us why the time did not grow even with two passes combined.
  • For VP9, the largest time ratios were at low bitrates (blue_sky 1.83x, pedestrian_area 1.47x). At a high bitrate (riverbed 10000, 1.31x) the ratio dropped. One reading is that, unlike CRF where time is short at low bitrates, the cost of the first 2-pass pass looks relatively large, but this is also a guess.

Limitations

  • Only 4 clips of 10 seconds. Their character differs (scenery, city, ripples), but animation, screen recordings, dark video and noisy video are missing. 2-pass splits bits after looking at the whole video, and 10 seconds may be too short for that advantage to show, so results could differ on videos that are minutes or hours long.
  • We measured only 8-bit yuv420p 1080p25. 10-bit, 4K and high fps are not covered.
  • We measured only one setting each: VP9 cpu-used 5 and libaom cpu-used 8. libaom at cpu-used 8 is a very fast setting, so results may differ at slower settings (such as cpu-used 2 to 4). In particular, the finding that the time ratio is about 1 is limited to this setting. The two codecs use different setting scales, so we did not compare them with each other.
  • VP9 CRF is the pure CRF mode and 2-pass is the average bitrate mode. We compared different rate control methods, and we did not measure modes such as constrained CRF, which combines -minrate, -maxrate and -crf.
  • No measured points have the same size, so these are approximations read by log interpolation. CRF has only 4 points, so the gaps between points are wide, and 19 of the 32 two-pass points were dropped because they were outside the CRF curve range or saturated. The difference values are hand calculations, so around 0.5 points is meaningless. Most comparisons at high bitrates (5000 kbps and up) were dropped.
  • This is VMAF, not quality to the human eye. The same score can hide different ways of smearing detail. For important videos, compare the two results by eye.
  • One run each on one PC, at IDLE priority. Times fluctuate and we did not estimate error from repeated runs. Treat speed as a rough guide.

Practical recommendations

  • 2-pass is not automatically better just because it is VP9 or AV1. At the same bitrate, mean VMAF was higher at 4 of 13 points and lower at 6. If you choose 2-pass only to raise quality, you can lose out on hard videos.
  • Use 2-pass only when you have a size (bitrate) limit, and do not cut the target close. The actual bitrate missed by -22.6 to +22.1%. For the limit calculation, see the bitrate and file size calculator and the maximum duration for an upload size limit test.
  • With a hard video (ripples or fine texture like riverbed), check the 5th percentile, not just the mean, when you use 2-pass. On this video the mean was only 3 to 6 points lower, but the 5th percentile was about 20 points lower for VP9.
  • With libaom at cpu-used 8, 2-pass had no time penalty in this data, but no quality advantage either. The mean VMAF was similar or lower, so unless you must fix the size in advance, a single CRF run is simpler. You can pick a starting CRF with the CRF recommender.
  • VP9 spends 1.31 to 1.83 times the CPU time and 1.84 to 2.71 times the wall-clock time, and the benefit it gets ranged from -6.4 to +2.4 points depending on the video. It is only worth trying 2-pass when you must hit a low bitrate on an easy video (scenery, static scenes).
  • To compare with the x264 and x265 results, see the 2-pass vs CRF test and the 540p low-bitrate 2-pass codec comparison. For the effect of speed settings on VP9 and AV1, see the VP9 cpu-used test and the libaom cpu-used test.

You can download the full raw data as a CSV at the bottom of the page. The errors in the tables can be recalculated from the kbps column of the CSV, and the differences and ratios from vmaf_mean, vmaf_p5, utime_s and rtime_s.

Raw data: vp9-av1-2pass-vs-crf-same-bitrate-v1.csv