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

x264 vs x265 vs SVT-AV1 vs VP9 vs libaom at Similar Speeds: Which Codec Gives the Smallest File for the Encoding Time?

We encoded four 10-second 1080p25 clips with x264 slow, x265 fast, SVT-AV1 10, VP9 5 and libaom 8 at four quality values each, then interpolated the file size and CPU time at VMAF 90. libaom 8 was the smallest on all four clips (0.42 to 0.65x the size of x264) at 2.7 to 4.2x the CPU time. SVT-AV1 10 was smaller than x264 slow (0.70 to 0.80x) at only 0.15 to 0.39x 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

If you want to save time, SVT-AV1 10 was the smallest option; if you can afford the time, libaom 8 was. At VMAF 90, libaom 8 was the smallest of the five on all four clips (0.42 to 0.65x the size of x264 slow) at 2.7 to 4.2x the CPU time of x264. SVT-AV1 10 reached 0.70 to 0.80x the size of x264 slow at 0.15 to 0.39x the CPU time. Among the three settings with similar speed (x264 slow, x265 fast and VP9 5), VP9 was the smallest on all four clips. The ranking changed on riverbed, where x264 was smaller than x265 and SVT-AV1 was smaller than VP9.

Why we ran this

"AV1 is the most efficient codec" is a common claim, but in real work your encoding time is limited. That raises questions like "is a fast AV1 encode or a slow x264 encode the better deal?" Our earlier measurements compared codecs at the same CRF (CRF, file size and VMAF compared), swept the presets of a single encoder (x265 preset test), or compared two AV1 implementations (SVT-AV1 vs libaom). This article picks one reasonably fast preset per codec and looks at file size and encoding time together at the same quality (VMAF 90).

This is not an "equal time" comparison

Preset names don't line up across codecs, so the encoding times of the chosen settings differ quite a bit. As shown below, CPU time was 0.15 to 0.39x that of x264 slow for SVT-AV1 10 and 2.7 to 4.2x for libaom 8. So we don't call this an equal-time comparison anywhere in the article, and the actual time ratios are listed in the tables. Only x264 slow, x265 fast and VP9 5 fall within 0.86 to 1.90x of each other.

Test setup

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
LengthOnly the first 250 frames (10 seconds) of each clip
Quality metriclibvmaf default model (vmaf_v0.6.1), measured per frame against the source → mean (vmaf_mean)
Scale4 clips × 5 encoders × 4 quality values = 80 runs
Measured on2026-11-10

VMAF is a quality metric developed by Netflix. It compares the source and the encoded video frame by frame and scores each on a 0 to 100 scale. The closer to 100, the harder it is to tell the encode from the source, but the score is not a direct substitute for human judgment. The VMAF in this article is the average of the 250 frame scores. The 5th-percentile and minimum values are in the CSV and in the tables below, but we didn't use them for comparisons (the problem of averages hiding low-scoring frames is covered separately in Is Average VMAF 95 Good Enough?).

Encoder settings

EncoderPresetFour quality valuesCommand (key options)
x264slowCRF 22, 28, 34, 40-c:v libx264 -preset slow -crf Q -threads 4
x265fastCRF 24, 30, 36, 42-c:v libx265 -preset fast -crf Q -x265-params pools=4:log-level=error
SVT-AV110CRF 30, 40, 50, 58-c:v libsvtav1 -preset 10 -crf Q -svtav1-params lp=4
VP9 (libvpx)cpu-used 5CRF 30, 38, 46, 54-c:v libvpx-vp9 -cpu-used 5 -crf Q -b:v 0 -row-mt 1 -threads 4
AV1 (libaom)cpu-used 8CRF 30, 40, 50, 58-c:v libaom-av1 -cpu-used 8 -crf Q -b:v 0 -row-mt 1 -threads 4

Input was the original y4m, output was mkv, no audio. We substituted each value above for Q one at a time. CRF scales differ between codecs, so don't compare the numbers across codecs. The quality range was set wide so that the VMAF 85 to 99 region shows up as a curve.

