x264 vs x265 vs SVT-AV1: CRF, File Size and VMAF Compared
A CRF sweep of x264, x265 and SVT-AV1: four 10-second 1080p25 clips, six CRF values per encoder, with file size and VMAF measured for each. At comparable VMAF, SVT-AV1 produced files about 41–63% the size of x264's, while encoding speed varied widely from clip to clip.
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 the same VMAF was generally x264 > x265 > SVT-AV1. The size of the gap varied by clip, and on the most complex clip (riverbed) x265 was much slower.
Why we ran this
If you're choosing between x264, x265 and SVT-AV1, you've probably heard that "AV1 files are smaller than H.264," but how much smaller depends on the video. CRF also means different things in different encoders, so x264 at CRF 28 and SVT-AV1 at CRF 28 are not comparable. Instead, we encoded each codec at six CRF values, plotted a file-size-versus-quality curve for each, and compared file sizes at the same quality (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 above for Q, one encode per value. The CRF range differs per encoder so that the three curves overlap in a similar quality range.
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).
We started with a narrower CRF range, but blue_sky was already saturated at VMAF 99.97 with x264 at CRF 24. We widened the range so the curves would show up, which means some CRF values here are higher than you would normally use.
Results by clip
In each chart, the horizontal axis is file size (bitrate) and the vertical axis is VMAF. At the same height, the encoder further to the left reached that quality at a smaller file size. The tables list the file size and speed measurements 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) |
|---|---|---|---|---|---|---|---|
| SVT-AV1 (AV1) | 30 | 4,394.1 kbps | 99.98 | 100.00 | 40.71 | 40.14 | 59.1 |
| SVT-AV1 (AV1) | 36 | 2,635.2 kbps | 99.97 | 100.00 | 39.41 | 48.24 | 48.5 |
| SVT-AV1 (AV1) | 42 | 1,694.2 kbps | 99.93 | 99.75 | 38.17 | 45.75 | 51.2 |
| SVT-AV1 (AV1) | 48 | 1,196.3 kbps | 99.13 | 96.53 | 37.08 | 43.36 | 54.6 |
| SVT-AV1 (AV1) | 54 | 879.1 kbps | 96.86 | 92.62 | 36.07 | 41.02 | 58.9 |
| SVT-AV1 (AV1) | 60 | 519.8 kbps | 90.18 | 84.38 | 34.31 | 34.42 | 69.2 |
| x264 (H.264) | 20 | 9,140.9 kbps | 99.98 | 100.00 | 41.10 | 20.81 | 33.3 |
| x264 (H.264) | 24 | 4,535.6 kbps | 99.97 | 100.00 | 39.31 | 27.78 | 25.5 |
| x264 (H.264) | 28 | 2,490.2 kbps | 99.51 | 97.44 | 37.25 | 34.62 | 20.9 |
| x264 (H.264) | 32 | 1,507.1 kbps | 94.91 | 89.33 | 34.98 | 41.76 | 18.3 |
| x264 (H.264) | 36 | 961.5 kbps | 83.58 | 75.26 | 32.55 | 47.06 | 15.8 |
| x264 (H.264) | 40 | 656.5 kbps | 68.11 | 58.80 | 30.07 | 51.7 | 14.6 |
| x265 (HEVC) | 22 | 6,348.2 kbps | 99.98 | 100.00 | 41.14 | 16.2 | 62.2 |
| x265 (HEVC) | 26 | 3,362 kbps | 99.90 | 99.36 | 39.41 | 21.72 | 46.0 |
| x265 (HEVC) | 30 | 1,874.4 kbps | 98.08 | 92.61 | 37.42 | 26.72 | 37.0 |
| x265 (HEVC) | 34 | 1,077.3 kbps | 92.23 | 83.51 | 35.25 | 30.97 | 31.4 |
| x265 (HEVC) | 38 | 638.4 kbps | 81.81 | 72.80 | 32.95 | 35.23 | 27.3 |
| x265 (HEVC) | 42 | 369.4 kbps | 67.54 | 57.36 | 30.50 | 38.01 | 24.4 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| SVT-AV1 (AV1) | 30 | 3,237.1 kbps | 98.31 | 95.61 | 41.46 | 38.82 | 54.0 |
| SVT-AV1 (AV1) | 36 | 2,090.5 kbps | 96.01 | 93.36 | 40.67 | 36.71 | 59.5 |
| SVT-AV1 (AV1) | 42 | 1,420.3 kbps | 92.31 | 89.39 | 39.77 | 37.3 | 58.9 |
| SVT-AV1 (AV1) | 48 | 967.3 kbps | 87.43 | 82.89 | 38.80 | 35.66 | 60.7 |
| SVT-AV1 (AV1) | 54 | 657.5 kbps | 81.17 | 75.03 | 37.62 | 35.7 | 60.9 |
| SVT-AV1 (AV1) | 60 | 369.9 kbps | 69.45 | 60.39 | 35.66 | 34.31 | 63.5 |
| x264 (H.264) | 20 | 7,819.9 kbps | 98.75 | 95.97 | 41.65 | 17.31 | 44.1 |
| x264 (H.264) | 24 | 4,063.8 kbps | 95.41 | 92.40 | 40.34 | 24.14 | 33.9 |
| x264 (H.264) | 28 | 2,480 kbps | 88.67 | 85.91 | 38.72 | 31.06 | 27.8 |
| x264 (H.264) | 32 | 1,595.6 kbps | 78.59 | 75.96 | 36.91 | 36.88 | 23.8 |
| x264 (H.264) | 36 | 1,054.6 kbps | 65.05 | 62.30 | 34.95 | 42.28 | 20.8 |
| x264 (H.264) | 40 | 706.5 kbps | 48.43 | 45.60 | 32.85 | 45.86 | 18.8 |
| x265 (HEVC) | 22 | 4,357.1 kbps | 97.84 | 95.06 | 41.48 | 11.72 | 84.2 |
| x265 (HEVC) | 26 | 2,415.2 kbps | 93.89 | 91.08 | 40.15 | 14.2 | 69.7 |
| x265 (HEVC) | 30 | 1,472.2 kbps | 87.05 | 84.36 | 38.54 | 16.9 | 58.2 |
| x265 (HEVC) | 34 | 924.9 kbps | 76.50 | 73.51 | 36.69 | 19.54 | 50.0 |
| x265 (HEVC) | 38 | 570.8 kbps | 62.10 | 58.76 | 34.67 | 22.38 | 43.6 |
| x265 (HEVC) | 42 | 341.1 kbps | 45.20 | 40.81 | 32.48 | 25.52 | 37.3 |
riverbed — riverbed (fine ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| SVT-AV1 (AV1) | 30 | 16,769.3 kbps | 99.96 | 100.00 | 38.94 | 36.98 | 56.1 |
| SVT-AV1 (AV1) | 36 | 11,186.6 kbps | 97.69 | 93.93 | 37.40 | 36.21 | 58.7 |
| SVT-AV1 (AV1) | 42 | 7,292.8 kbps | 89.76 | 83.41 | 35.76 | 27.89 | 81.2 |
| SVT-AV1 (AV1) | 48 | 4,730.9 kbps | 76.59 | 67.78 | 34.01 | 26.06 | 87.0 |
| SVT-AV1 (AV1) | 54 | 2,942.3 kbps | 61.51 | 52.03 | 32.18 | 25.05 | 91.3 |
| SVT-AV1 (AV1) | 60 | 1,412.6 kbps | 40.44 | 31.79 | 29.75 | 25.74 | 90.9 |
| x264 (H.264) | 20 | 29,769.2 kbps | 99.96 | 100.00 | 39.77 | 11.32 | 90.4 |
| x264 (H.264) | 24 | 18,482 kbps | 99.74 | 98.74 | 37.60 | 12.69 | 81.1 |
| x264 (H.264) | 28 | 11,622.6 kbps | 88.97 | 86.99 | 35.38 | 14.49 | 71.6 |
| x264 (H.264) | 32 | 7,254.3 kbps | 72.38 | 69.86 | 33.13 | 16.98 | 60.8 |
| x264 (H.264) | 36 | 4,446.8 kbps | 52.61 | 49.61 | 30.79 | 20.32 | 48.5 |
| x264 (H.264) | 40 | 2,576.3 kbps | 34.71 | 31.59 | 28.29 | 21.2 | 35.7 |
| x265 (HEVC) | 22 | 19,060.6 kbps | 99.59 | 98.11 | 38.69 | 3.58 | 274.0 |
| x265 (HEVC) | 26 | 12,067 kbps | 92.25 | 88.31 | 36.64 | 4.23 | 231.3 |
| x265 (HEVC) | 30 | 7,534.2 kbps | 79.56 | 74.65 | 34.54 | 5.13 | 191.3 |
| x265 (HEVC) | 34 | 4,533.4 kbps | 63.21 | 57.79 | 32.36 | 6.35 | 154.9 |
| x265 (HEVC) | 38 | 2,512.6 kbps | 46.32 | 41.08 | 30.21 | 8.01 | 122.2 |
| x265 (HEVC) | 42 | 1,262.9 kbps | 31.42 | 26.54 | 28.14 | 11.12 | 88.8 |
rush_hour — evening rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| SVT-AV1 (AV1) | 30 | 3,019 kbps | 93.29 | 90.90 | 41.85 | 36.16 | 59.0 |
| SVT-AV1 (AV1) | 36 | 1,883.2 kbps | 89.34 | 86.29 | 41.07 | 36.66 | 58.8 |
| SVT-AV1 (AV1) | 42 | 1,199.4 kbps | 84.48 | 80.30 | 40.20 | 36.49 | 60.0 |
| SVT-AV1 (AV1) | 48 | 776.3 kbps | 78.66 | 73.50 | 39.26 | 35.62 | 60.5 |
| SVT-AV1 (AV1) | 54 | 506.4 kbps | 72.38 | 66.53 | 38.24 | 35.24 | 61.7 |
| SVT-AV1 (AV1) | 60 | 272.3 kbps | 62.43 | 56.42 | 36.61 | 35.31 | 62.1 |
| x264 (H.264) | 20 | 8,033 kbps | 95.62 | 94.09 | 42.04 | 16.67 | 49.7 |
| x264 (H.264) | 24 | 3,883 kbps | 91.33 | 89.45 | 41.07 | 23.96 | 35.9 |
| x264 (H.264) | 28 | 2,275.6 kbps | 84.82 | 82.40 | 39.84 | 31.89 | 28.1 |
| x264 (H.264) | 32 | 1,397.4 kbps | 75.59 | 72.86 | 38.30 | 39.34 | 22.8 |
| x264 (H.264) | 36 | 875.7 kbps | 63.43 | 59.94 | 36.45 | 44.25 | 18.9 |
| x264 (H.264) | 40 | 534.7 kbps | 49.19 | 45.03 | 34.29 | 45.96 | 16.7 |
| x265 (HEVC) | 22 | 4,009.4 kbps | 93.76 | 92.06 | 41.77 | 10.39 | 94.6 |
| x265 (HEVC) | 26 | 2,198.4 kbps | 88.97 | 86.82 | 40.73 | 13.37 | 74.0 |
| x265 (HEVC) | 30 | 1,233.5 kbps | 81.82 | 78.95 | 39.35 | 17.3 | 56.5 |
| x265 (HEVC) | 34 | 684.4 kbps | 71.43 | 67.91 | 37.68 | 22.21 | 43.9 |
| x265 (HEVC) | 38 | 370.5 kbps | 58.30 | 54.34 | 35.69 | 26.92 | 34.5 |
| x265 (HEVC) | 42 | 202 kbps | 43.39 | 39.13 | 33.47 | 30.13 | 28.5 |
How to read it, and what we saw
Every comparison below uses numbers taken directly from the tables. The three encoders' CRF values never land on exactly the same VMAF, so we picked the closest pair of points and also list the VMAF difference.
Size ratio = compared file size ÷ x264 file size. No point had exactly the same VMAF, so we chose the closest pair.
- On all four clips, SVT-AV1 used 41–63% of the x264 file size and delivered similar or higher VMAF. The savings were largest on pedestrian_area and smallest on riverbed, which has a lot of fine detail in its ripples.
- x265 landed between x264 and SVT-AV1. For example, on rush_hour, x265 CRF 30 (VMAF 81.8, 1,541,832 B) used 54% of the file size of x264 CRF 28 (VMAF 84.8, 2,844,482 B), but its VMAF was 3.0 lower. In the same range, SVT-AV1 CRF 42 reached VMAF 84.5 at a similar size (1,499,289 B).
- On riverbed, x265 CRF 26 (VMAF 92.3, 15,083,760 B) was about 4% larger than x264 CRF 28 (VMAF 89.0, 14,528,250 B) but scored 3.3 higher in VMAF. On this clip, x265's advantage showed up as better quality at the same size rather than as a smaller file.
- Differences between clips are larger than differences between encoders. The bitrate of x264 at CRF 28 ranged from 2,490 kbps on blue_sky to 11,623 kbps on riverbed, a spread of about 4.7x. The same CRF can produce completely different file sizes depending on the content.
- In the saturated range, only the file size grows. For x264 on blue_sky, CRF 20 (11,426,116 B) and CRF 24 (5,669,461 B) have virtually the same VMAF, 99.979 and 99.971, yet the file sizes differ by about 2.0x.
- A high mean doesn't mean there are no weak frames. x264 CRF 24 on riverbed has a mean of 99.74 but a minimum frame score of 83.09. Some frames seem to drop sharply during scene changes or heavy motion, but this data alone can't confirm the cause.
Treat the speed numbers as rough
We ran the processes at IDLE priority, so the elapsed time (rtime) fluctuates with whatever else the PC is doing. CPU time (utime) is more stable, so the tables show both. Still, this is one PC and one run, so use these as a rough sense of scale rather than a ranking.
- On blue_sky, CPU time (utime) was 14.6–33.3 s for x264, 24.4–62.2 s for x265, and 48.5–69.2 s for SVT-AV1. SVT-AV1 used the most CPU time on this clip, but it parallelized well across 4 threads, so its elapsed time (rtime) of 5.2–7.3 s was comparable to x264's 4.8–12.0 s.
- On riverbed, x265 at CRF 22 took 274.0 s of utime and 69.8 s elapsed (3.6 fps), clearly slower than x264 at CRF 20 on the same clip (90.4 s utime, 22.1 s elapsed). SVT-AV1 at CRF 30 took 56.1 s of utime and 6.8 s elapsed (37.0 fps).
- On some clips, SVT-AV1's CPU time grew as CRF went up (smaller files) from CRF 36 onward: on blue_sky, utime 48.5 s → 69.2 s. x264 and x265 went the other way and got faster as CRF increased.
Limitations
- Only four 10-second clips. They differ in character (scenery, city, ripples), but animation, screen recordings and dark footage are missing. We can't say these ratios apply to every video.
- Only 8-bit yuv420p was tested. We did not cover 10-bit or HDR.
- One preset per encoder. x264 and x265 medium and SVT-AV1 preset 6 are not equivalent speed tiers. Changing the preset changes both file size and speed.
- Only the default VMAF model was used. VMAF can score differently from human eyes depending on the encoder's characteristics, and the same score can look different in texture. PSNR (psnr_y) is in the CSV, but we don't interpret it in this article.
- One PC, one run. We did not repeat the runs to estimate error, and IDLE priority makes elapsed time fluctuate. Speed is for reference only.
- File sizes are for the video stream only. Audio, playback compatibility and hardware decoding support are not reflected.
Practical recommendations
- If file size matters most and your playback targets support AV1, SVT-AV1 is worth trying first. It saved the most in this test. To check AV1 playback support on a given device, use the codec support checker.
- If compatibility comes first, use x264; if you need something in between, x265 is an option. Keep in mind, though, that x265 medium encoding time can grow a lot on complex footage like riverbed.
- Before settling on a CRF, run two or three values on your own footage. As the curves here show, the same CRF can produce file sizes several times apart depending on the video, and in the saturated range, lowering CRF only adds file size.
- Compare encoders by file size at the same quality (VMAF), not by CRF.
The full raw data is available as a CSV download at the bottom of the page. To test other clips or presets, repeat the same method with your own footage.
Raw data: crf-sweep-v1.csv