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)
"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
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
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.
# 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 QkVP9 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
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| AV1 (libaom) · preset 8 | 30 | 2,931.8 kbps | 99.97 | 100.00 | 40.34 | 4.16 | 197.9 |
| AV1 (libaom) · preset 8 | 40 | 1,479.2 kbps | 99.82 | 98.89 | 38.15 | 5.27 | 152.5 |
| AV1 (libaom) · preset 8 | 50 | 805.8 kbps | 95.07 | 88.88 | 35.90 | 6.55 | 121.3 |
| AV1 (libaom) · preset 8 | 58 | 448.4 kbps | 85.27 | 78.62 | 33.56 | 7.48 | 106.0 |
| AV1 (libaom) · preset 8+2pass | 1000 | 774 kbps | 93.79 | 84.81 | 35.86 | 6.81 | 114.9 |
| AV1 (libaom) · preset 8+2pass | 2500 | 2,005.8 kbps | 99.92 | 100.00 | 39.28 | 5.03 | 158.6 |
| AV1 (libaom) · preset 8+2pass | 5000 | 4,065.9 kbps | 99.98 | 100.00 | 41.31 | 3.93 | 205.8 |
| AV1 (libaom) · preset 8+2pass | 10000 | 8,710.4 kbps | 99.99 | 100.00 | 42.99 | 3.13 | 257.8 |
| VP9 (libvpx) · preset 5 | 28 | 7,940.8 kbps | 99.98 | 100.00 | 41.00 | 7.52 | 101.1 |
| VP9 (libvpx) · preset 5 | 38 | 2,915.1 kbps | 99.96 | 100.00 | 38.29 | 10.44 | 71.9 |
| VP9 (libvpx) · preset 5 | 48 | 1,200.4 kbps | 94.85 | 89.88 | 35.30 | 13.33 | 55.8 |
| VP9 (libvpx) · preset 5 | 56 | 604.6 kbps | 82.90 | 76.67 | 32.70 | 15.63 | 47.1 |
| VP9 (libvpx) · preset 5+2pass | 1000 | 874.1 kbps | 91.38 | 84.63 | 34.70 | 5.27 | 94.7 |
| VP9 (libvpx) · preset 5+2pass | 2500 | 2,122.5 kbps | 99.20 | 92.11 | 38.10 | 3.93 | 143.7 |
| VP9 (libvpx) · preset 5+2pass | 5000 | 4,227.8 kbps | 99.77 | 97.45 | 40.16 | 3.22 | 183.8 |
| VP9 (libvpx) · preset 5+2pass | 10000 | 8,258 kbps | 99.98 | 100.00 | 41.83 | 2.34 | 272.6 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| AV1 (libaom) · preset 8 | 30 | 2,145.6 kbps | 97.31 | 94.34 | 41.17 | 4.47 | 192.3 |
| AV1 (libaom) · preset 8 | 40 | 1,148.8 kbps | 90.81 | 88.19 | 39.53 | 5.59 | 149.8 |
| AV1 (libaom) · preset 8 | 50 | 629.1 kbps | 80.34 | 76.82 | 37.55 | 6.72 | 125.1 |
| AV1 (libaom) · preset 8 | 58 | 354 kbps | 66.67 | 61.34 | 35.41 | 7.84 | 107.3 |
| AV1 (libaom) · preset 8+2pass | 1000 | 974.2 kbps | 88.66 | 84.55 | 39.20 | 5.91 | 140.5 |
| AV1 (libaom) · preset 8+2pass | 2500 | 2,413.6 kbps | 97.85 | 95.39 | 41.52 | 4.35 | 192.8 |
| AV1 (libaom) · preset 8+2pass | 5000 | 4,977.8 kbps | 99.51 | 97.73 | 42.58 | 3.63 | 231.7 |
| AV1 (libaom) · preset 8+2pass | 10000 | 9,671.6 kbps | 99.87 | 99.05 | 43.34 | 2.75 | 305.7 |
| VP9 (libvpx) · preset 5 | 28 | 4,768.6 kbps | 98.38 | 95.36 | 41.16 | 7.71 | 102.7 |
| VP9 (libvpx) · preset 5 | 38 | 2,114.3 kbps | 92.89 | 89.17 | 39.38 | 11.57 | 68.5 |
| VP9 (libvpx) · preset 5 | 48 | 1,058.4 kbps | 81.45 | 76.53 | 37.17 | 15.3 | 51.6 |
| VP9 (libvpx) · preset 5 | 56 | 622.1 kbps | 67.62 | 61.45 | 35.10 | 17.84 | 43.5 |
| VP9 (libvpx) · preset 5+2pass | 1000 | 973.7 kbps | 81.70 | 76.60 | 37.47 | 6.47 | 74.0 |
| VP9 (libvpx) · preset 5+2pass | 2500 | 2,561.8 kbps | 95.21 | 92.68 | 40.36 | 5.03 | 110.6 |
| VP9 (libvpx) · preset 5+2pass | 5000 | 4,994.2 kbps | 98.52 | 96.17 | 41.55 | 3.97 | 157.2 |
| VP9 (libvpx) · preset 5+2pass | 10000 | 9,985.9 kbps | 99.55 | 97.62 | 42.52 | 2.97 | 231.0 |
riverbed — riverbed (fine ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| AV1 (libaom) · preset 8 | 30 | 12,919.4 kbps | 99.90 | 99.79 | 38.23 | 1.82 | 464.3 |
| AV1 (libaom) · preset 8 | 40 | 6,525 kbps | 87.43 | 84.47 | 35.41 | 2.15 | 392.3 |
| AV1 (libaom) · preset 8 | 50 | 3,152.4 kbps | 64.39 | 60.26 | 32.47 | 2.83 | 292.6 |
| AV1 (libaom) · preset 8 | 58 | 1,515.1 kbps | 42.79 | 38.51 | 29.85 | 3.7 | 225.6 |
| AV1 (libaom) · preset 8+2pass | 1000 | 977.7 kbps | 31.83 | 24.26 | 28.30 | 4.43 | 187.9 |
| AV1 (libaom) · preset 8+2pass | 2500 | 2,515.9 kbps | 55.06 | 41.45 | 31.38 | 3.13 | 262.8 |
| AV1 (libaom) · preset 8+2pass | 5000 | 5,050.1 kbps | 77.53 | 65.47 | 34.13 | 2.37 | 347.8 |
| AV1 (libaom) · preset 8+2pass | 10000 | 10,037.5 kbps | 95.00 | 86.75 | 36.98 | 1.93 | 432.7 |
| VP9 (libvpx) · preset 5 | 28 | 22,198.7 kbps | 99.98 | 100.00 | 39.80 | 3.83 | 222.2 |
| VP9 (libvpx) · preset 5 | 38 | 11,178.9 kbps | 94.66 | 89.63 | 37.03 | 5.51 | 154.2 |
| VP9 (libvpx) · preset 5 | 48 | 5,433.8 kbps | 76.38 | 67.48 | 33.98 | 7.63 | 111.5 |
| VP9 (libvpx) · preset 5 | 56 | 2,960 kbps | 56.98 | 47.83 | 31.47 | 9.3 | 87.6 |
| VP9 (libvpx) · preset 5+2pass | 1000 | 1,220.7 kbps | 32.64 | 23.37 | 28.23 | 4.95 | 102.2 |
| VP9 (libvpx) · preset 5+2pass | 2500 | 2,488.1 kbps | 47.75 | 28.32 | 30.42 | 4.48 | 121.3 |
| VP9 (libvpx) · preset 5+2pass | 5000 | 4,867.2 kbps | 66.47 | 42.77 | 32.96 | 3.89 | 146.8 |
| VP9 (libvpx) · preset 5+2pass | 10000 | 9,775.3 kbps | 87.61 | 65.19 | 36.04 | 3.16 | 191.4 |
rush_hour — evening rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| AV1 (libaom) · preset 8 | 30 | 2,179.8 kbps | 91.83 | 90.22 | 41.53 | 4.11 | 202.0 |
| AV1 (libaom) · preset 8 | 40 | 1,023.1 kbps | 83.64 | 81.12 | 40.04 | 5.27 | 156.5 |
| AV1 (libaom) · preset 8 | 50 | 496.8 kbps | 72.14 | 68.72 | 38.24 | 7.11 | 114.8 |
| AV1 (libaom) · preset 8 | 58 | 256.4 kbps | 60.36 | 56.66 | 36.33 | 8.48 | 96.5 |
| AV1 (libaom) · preset 8+2pass | 1000 | 984.5 kbps | 82.90 | 79.72 | 39.97 | 5.35 | 152.7 |
| AV1 (libaom) · preset 8+2pass | 2500 | 2,438.5 kbps | 92.48 | 90.52 | 41.73 | 3.94 | 209.9 |
| AV1 (libaom) · preset 8+2pass | 5000 | 4,782.7 kbps | 96.06 | 94.65 | 42.57 | 3.2 | 252.1 |
| AV1 (libaom) · preset 8+2pass | 10000 | 9,420.6 kbps | 98.33 | 97.39 | 43.29 | 2.49 | 330.3 |
| VP9 (libvpx) · preset 5 | 28 | 4,911.9 kbps | 95.68 | 93.81 | 41.84 | 7.04 | 113.3 |
| VP9 (libvpx) · preset 5 | 38 | 2,086.6 kbps | 89.58 | 86.57 | 40.43 | 10.42 | 74.4 |
| VP9 (libvpx) · preset 5 | 48 | 947.3 kbps | 78.32 | 74.06 | 38.52 | 14.75 | 52.4 |
| VP9 (libvpx) · preset 5 | 56 | 518.4 kbps | 66.30 | 62.08 | 36.54 | 17.85 | 43.3 |
| VP9 (libvpx) · preset 5+2pass | 1000 | 1,026.5 kbps | 78.76 | 74.39 | 38.84 | 6.41 | 73.6 |
| VP9 (libvpx) · preset 5+2pass | 2500 | 2,650.5 kbps | 91.27 | 89.21 | 41.06 | 4.73 | 118.9 |
| VP9 (libvpx) · preset 5+2pass | 5000 | 5,173.2 kbps | 95.38 | 92.11 | 42.01 | 3.67 | 169.7 |
| VP9 (libvpx) · preset 5+2pass | 10000 | 10,095.5 kbps | 97.90 | 96.33 | 42.84 | 2.52 | 259.6 |
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 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 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.
Column headers are target kbps. VP9 cpu-used 5 2-pass.
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,-maxrateand-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