Test clip sources and licenses

All four clips are 1080p25 footage 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 the curves, the x-axis is file size (bitrate) and the y-axis is mean VMAF. At the same height, the encoder further to the left reached the same mean quality at a smaller size. The tables also include encoding times (rtime_s is elapsed wall-clock time, utime_s is CPU time used) and fps_rt.

blue_sky — blue sky and tree branches

60708090100500k1M2M5MBitrate (bps, log scale)VMAFx264 (H.264) q=40: 631.9 kbps, VMAF 67.375x264 (H.264) q=34: 1,175 kbps, VMAF 89.954x264 (H.264) q=28: 2,433.6 kbps, VMAF 99.507x264 (H.264) q=22: 6,242.8 kbps, VMAF 99.977x265 (HEVC) q=42: 383.7 kbps, VMAF 67.692x265 (HEVC) q=36: 811.2 kbps, VMAF 87.419x265 (HEVC) q=30: 1,721.6 kbps, VMAF 98.458x265 (HEVC) q=24: 3,976.6 kbps, VMAF 99.971SVT-AV1 (AV1) q=58: 673.3 kbps, VMAF 84.82SVT-AV1 (AV1) q=50: 1,176.3 kbps, VMAF 93.481SVT-AV1 (AV1) q=40: 2,322 kbps, VMAF 99.024SVT-AV1 (AV1) q=30: 5,303.3 kbps, VMAF 99.974VP9 (libvpx) q=54: 731.2 kbps, VMAF 86.354VP9 (libvpx) q=46: 1,414.5 kbps, VMAF 96.847VP9 (libvpx) q=38: 2,915.1 kbps, VMAF 99.957VP9 (libvpx) q=30: 6,597.2 kbps, VMAF 99.982AV1 (libaom) q=58: 448.4 kbps, VMAF 85.266AV1 (libaom) q=50: 805.8 kbps, VMAF 95.073AV1 (libaom) q=40: 1,479.2 kbps, VMAF 99.823AV1 (libaom) q=30: 2,931.8 kbps, VMAF 99.973
x264 (H.264)x265 (HEVC)SVT-AV1 (AV1)VP9 (libvpx)AV1 (libaom)
blue_sky — blue sky and tree branches — size vs. VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
AV1 (libaom)302,931.8 kbps99.97100.0040.344.16187.5
AV1 (libaom)401,479.2 kbps99.8298.8938.154.27153.4
AV1 (libaom)50805.8 kbps95.0788.8835.906.61117.2
AV1 (libaom)58448.4 kbps85.2778.6233.566.34106.8
SVT-AV1 (AV1)305,303.3 kbps99.97100.0039.77140.6110.8
SVT-AV1 (AV1)402,322 kbps99.0295.4937.59156.549.9
SVT-AV1 (AV1)501,176.3 kbps93.4887.2435.54145.3510.1
SVT-AV1 (AV1)58673.3 kbps84.8276.7033.53155.5710.7
VP9 (libvpx)306,597.2 kbps99.98100.0040.539.1480.2
VP9 (libvpx)382,915.1 kbps99.96100.0038.2910.4966.8
VP9 (libvpx)461,414.5 kbps96.8592.1435.9010.1957.2
VP9 (libvpx)54731.2 kbps86.3580.2333.4015.2446.2
x264 (H.264)226,242.8 kbps99.98100.0040.2312.5246.6
x264 (H.264)282,433.6 kbps99.5197.1737.3117.331.6
x264 (H.264)341,175 kbps89.9584.5533.7916.4826.3
x264 (H.264)40631.9 kbps67.3860.3429.9137.2920.0
x265 (HEVC)243,976.6 kbps99.97100.0039.8714.0549.5
x265 (HEVC)301,721.6 kbps98.4694.3837.1727.0736.3
x265 (HEVC)36811.2 kbps87.4282.6134.0032.530.3
x265 (HEVC)42383.7 kbps67.6962.0730.4937.2626.3
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

