VP9 vs libaom AV1: File Size, VMAF and Encoding Time Compared
A VP9 vs AV1 (libaom) comparison on four 10-second 1080p25 clips, each encoded at a slower and a faster preset. At the same VMAF of 90, AV1 needed 52–79% of the VP9 file size and 2.1–5.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)
In this test, the file size needed to reach VMAF 90 with libaom (AV1) was 52–79% of VP9 (compared between paired presets, comparable clips only). In exchange, it used 2.1–5.8x the CPU time. Both the size savings and the time cost varied widely from clip to clip.
Why we ran this
How much smaller is AV1 than VP9, and how much longer does the encode take? YouTube is known to serve video in both formats, so anyone encoding their own video will sooner or later ask this. This VP9 vs libaom comparison answers it on the same four clips. Our earlier CRF sweep covered x264, x265 and SVT-AV1 but left out VP9 and libaom.
VP9 and libaom use different CRF scales, so the same CRF does not mean the same quality. On blue_sky, for example, CRF 27 gave 12,016,732 B with the VP9 slower preset and 4,925,028 B with the libaom slower preset. So instead of comparing CRF values, we encoded with each encoder at six CRF values (27–57), plotted a file-size-versus-quality curve for each, and compared file sizes at the same VMAF.
Test setup
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 is no substitute for your own eyes. In this article, "mean" is the average of the 250 per-frame scores, and "5th percentile" is the cutoff for the worst 5% of frames.
Encoder settings
Input and output paths are omitted. We substituted each CRF value for Q, one encode per value. We pair the slower presets (VP9 2 ↔ libaom 4) and the faster presets (VP9 5 ↔ libaom 6) and compare by speed tier. The same preset number does not mean the same speed class; we chose the pairing ourselves for this article.
Test clips: source and license
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).
Easy clips like blue_sky saturate near VMAF 100 at low CRF values, so we extended the CRF range up to 57.
Results by clip
In each chart, the x-axis is file size (bitrate) and the y-axis is VMAF. Solid lines are the slower presets and dashed lines are the faster presets. At the same height, the curve further to the left delivered the same quality at a smaller file size. The tables list file size, VMAF, fps and CPU time for every CRF.
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 4 | 27 | 3,940 kbps | 99.98 | 100.00 | 41.62 | 1.08 | 612.5 |
| AV1 (libaom) · preset 4 | 33 | 2,540.6 kbps | 99.97 | 100.00 | 40.51 | 1.3 | 502.8 |
| AV1 (libaom) · preset 4 | 39 | 1,855.2 kbps | 99.97 | 100.00 | 39.52 | 1.48 | 427.2 |
| AV1 (libaom) · preset 4 | 45 | 1,349.1 kbps | 99.95 | 100.00 | 38.41 | 1.88 | 350.8 |
| AV1 (libaom) · preset 4 | 51 | 971 kbps | 99.24 | 96.36 | 37.18 | 2.14 | 311.9 |
| AV1 (libaom) · preset 4 | 57 | 643.6 kbps | 95.47 | 90.63 | 35.60 | 2.54 | 262.1 |
| AV1 (libaom) · preset 6 | 27 | 3,630.7 kbps | 99.97 | 100.00 | 40.93 | 4.05 | 194.8 |
| AV1 (libaom) · preset 6 | 33 | 2,319.1 kbps | 99.97 | 100.00 | 39.62 | 4.6 | 169.2 |
| AV1 (libaom) · preset 6 | 39 | 1,573.5 kbps | 99.90 | 99.66 | 38.36 | 5.2 | 148.3 |
| AV1 (libaom) · preset 6 | 45 | 1,086.3 kbps | 98.43 | 94.14 | 37.01 | 5.92 | 130.5 |
| AV1 (libaom) · preset 6 | 51 | 757 kbps | 94.17 | 87.81 | 35.66 | 6.61 | 117.2 |
| AV1 (libaom) · preset 6 | 57 | 491.8 kbps | 87.00 | 80.56 | 33.93 | 7.34 | 104.3 |
| VP9 (libvpx) · preset 2 | 27 | 9,613.4 kbps | 99.98 | 100.00 | 41.59 | 6.14 | 146.4 |
| VP9 (libvpx) · preset 2 | 33 | 5,216.4 kbps | 99.98 | 100.00 | 40.09 | 6.96 | 129.7 |
| VP9 (libvpx) · preset 2 | 39 | 2,835 kbps | 99.93 | 99.42 | 38.44 | 9.26 | 95.3 |
| VP9 (libvpx) · preset 2 | 45 | 1,629.5 kbps | 98.16 | 93.83 | 36.65 | 10.21 | 86.6 |
| VP9 (libvpx) · preset 2 | 51 | 976 kbps | 92.14 | 86.77 | 34.83 | 10.03 | 86.8 |
| VP9 (libvpx) · preset 2 | 57 | 588.2 kbps | 82.97 | 76.91 | 32.89 | 10.94 | 80.4 |
| VP9 (libvpx) · preset 5 | 27 | 8,700.5 kbps | 99.98 | 100.00 | 41.23 | 7.87 | 92.9 |
| VP9 (libvpx) · preset 5 | 33 | 4,792.5 kbps | 99.98 | 100.00 | 39.71 | 10.56 | 69.4 |
| VP9 (libvpx) · preset 5 | 39 | 2,657 kbps | 99.91 | 99.35 | 38.00 | 11.89 | 60.7 |
| VP9 (libvpx) · preset 5 | 45 | 1,540.7 kbps | 97.66 | 93.49 | 36.20 | 10.39 | 60.0 |
| VP9 (libvpx) · preset 5 | 51 | 920.7 kbps | 90.72 | 85.31 | 34.30 | 14.2 | 49.0 |
| VP9 (libvpx) · preset 5 | 57 | 563.8 kbps | 81.12 | 74.78 | 32.40 | 15.25 | 44.6 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| AV1 (libaom) · preset 4 | 27 | 2,675.2 kbps | 99.05 | 96.78 | 41.98 | 1.25 | 567.8 |
| AV1 (libaom) · preset 4 | 33 | 1,826.2 kbps | 97.42 | 94.70 | 41.24 | 1.38 | 500.8 |
| AV1 (libaom) · preset 4 | 39 | 1,260.6 kbps | 94.23 | 91.94 | 40.32 | 1.63 | 423.4 |
| AV1 (libaom) · preset 4 | 45 | 890.5 kbps | 89.99 | 87.69 | 39.32 | 1.95 | 367.1 |
| AV1 (libaom) · preset 4 | 51 | 629.5 kbps | 84.05 | 80.66 | 38.18 | 2.3 | 310.9 |
| AV1 (libaom) · preset 4 | 57 | 416.4 kbps | 75.54 | 70.08 | 36.66 | 2.61 | 273.6 |
| AV1 (libaom) · preset 6 | 27 | 2,567 kbps | 98.21 | 95.47 | 41.56 | 4.18 | 197.7 |
| AV1 (libaom) · preset 6 | 33 | 1,758.8 kbps | 95.61 | 92.63 | 40.69 | 4.78 | 167.6 |
| AV1 (libaom) · preset 6 | 39 | 1,217.1 kbps | 91.58 | 88.89 | 39.70 | 5.31 | 152.4 |
| AV1 (libaom) · preset 6 | 45 | 846.4 kbps | 86.12 | 82.77 | 38.59 | 5.9 | 134.0 |
| AV1 (libaom) · preset 6 | 51 | 593.5 kbps | 79.17 | 75.50 | 37.35 | 6.58 | 121.8 |
| AV1 (libaom) · preset 6 | 57 | 387.4 kbps | 69.03 | 64.14 | 35.74 | 7.3 | 109.5 |
| VP9 (libvpx) · preset 2 | 27 | 5,630.6 kbps | 98.69 | 95.78 | 41.65 | 5.5 | 163.3 |
| VP9 (libvpx) · preset 2 | 33 | 3,243.8 kbps | 96.66 | 93.25 | 40.70 | 6.92 | 126.8 |
| VP9 (libvpx) · preset 2 | 39 | 2,009.7 kbps | 92.67 | 88.99 | 39.56 | 8.28 | 104.5 |
| VP9 (libvpx) · preset 2 | 45 | 1,308.9 kbps | 86.50 | 82.48 | 38.26 | 9.24 | 92.0 |
| VP9 (libvpx) · preset 2 | 51 | 867 kbps | 78.11 | 73.28 | 36.79 | 10.87 | 77.0 |
| VP9 (libvpx) · preset 2 | 57 | 579.8 kbps | 67.37 | 61.26 | 35.20 | 11.72 | 69.1 |
| VP9 (libvpx) · preset 5 | 27 | 5,206.7 kbps | 98.63 | 95.70 | 41.31 | 7.37 | 102.8 |
| VP9 (libvpx) · preset 5 | 33 | 3,118.9 kbps | 96.36 | 92.99 | 40.32 | 9.55 | 77.8 |
| VP9 (libvpx) · preset 5 | 39 | 1,965.6 kbps | 92.08 | 88.30 | 39.18 | 11.54 | 63.4 |
| VP9 (libvpx) · preset 5 | 45 | 1,288 kbps | 85.51 | 81.17 | 37.88 | 13.51 | 52.7 |
| VP9 (libvpx) · preset 5 | 51 | 869.8 kbps | 76.52 | 71.11 | 36.40 | 15.17 | 47.3 |
| VP9 (libvpx) · preset 5 | 57 | 582.2 kbps | 65.77 | 59.52 | 34.84 | 16.98 | 41.1 |
riverbed — riverbed (fine ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| AV1 (libaom) · preset 4 | 27 | 15,360 kbps | 99.94 | 100.00 | 39.20 | 0.63 | 1211.0 |
| AV1 (libaom) · preset 4 | 33 | 10,501.2 kbps | 99.60 | 98.19 | 37.69 | 0.69 | 1113.9 |
| AV1 (libaom) · preset 4 | 39 | 7,020 kbps | 91.82 | 89.12 | 36.03 | 0.81 | 941.3 |
| AV1 (libaom) · preset 4 | 45 | 4,593.5 kbps | 79.70 | 75.65 | 34.29 | 1 | 783.3 |
| AV1 (libaom) · preset 4 | 51 | 2,907.1 kbps | 64.49 | 60.29 | 32.47 | 1.18 | 663.3 |
| AV1 (libaom) · preset 4 | 57 | 1,677.2 kbps | 47.27 | 42.94 | 30.50 | 1.38 | 573.4 |
| AV1 (libaom) · preset 6 | 27 | 15,332.6 kbps | 99.93 | 100.00 | 38.93 | 1.97 | 421.3 |
| AV1 (libaom) · preset 6 | 33 | 10,524 kbps | 98.23 | 96.10 | 37.37 | 2.14 | 392.8 |
| AV1 (libaom) · preset 6 | 39 | 6,980.3 kbps | 89.16 | 86.35 | 35.69 | 2.36 | 356.3 |
| AV1 (libaom) · preset 6 | 45 | 4,527.8 kbps | 76.73 | 73.17 | 33.91 | 2.7 | 308.1 |
| AV1 (libaom) · preset 6 | 51 | 2,923.4 kbps | 62.14 | 58.11 | 32.20 | 3.19 | 260.4 |
| AV1 (libaom) · preset 6 | 57 | 1,689 kbps | 45.58 | 41.08 | 30.18 | 3.93 | 211.2 |
| VP9 (libvpx) · preset 2 | 27 | 25,626.8 kbps | 99.98 | 100.00 | 40.42 | 3.08 | 295.5 |
| VP9 (libvpx) · preset 2 | 33 | 17,330.7 kbps | 99.61 | 97.92 | 38.86 | 3.52 | 259.3 |
| VP9 (libvpx) · preset 2 | 39 | 11,283.2 kbps | 94.07 | 88.69 | 37.09 | 3.92 | 231.1 |
| VP9 (libvpx) · preset 2 | 45 | 7,295.7 kbps | 84.32 | 76.50 | 35.22 | 4.48 | 202.4 |
| VP9 (libvpx) · preset 2 | 51 | 4,638.1 kbps | 70.89 | 61.73 | 33.30 | 5.06 | 177.3 |
| VP9 (libvpx) · preset 2 | 57 | 2,870.4 kbps | 55.96 | 46.59 | 31.38 | 5.35 | 166.0 |
| VP9 (libvpx) · preset 5 | 27 | 23,679.5 kbps | 99.98 | 100.00 | 40.05 | 3.85 | 218.4 |
| VP9 (libvpx) · preset 5 | 33 | 15,900 kbps | 99.27 | 97.04 | 38.47 | 4.79 | 173.9 |
| VP9 (libvpx) · preset 5 | 39 | 10,393.4 kbps | 93.31 | 87.43 | 36.72 | 6.02 | 139.9 |
| VP9 (libvpx) · preset 5 | 45 | 6,740.9 kbps | 82.99 | 74.96 | 34.90 | 7.87 | 103.1 |
| VP9 (libvpx) · preset 5 | 51 | 4,339.4 kbps | 69.01 | 59.69 | 33.03 | 10.13 | 78.3 |
| VP9 (libvpx) · preset 5 | 57 | 2,723.9 kbps | 54.40 | 45.37 | 31.15 | 11.43 | 66.3 |
rush_hour — evening rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| AV1 (libaom) · preset 4 | 27 | 2,726.2 kbps | 94.19 | 92.10 | 42.09 | 1.17 | 642.5 |
| AV1 (libaom) · preset 4 | 33 | 1,785.7 kbps | 90.99 | 89.49 | 41.43 | 1.36 | 551.4 |
| AV1 (libaom) · preset 4 | 39 | 1,168.5 kbps | 86.45 | 84.58 | 40.60 | 1.71 | 436.4 |
| AV1 (libaom) · preset 4 | 45 | 759.8 kbps | 80.69 | 77.91 | 39.60 | 2.25 | 336.2 |
| AV1 (libaom) · preset 4 | 51 | 506 kbps | 74.23 | 71.18 | 38.56 | 2.71 | 280.8 |
| AV1 (libaom) · preset 4 | 57 | 316 kbps | 66.23 | 62.55 | 37.26 | 3.25 | 236.5 |
| AV1 (libaom) · preset 6 | 27 | 2,675.2 kbps | 93.39 | 91.85 | 41.87 | 4.13 | 202.7 |
| AV1 (libaom) · preset 6 | 33 | 1,700.9 kbps | 89.53 | 87.57 | 41.10 | 4.74 | 173.6 |
| AV1 (libaom) · preset 6 | 39 | 1,101 kbps | 84.58 | 82.15 | 40.21 | 5.44 | 149.7 |
| AV1 (libaom) · preset 6 | 45 | 709.2 kbps | 78.24 | 75.21 | 39.17 | 6.67 | 122.1 |
| AV1 (libaom) · preset 6 | 51 | 464.1 kbps | 70.99 | 67.66 | 38.05 | 7.54 | 107.3 |
| AV1 (libaom) · preset 6 | 57 | 284.2 kbps | 62.29 | 58.71 | 36.64 | 8.52 | 94.9 |
| VP9 (libvpx) · preset 2 | 27 | 5,774.9 kbps | 96.07 | 94.19 | 42.31 | 6.01 | 149.5 |
| VP9 (libvpx) · preset 2 | 33 | 3,364.2 kbps | 93.36 | 91.08 | 41.56 | 7.75 | 114.7 |
| VP9 (libvpx) · preset 2 | 39 | 1,989.9 kbps | 89.06 | 86.03 | 40.64 | 9.33 | 94.4 |
| VP9 (libvpx) · preset 2 | 45 | 1,219.8 kbps | 82.93 | 79.37 | 39.51 | 11.05 | 79.3 |
| VP9 (libvpx) · preset 2 | 51 | 756.6 kbps | 75.28 | 71.36 | 38.18 | 12.89 | 66.6 |
| VP9 (libvpx) · preset 2 | 57 | 474 kbps | 66.01 | 61.77 | 36.65 | 14.42 | 58.3 |
| VP9 (libvpx) · preset 5 | 27 | 5,324.3 kbps | 96.08 | 94.26 | 41.96 | 7.9 | 95.8 |
| VP9 (libvpx) · preset 5 | 33 | 3,201.3 kbps | 93.24 | 90.87 | 41.17 | 10.31 | 72.9 |
| VP9 (libvpx) · preset 5 | 39 | 1,918.9 kbps | 88.68 | 85.64 | 40.27 | 12.75 | 58.9 |
| VP9 (libvpx) · preset 5 | 45 | 1,184.6 kbps | 82.22 | 78.46 | 39.15 | 15.36 | 48.1 |
| VP9 (libvpx) · preset 5 | 51 | 755.4 kbps | 74.14 | 69.86 | 37.83 | 18.13 | 39.8 |
| VP9 (libvpx) · preset 5 | 57 | 480.1 kbps | 64.63 | 60.24 | 36.27 | 20.32 | 34.7 |
How to read it, and what we saw
The comparisons below are calculated from the numbers in the tables. Because the measured points of the four encoders don't land on exactly the same VMAF, we estimated the bitrate at VMAF 90 by joining the two measured points on either side of VMAF 90 with a straight line (linear interpolation of kbps against VMAF). If the points are far apart, the estimate can deviate from the true curve. Where no measured points straddle VMAF 90, we did not estimate and left a "–".
Estimated bitrate at VMAF 90. AV1/VP9 = AV1 ÷ VP9. For blue_sky with the libaom slower preset, even the lowest measured point is VMAF 95.47, so no points straddle VMAF 90. For riverbed with the libaom faster preset, the estimate joins CRF 33 (VMAF 98.23) and CRF 39 (VMAF 89.16), so the error may be relatively large.
- Between the slower presets, AV1 used 52–72% of the VP9 file size (3 comparable clips), i.e. 28–48% smaller. The biggest saving was on pedestrian_area (48% smaller) and the smallest on rush_hour (28% smaller).
- Between the faster presets, AV1 used 63–79% of the VP9 file size (all 4 clips), i.e. 21–37% smaller. The saving was smaller than with the slower presets.
- The gap varies a lot by clip. Even within the same pairing (slower ↔ slower), it ranged from 28% to 48%. Don't apply this one number to every video.
- Slowing the VP9 preset did not shrink the file much. At VMAF 90, the difference between VP9 preset 2 and 5 was 885 vs 894 kbps on blue_sky, 1,707 vs 1,751 kbps on pedestrian_area and 2,289 vs 2,289 kbps on rush_hour, a difference of 0–3%; on riverbed, preset 5 (9,223 kbps) was actually smaller than preset 2 (9,619 kbps). CPU time, on the other hand, differed a lot (see below).
- The libaom preset made a visible difference. At VMAF 90, the faster preset (6) was larger than the slower preset (4) by 24% on pedestrian_area (1,110 vs 892 kbps), 10% on riverbed (7,307 vs 6,656 kbps) and 10% on rush_hour (1,819 vs 1,651 kbps).
- Faster libaom (6) was even smaller than slower VP9 (2). At VMAF 90, AV1 preset 6 ÷ VP9 preset 2 was 68% on blue_sky, 65% on pedestrian_area, 76% on riverbed and 79% on rush_hour.
- The same mean can hide different worst frames. On riverbed at CRF 27, mean VMAF was similar for VP9 slower (99.981) and libaom slower (99.937), but the minimum frame scores were 95.35 and 84.17. This data alone can't tell us why.
Encoding time: what does it cost?
Because we ran the processes at IDLE priority, wall-clock time (rtime) fluctuates with whatever else the machine is doing. So we compare CPU time (utime). The table below picks, for each encoder, the measured point closest to VMAF 90 and puts the utime values side by side. Since the two VMAF values are not exactly equal, we list the VMAF in parentheses.
Each cell is CRF (mean VMAF): CPU time. Ratio = AV1 utime ÷ VP9 utime. The points are the closest ones, not points at the same VMAF, so the quality gap is large in some cells, especially the blue_sky slower pair (VMAF 92.1 vs 95.5).
- AV1 used 3.0–5.8x the CPU time of VP9 in the slower pairing and 2.1–2.9x in the faster pairing.
- In terms of the encoding speed you see on screen (fps based on rtime), libaom slower ranged from 0.63 to 3.25 fps, libaom faster from 1.97 to 8.52 fps, VP9 slower from 3.08 to 14.42 fps and VP9 faster from 3.85 to 20.32 fps. Encoding 10 seconds (250 frames) of 1080p with libaom slower took 395.7 seconds on riverbed at CRF 27.
- Faster libaom (6) used about 1.5–1.8x the CPU time of slower VP9 (2) (pedestrian_area 152.4 vs 104.5 s, riverbed 356.3 vs 231.1 s, rush_hour 173.6 vs 94.4 s — 1.46x, 1.54x and 1.84x respectively). Combined with the result above that faster AV1 is smaller than slower VP9, on these clips faster libaom looks like a way to spend a little more time for noticeably smaller files. We didn't calculate a time ratio for blue_sky because the VMAF values differ.
- For all four settings, CPU time tended to drop as CRF went up (and file size went down). For example, libaom slower on riverbed took 1211.0 s at CRF 27 and 573.4 s at CRF 57.
Limitations
- Only four 10-second clips. They cover scenery, city and ripple-like content, but not animation, screen recordings or dark footage. Don't apply the ratios above to every video.
- Only 8-bit yuv420p was measured. 10-bit and HDR are not covered.
- This is not what YouTube actually uses. YouTube's encoding settings are not public. This article only shows the results of running libvpx-vp9 and libaom-av1 with the options above; it does not reproduce YouTube's quality.
- Only one rate-control mode (CRF, quality-based) was measured. We did not test 2-pass encoding to a target bitrate, or other VP9 options such as tiles or lag-in-frames.
- The preset pairing is our own choice. VP9's cpu-used and libaom's cpu-used don't mean the same speed. With other presets, both file size and speed will change.
- The VMAF 90 estimate is interpolation. We joined measured points with straight lines, and some points are far apart. We compared at a single VMAF value, so the ratios may differ at other quality levels.
- We used only the default VMAF model. The same score can look different in texture, and PSNR (psnr_y) is in the CSV but we did not interpret it.
- One PC, one measurement. We did not repeat runs to estimate error, and the IDLE priority makes wall-clock time fluctuate. Treat speed as a rough reference.
- File sizes in the tables are video stream file sizes. Audio, playback compatibility and hardware decoding support are not factored in.
Practical recommendations
- If you want the smallest files and can spend the encoding time, libaom (AV1) gave the smallest results in this test. However, slower libaom sometimes took minutes for 10 seconds of 1080p (riverbed CRF 27: 395.7 s), which becomes impractical for long videos.
- For a balance of time and size, try faster libaom (cpu-used 6) first. On three clips in this test (pedestrian_area, riverbed, rush_hour), it produced smaller files than slower VP9 for 1.5–1.8x the CPU time.
- If you use VP9, the gain from the slower preset was small in this test. At VMAF 90 the size difference was at most 4% (on riverbed the slower preset was actually larger), while CPU time at the measured points in the table above was 1.6–1.8x (e.g. pedestrian_area 104.5 vs 63.4 s). It may vary by clip, so check with your own video.
- Whether your playback targets support AV1 needs to be checked separately. You can look up per-device support with the codec support checker. To hit a target file size (for example, a 10 MB upload limit), use the video size and bitrate calculator alongside it.
- Don't carry CRF numbers across codecs; compare by file size at the same quality (VMAF). The curves for x264, x265 and SVT-AV1 are in the CRF sweep.
The full raw data can be downloaded as a CSV at the bottom of the page.
Raw data: vp9-vs-libaom-v1.csv