405060708090100500k1M2M5MBitrate (bps, log scale)VMAFx264 (H.264) q=40: 642 kbps, VMAF 47.056x264 (H.264) q=34: 1,190 kbps, VMAF 71.174x264 (H.264) q=28: 2,349 kbps, VMAF 88.752x264 (H.264) q=22: 5,356.4 kbps, VMAF 97.775x265 (HEVC) q=42: 364 kbps, VMAF 46.354x265 (HEVC) q=36: 740.7 kbps, VMAF 69.242x265 (HEVC) q=30: 1,466.6 kbps, VMAF 86.005x265 (HEVC) q=24: 3,110.7 kbps, VMAF 95.463SVT-AV1 (AV1) q=58: 455.1 kbps, VMAF 63.292SVT-AV1 (AV1) q=50: 887.5 kbps, VMAF 78.287SVT-AV1 (AV1) q=40: 1,825.4 kbps, VMAF 89.866SVT-AV1 (AV1) q=30: 3,990.3 kbps, VMAF 97.274VP9 (libvpx) q=54: 718.6 kbps, VMAF 71.438VP9 (libvpx) q=46: 1,207.9 kbps, VMAF 84.153VP9 (libvpx) q=38: 2,114.3 kbps, VMAF 92.893VP9 (libvpx) q=30: 4,052.3 kbps, VMAF 97.816AV1 (libaom) q=58: 354 kbps, VMAF 66.673AV1 (libaom) q=50: 629.1 kbps, VMAF 80.339AV1 (libaom) q=40: 1,148.8 kbps, VMAF 90.812AV1 (libaom) q=30: 2,145.6 kbps, VMAF 97.31
x264 (H.264)x265 (HEVC)SVT-AV1 (AV1)VP9 (libvpx)AV1 (libaom)
pedestrian_area — pedestrian street — size vs. VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
AV1 (libaom)302,145.6 kbps97.3194.3441.174.56181.5
AV1 (libaom)401,148.8 kbps90.8188.1939.535.71144.7
AV1 (libaom)50629.1 kbps80.3476.8237.556.88119.9
AV1 (libaom)58354 kbps66.6761.3435.417.98103.0
SVT-AV1 (AV1)303,990.3 kbps97.2793.7640.80136.6912.4
SVT-AV1 (AV1)401,825.4 kbps89.8786.0138.79151.710.0
SVT-AV1 (AV1)50887.5 kbps78.2972.9236.71156.8410.9
SVT-AV1 (AV1)58455.1 kbps63.2955.1734.53163.089.9
VP9 (libvpx)304,052.3 kbps97.8294.7340.866.7796.3
VP9 (libvpx)382,114.3 kbps92.8989.1739.3811.764.5
VP9 (libvpx)461,207.9 kbps84.1579.5037.6414.7950.6
VP9 (libvpx)54718.6 kbps71.4465.3335.6618.0841.2
x264 (H.264)225,356.4 kbps97.7894.6440.979.0960.2
x264 (H.264)282,349 kbps88.7585.7738.5718.5239.1
x264 (H.264)341,190 kbps71.1768.3735.6926.8728.9
x264 (H.264)40642 kbps47.0643.8632.5136.1923.6
x265 (HEVC)243,110.7 kbps95.4693.0040.7118.6453.0
x265 (HEVC)301,466.6 kbps86.0083.9538.4321.3545.9
x265 (HEVC)36740.7 kbps69.2467.0235.7424.2240.0
x265 (HEVC)42364 kbps46.3543.0732.8028.3434.7
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (fine ripples)

20304050607080901002M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) q=40: 2,238.4 kbps, VMAF 32.918x264 (H.264) q=34: 5,585.4 kbps, VMAF 62.447x264 (H.264) q=28: 11,956.4 kbps, VMAF 91.116x264 (H.264) q=22: 24,108.3 kbps, VMAF 99.951x265 (HEVC) q=42: 1,255.6 kbps, VMAF 29.741x265 (HEVC) q=36: 3,231.6 kbps, VMAF 51.523x265 (HEVC) q=30: 7,103.3 kbps, VMAF 76.268x265 (HEVC) q=24: 14,497.3 kbps, VMAF 95.111SVT-AV1 (AV1) q=58: 2,015.9 kbps, VMAF 46.835SVT-AV1 (AV1) q=50: 4,517.2 kbps, VMAF 70.76SVT-AV1 (AV1) q=40: 9,701.6 kbps, VMAF 93.615SVT-AV1 (AV1) q=30: 19,371 kbps, VMAF 99.961VP9 (libvpx) q=54: 3,462.6 kbps, VMAF 61.456VP9 (libvpx) q=46: 6,275.9 kbps, VMAF 80.882VP9 (libvpx) q=38: 11,178.9 kbps, VMAF 94.663VP9 (libvpx) q=30: 19,679.9 kbps, VMAF 99.979AV1 (libaom) q=58: 1,515.1 kbps, VMAF 42.792AV1 (libaom) q=50: 3,152.4 kbps, VMAF 64.392AV1 (libaom) q=40: 6,525 kbps, VMAF 87.434AV1 (libaom) q=30: 12,919.4 kbps, VMAF 99.897
x264 (H.264)x265 (HEVC)SVT-AV1 (AV1)VP9 (libvpx)AV1 (libaom)
riverbed — riverbed (fine ripples) — size vs. VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
AV1 (libaom)3012,919.4 kbps99.9099.7938.231.91438.9
AV1 (libaom)406,525 kbps87.4384.4735.412.3363.7
AV1 (libaom)503,152.4 kbps64.3960.2632.473.07270.0
AV1 (libaom)581,515.1 kbps42.7938.5129.853.55214.7
SVT-AV1 (AV1)3019,371 kbps99.96100.0038.5184.6919.2
SVT-AV1 (AV1)409,701.6 kbps93.6188.8635.9138.0221.4
SVT-AV1 (AV1)504,517.2 kbps70.7662.1532.78111.4117.2
SVT-AV1 (AV1)582,015.9 kbps46.8437.5229.82121.1215.2
VP9 (libvpx)3019,679.9 kbps99.98100.0039.334.25196.4
VP9 (libvpx)3811,178.9 kbps94.6689.6337.035.82143.1
VP9 (libvpx)466,275.9 kbps80.8872.5234.595.98120.2
VP9 (libvpx)543,462.6 kbps61.4651.8432.097.8785.0
x264 (H.264)2224,108.3 kbps99.95100.0038.714.76187.5
x264 (H.264)2811,956.4 kbps91.1288.6035.366.03143.8
x264 (H.264)345,585.4 kbps62.4558.7131.7310.1198.8
x264 (H.264)402,238.4 kbps32.9229.6327.8117.4258.7
x265 (HEVC)2414,497.3 kbps95.1191.9137.447.8127.0
x265 (HEVC)307,103.3 kbps76.2771.6134.289.22106.5
x265 (HEVC)363,231.6 kbps51.5246.6631.0910.7991.5
x265 (HEVC)421,255.6 kbps29.7425.4628.099.8577.5
riverbed — riverbed (fine ripples) — all measurements

rush_hour — evening rush-hour traffic

405060708090100500k1M2M5MBitrate (bps, log scale)VMAFx264 (H.264) q=40: 467.6 kbps, VMAF 45.492x264 (H.264) q=34: 951.5 kbps, VMAF 66.917x264 (H.264) q=28: 2,005 kbps, VMAF 83.696x264 (H.264) q=22: 5,065.1 kbps, VMAF 93.819x265 (HEVC) q=42: 242.6 kbps, VMAF 47.838x265 (HEVC) q=36: 549.1 kbps, VMAF 66.824x265 (HEVC) q=30: 1,250.2 kbps, VMAF 81.632x265 (HEVC) q=24: 2,882.8 kbps, VMAF 91.021SVT-AV1 (AV1) q=58: 304.5 kbps, VMAF 59.572SVT-AV1 (AV1) q=50: 591.7 kbps, VMAF 70.038SVT-AV1 (AV1) q=40: 1,347.1 kbps, VMAF 81.997SVT-AV1 (AV1) q=30: 3,316.5 kbps, VMAF 93.217VP9 (libvpx) q=54: 610.1 kbps, VMAF 69.482VP9 (libvpx) q=46: 1,099 kbps, VMAF 81VP9 (libvpx) q=38: 2,086.6 kbps, VMAF 89.579VP9 (libvpx) q=30: 4,198.7 kbps, VMAF 94.894AV1 (libaom) q=58: 256.4 kbps, VMAF 60.358AV1 (libaom) q=50: 496.8 kbps, VMAF 72.145AV1 (libaom) q=40: 1,023.1 kbps, VMAF 83.64AV1 (libaom) q=30: 2,179.8 kbps, VMAF 91.828
x264 (H.264)x265 (HEVC)SVT-AV1 (AV1)VP9 (libvpx)AV1 (libaom)
rush_hour — evening rush-hour traffic — size vs. VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
AV1 (libaom)302,179.8 kbps91.8390.2241.534.28188.0
AV1 (libaom)401,023.1 kbps83.6481.1240.044.79152.0
AV1 (libaom)50496.8 kbps72.1468.7238.247.41108.2
AV1 (libaom)58256.4 kbps60.3656.6636.337.0796.5
SVT-AV1 (AV1)303,316.5 kbps93.2290.5041.33115.7413.4
SVT-AV1 (AV1)401,347.1 kbps82.0076.2539.22153.6610.5
SVT-AV1 (AV1)50591.7 kbps70.0464.3637.45152.1610.6
SVT-AV1 (AV1)58304.5 kbps59.5754.1435.84164.89.6
VP9 (libvpx)304,198.7 kbps94.8992.8041.608.6887.3
VP9 (libvpx)382,086.6 kbps89.5886.5740.438.6569.6
VP9 (libvpx)461,099 kbps81.0077.0338.9510.8153.2
VP9 (libvpx)54610.1 kbps69.4865.0937.1118.5838.7
x264 (H.264)225,065.1 kbps93.8291.9241.478.9264.3
x264 (H.264)282,005 kbps83.7080.8739.5519.538.9
x264 (H.264)34951.5 kbps66.9263.2936.9530.2327.1
x264 (H.264)40467.6 kbps45.4941.0833.7841.0821.1
x265 (HEVC)242,882.8 kbps91.0289.1641.2818.3253.7
x265 (HEVC)301,250.2 kbps81.6379.2439.4621.8844.5
x265 (HEVC)36549.1 kbps66.8263.8437.0615.7341.7
x265 (HEVC)42242.6 kbps47.8444.7234.2331.1730.9
rush_hour — evening rush-hour traffic — all measurements

How to read it, and what we saw

1. Time first: the five settings are not in the same speed class

Here we look only at the range of the 16 raw measurements (4 clips × 4 quality values), with no interpolation. utime_s is CPU time summed over all threads. rtime_s (wall-clock) fluctuates with whatever else is running because of IDLE priority, so we use utime for comparisons.

Encoderutime_s range (s)fps_rt range
x264 slow20.000 ~ 187.4844.76 ~ 41.08
x265 fast26.344 ~ 127.0007.80 ~ 37.26
SVT-AV1 109.641 ~ 21.35938.02 ~ 164.80
VP9 538.672 ~ 196.3914.25 ~ 18.58
libaom 896.531 ~ 438.9381.91 ~ 7.98

Each range is the min to max over 16 data points (4 clips × 4 quality values). Lower CRF (higher quality) and more complex clips such as riverbed take longer.

An example of rtime fluctuating is SVT-AV1 on riverbed. The rtime at CRF 30, 40, 50 and 58 was 2.952, 6.576, 2.244 and 2.064 seconds, so only CRF 40 jumps, while utime decreases smoothly: 19.219, 21.359, 17.156 and 15.203 seconds. That is why this article uses utime for speed comparisons. Even so, it is a single measurement, so we don't read anything into differences of a few percent.

2. Size and CPU time at VMAF 90

We wanted to use VMAF 93 or 95 as the target, but on rush_hour the highest mean VMAF we measured was 94.894 for VP9 and 93.819 for x264, versus 91.021 for x265 and 91.828 for libaom, so 90 was the only common target available for every combination. For each encoder we picked the two adjacent measurements that bracket VMAF 90 and interpolated the size (kbps) at 90, linearly in VMAF with size on a log scale. CPU time (utime) was interpolated linearly in VMAF between the same two points. All of these are estimates, not measurements. The two right-hand columns are ratios against the x264 slow value for the same clip.

Easy clips like the sky clip saturate above VMAF 99 at low CRF. Saturated points distort the shape of the curve, so we preferred points near 90, but for blue_sky x264 (CRF 28, 99.507) and riverbed libaom (CRF 30, 99.897) the upper point is near saturation and was the only adjacent point available, so we used it anyway. Linear interpolation in that range may overestimate the size (this applies to libaom on riverbed, and in that case it works against libaom).

blue_sky

EncoderSize at VMAF 90 (kbps)Size vs. x264CPU time (s)Time vs. x264
x264 slow11791.0026.41.00
x265 fast9670.8231.71.20
SVT-AV1 109400.8010.30.39
VP9 59200.7850.01.90
libaom 85950.50111.84.24

pedestrian_area

EncoderSize at VMAF 90 (kbps)Size vs. x264CPU time (s)Time vs. x264
x264 slow26331.0042.01.00
x265 fast20150.7748.91.16
SVT-AV1 1018510.7010.10.24
VP9 517570.6759.91.43
libaom 810960.42142.83.40

riverbed

EncoderSize at VMAF 90 (kbps)Size vs. x264CPU time (s)Time vs. x264
x264 slow116071.00142.01.00
x265 fast119471.03121.50.86
SVT-AV1 1085970.7420.70.15
VP9 591970.79135.30.95
libaom 875100.65379.22.67

The x264 interpolation interval runs from CRF 28 (VMAF 91.116) to CRF 34 (62.447), a gap of 28.669 points, so the values for this clip are especially rough. 90 is close to the upper point, so the effect is small, but there may be some error.

rush_hour

EncoderSize at VMAF 90 (kbps)Size vs. x264CPU time (s)Time vs. x264
x264 slow35701.0054.71.00
x265 fast26330.7452.70.96
SVT-AV1 1025610.7212.60.23
VP9 522050.6271.01.30
libaom 818410.52179.93.29

3. Efficiency map: time vs. size

Averaging the four clips into one chart gives the figure below. The x-axis is the mean CPU time at the VMAF 90 point (seconds), and the y-axis is the simple mean of the size ratios against x264. The closer to the lower left, the faster and smaller. The mean time is pulled strongly toward riverbed, which takes the longest, so treat it as a rough position only.

1.0 0.8 0.6 0.4 10 30 100 300 Mean CPU time over 4 clips (s, log scale) → slower to the right Size vs. x264 (↓ smaller is better) x264 slow x265 fast SVT-AV1 10 VP9 5 libaom 8
Efficiency map — at VMAF 90, mean of four clips (lower left = faster and smaller)
EncoderMean CPU time (s)Size ratio vs. x264 (mean)Per-clip size ratio range
x264 slow66.31.001.00
x265 fast63.70.840.74 ~ 1.03
SVT-AV1 1013.40.740.70 ~ 0.80
VP9 579.10.710.62 ~ 0.79
libaom 8203.40.520.42 ~ 0.65

4. What the data shows

  • libaom 8 was the smallest on all four clips. Its size was 0.62 to 0.84x that of VP9 5 (blue_sky 0.65, pedestrian_area 0.62, riverbed 0.82, rush_hour 0.83) at 2.2 to 2.8x the CPU time of VP9. Compared with SVT-AV1 10, its size was 0.59 to 0.87x at 11 to 18x the CPU time.
  • In this test, SVT-AV1 10 was both smaller and faster than x264 slow on every clip. Size was 0.70 to 0.80x and CPU time was 0.15 to 0.39x (x264 took 2.6 to 6.9x as long). It was also smaller than x265 fast on all four clips, but on blue_sky (0.97) and rush_hour (0.97) the difference is around 3%, so it is safer to read those as effectively the same. pedestrian_area was 0.92 and riverbed was 0.72.
  • x264 slow, x265 fast and VP9 5 were fairly close in time (0.86 to 1.90x of each other), and within that group VP9 5 was the smallest on all four clips. It was 0.62 to 0.79x the size of x264, and x265 fast was 0.74 to 0.82x (only riverbed was 1.03x, larger than x264).
  • The ranking changed on riverbed. On this clip x264 slow (11607 kbps) was smaller than x265 fast (11947 kbps), and SVT-AV1 10 (8597) was smaller than VP9 5 (9197). On the other three clips VP9 5 was smaller than SVT-AV1 10, though the gap on blue_sky (920 vs. 940 kbps) was only about 2%.
  • Choosing between VP9 5 and SVT-AV1 10 comes down to time. VP9 5 was smaller on three clips but took 4.8 to 6.5x the CPU time of SVT-AV1 10. On riverbed, SVT-AV1 10 was both smaller and about 6.5 times faster.
  • "Which codec is smallest" varies by clip. The size ratio of libaom 8 against x264 ranged from 0.42 on pedestrian_area to 0.65 on riverbed. On riverbed, with its complex texture, the differences between codecs shrank.

Limitations

  • Only four 10-second clips. They can't be considered representative of all kinds of video, and the ratios above are values for these four clips, not recommended values per genre.
  • We used only one preset per codec. This article compares these particular settings, not each codec at its best. The same codec gives different size and time at other presets (for x265, see the preset test). Preset names (fast, slow, 10, 5, 8) do not mean the same speed across codecs.
  • It isn't an equal-time comparison. CPU time ratios span 0.15 to 4.24x, so this looks at time and size together rather than matching time exactly.
  • The VMAF 90 point is an interpolated estimate. In some intervals the gap between measured points is 5 to 29 VMAF points (28.669 for x264 on riverbed), and we also used some points near saturation. We did not interpret differences of around 3%.
  • CPU time (utime) is summed over threads. Codecs parallelize with different efficiency, so the ratio doesn't match the actual waiting time (rtime). We fixed threads per job at 4, but that doesn't mean every codec uses those 4 threads equally well.
  • 8-bit yuv420p, one PC, one measurement. We did not run repeats to estimate error, and IDLE priority makes speed figures reference-only. 10-bit, HDR and 4K are not covered.
  • Only one VMAF model was used. The same VMAF does not guarantee the same perceived quality. Playback compatibility and decoding load were not measured either.

Practical recommendations

  • If you use slow x264 and your playback environment handles AV1 without trouble, try a fast SVT-AV1 preset first (10 in this article). In this data it gave 0.70 to 0.80x the size at 0.15 to 0.39x the CPU time. To check whether your target devices play AV1, use the codec support checker.
  • For one-off videos where encoding time isn't a concern (such as a distribution master), a fast libaom preset (8) is also a candidate. It was the smallest in this data, but it took 2.7 to 4.2x the time of x264 slow.
  • If you need H.264 or HEVC compatibility, x265 fast was generally smaller than x264 slow (0.74 to 0.82x, only riverbed 1.03x). Time was similar or slightly longer (0.86 to 1.20x).
  • Don't take someone else's numbers at face value; measure VMAF 90 size and utime on one or two of your own videos the same way. The ranking changed depending on the clip. If the worst frames matter more than the mean VMAF, also see the 5th-percentile and minimum VMAF test.
  • For the speed and size differences between the two AV1 implementations, see SVT-AV1 vs libaom; for VP9 vs. AV1, see VP9 vs AV1 (libaom).

The full raw data can be downloaded as a CSV at the bottom of the page. You can follow the interpolation using only the kbps and vmaf_mean values in the tables.

Raw data: iso-time-codec-showdown-v1.csv