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

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)

The short answer

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

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 original → mean (vmaf_mean), 5th percentile (vmaf_p5), minimum (vmaf_min)
Measured on2026-11-08

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

EncoderPresetSix CRF valuesCommand (key options)
x264medium20, 24, 28, 32, 36, 40-c:v libx264 -preset medium -crf Q -threads 4
x265medium22, 26, 30, 34, 38, 42-c:v libx265 -preset medium -crf Q -x265-params pools=4
SVT-AV1630, 36, 42, 48, 54, 60-c:v libsvtav1 -preset 6 -crf Q -svtav1-params lp=4

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

60708090100500k1M2M5M10MBitrate (bps, log scale)VMAFx264 (H.264) q=40: 656.5 kbps, VMAF 68.105x264 (H.264) q=36: 961.5 kbps, VMAF 83.576x264 (H.264) q=32: 1,507.1 kbps, VMAF 94.911x264 (H.264) q=28: 2,490.2 kbps, VMAF 99.51x264 (H.264) q=24: 4,535.6 kbps, VMAF 99.971x264 (H.264) q=20: 9,140.9 kbps, VMAF 99.979x265 (HEVC) q=42: 369.4 kbps, VMAF 67.54x265 (HEVC) q=38: 638.4 kbps, VMAF 81.807x265 (HEVC) q=34: 1,077.3 kbps, VMAF 92.235x265 (HEVC) q=30: 1,874.4 kbps, VMAF 98.083x265 (HEVC) q=26: 3,362 kbps, VMAF 99.903x265 (HEVC) q=22: 6,348.2 kbps, VMAF 99.977SVT-AV1 (AV1) q=60: 519.8 kbps, VMAF 90.179SVT-AV1 (AV1) q=54: 879.1 kbps, VMAF 96.857SVT-AV1 (AV1) q=48: 1,196.3 kbps, VMAF 99.126SVT-AV1 (AV1) q=42: 1,694.2 kbps, VMAF 99.927SVT-AV1 (AV1) q=36: 2,635.2 kbps, VMAF 99.972SVT-AV1 (AV1) q=30: 4,394.1 kbps, VMAF 99.978
x264 (H.264)x265 (HEVC)SVT-AV1 (AV1)
blue_sky — blue sky and tree branches — file size vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
SVT-AV1 (AV1)304,394.1 kbps99.98100.0040.7140.1459.1
SVT-AV1 (AV1)362,635.2 kbps99.97100.0039.4148.2448.5
SVT-AV1 (AV1)421,694.2 kbps99.9399.7538.1745.7551.2
SVT-AV1 (AV1)481,196.3 kbps99.1396.5337.0843.3654.6
SVT-AV1 (AV1)54879.1 kbps96.8692.6236.0741.0258.9
SVT-AV1 (AV1)60519.8 kbps90.1884.3834.3134.4269.2
x264 (H.264)209,140.9 kbps99.98100.0041.1020.8133.3
x264 (H.264)244,535.6 kbps99.97100.0039.3127.7825.5
x264 (H.264)282,490.2 kbps99.5197.4437.2534.6220.9
x264 (H.264)321,507.1 kbps94.9189.3334.9841.7618.3
x264 (H.264)36961.5 kbps83.5875.2632.5547.0615.8
x264 (H.264)40656.5 kbps68.1158.8030.0751.714.6
x265 (HEVC)226,348.2 kbps99.98100.0041.1416.262.2
x265 (HEVC)263,362 kbps99.9099.3639.4121.7246.0
x265 (HEVC)301,874.4 kbps98.0892.6137.4226.7237.0
x265 (HEVC)341,077.3 kbps92.2383.5135.2530.9731.4
x265 (HEVC)38638.4 kbps81.8172.8032.9535.2327.3
x265 (HEVC)42369.4 kbps67.5457.3630.5038.0124.4
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

405060708090100500k1M2M5MBitrate (bps, log scale)VMAFx264 (H.264) q=40: 706.5 kbps, VMAF 48.43x264 (H.264) q=36: 1,054.6 kbps, VMAF 65.045x264 (H.264) q=32: 1,595.6 kbps, VMAF 78.588x264 (H.264) q=28: 2,480 kbps, VMAF 88.665x264 (H.264) q=24: 4,063.8 kbps, VMAF 95.405x264 (H.264) q=20: 7,819.9 kbps, VMAF 98.753x265 (HEVC) q=42: 341.1 kbps, VMAF 45.205x265 (HEVC) q=38: 570.8 kbps, VMAF 62.096x265 (HEVC) q=34: 924.9 kbps, VMAF 76.503x265 (HEVC) q=30: 1,472.2 kbps, VMAF 87.05x265 (HEVC) q=26: 2,415.2 kbps, VMAF 93.891x265 (HEVC) q=22: 4,357.1 kbps, VMAF 97.842SVT-AV1 (AV1) q=60: 369.9 kbps, VMAF 69.454SVT-AV1 (AV1) q=54: 657.5 kbps, VMAF 81.174SVT-AV1 (AV1) q=48: 967.3 kbps, VMAF 87.434SVT-AV1 (AV1) q=42: 1,420.3 kbps, VMAF 92.307SVT-AV1 (AV1) q=36: 2,090.5 kbps, VMAF 96.008SVT-AV1 (AV1) q=30: 3,237.1 kbps, VMAF 98.314
x264 (H.264)x265 (HEVC)SVT-AV1 (AV1)
pedestrian_area — pedestrian street — file size vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
SVT-AV1 (AV1)303,237.1 kbps98.3195.6141.4638.8254.0
SVT-AV1 (AV1)362,090.5 kbps96.0193.3640.6736.7159.5
SVT-AV1 (AV1)421,420.3 kbps92.3189.3939.7737.358.9
SVT-AV1 (AV1)48967.3 kbps87.4382.8938.8035.6660.7
SVT-AV1 (AV1)54657.5 kbps81.1775.0337.6235.760.9
SVT-AV1 (AV1)60369.9 kbps69.4560.3935.6634.3163.5
x264 (H.264)207,819.9 kbps98.7595.9741.6517.3144.1
x264 (H.264)244,063.8 kbps95.4192.4040.3424.1433.9
x264 (H.264)282,480 kbps88.6785.9138.7231.0627.8
x264 (H.264)321,595.6 kbps78.5975.9636.9136.8823.8
x264 (H.264)361,054.6 kbps65.0562.3034.9542.2820.8
x264 (H.264)40706.5 kbps48.4345.6032.8545.8618.8
x265 (HEVC)224,357.1 kbps97.8495.0641.4811.7284.2
x265 (HEVC)262,415.2 kbps93.8991.0840.1514.269.7
x265 (HEVC)301,472.2 kbps87.0584.3638.5416.958.2
x265 (HEVC)34924.9 kbps76.5073.5136.6919.5450.0
x265 (HEVC)38570.8 kbps62.1058.7634.6722.3843.6
x265 (HEVC)42341.1 kbps45.2040.8132.4825.5237.3
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (fine ripples)

304050607080901002M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) q=40: 2,576.3 kbps, VMAF 34.707x264 (H.264) q=36: 4,446.8 kbps, VMAF 52.612x264 (H.264) q=32: 7,254.3 kbps, VMAF 72.382x264 (H.264) q=28: 11,622.6 kbps, VMAF 88.974x264 (H.264) q=24: 18,482 kbps, VMAF 99.738x264 (H.264) q=20: 29,769.2 kbps, VMAF 99.957x265 (HEVC) q=42: 1,262.9 kbps, VMAF 31.42x265 (HEVC) q=38: 2,512.6 kbps, VMAF 46.324x265 (HEVC) q=34: 4,533.4 kbps, VMAF 63.208x265 (HEVC) q=30: 7,534.2 kbps, VMAF 79.562x265 (HEVC) q=26: 12,067 kbps, VMAF 92.254x265 (HEVC) q=22: 19,060.6 kbps, VMAF 99.592SVT-AV1 (AV1) q=60: 1,412.6 kbps, VMAF 40.435SVT-AV1 (AV1) q=54: 2,942.3 kbps, VMAF 61.507SVT-AV1 (AV1) q=48: 4,730.9 kbps, VMAF 76.586SVT-AV1 (AV1) q=42: 7,292.8 kbps, VMAF 89.762SVT-AV1 (AV1) q=36: 11,186.6 kbps, VMAF 97.69SVT-AV1 (AV1) q=30: 16,769.3 kbps, VMAF 99.957
x264 (H.264)x265 (HEVC)SVT-AV1 (AV1)
riverbed — riverbed (fine ripples) — file size vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
SVT-AV1 (AV1)3016,769.3 kbps99.96100.0038.9436.9856.1
SVT-AV1 (AV1)3611,186.6 kbps97.6993.9337.4036.2158.7
SVT-AV1 (AV1)427,292.8 kbps89.7683.4135.7627.8981.2
SVT-AV1 (AV1)484,730.9 kbps76.5967.7834.0126.0687.0
SVT-AV1 (AV1)542,942.3 kbps61.5152.0332.1825.0591.3
SVT-AV1 (AV1)601,412.6 kbps40.4431.7929.7525.7490.9
x264 (H.264)2029,769.2 kbps99.96100.0039.7711.3290.4
x264 (H.264)2418,482 kbps99.7498.7437.6012.6981.1
x264 (H.264)2811,622.6 kbps88.9786.9935.3814.4971.6
x264 (H.264)327,254.3 kbps72.3869.8633.1316.9860.8
x264 (H.264)364,446.8 kbps52.6149.6130.7920.3248.5
x264 (H.264)402,576.3 kbps34.7131.5928.2921.235.7
x265 (HEVC)2219,060.6 kbps99.5998.1138.693.58274.0
x265 (HEVC)2612,067 kbps92.2588.3136.644.23231.3
x265 (HEVC)307,534.2 kbps79.5674.6534.545.13191.3
x265 (HEVC)344,533.4 kbps63.2157.7932.366.35154.9
x265 (HEVC)382,512.6 kbps46.3241.0830.218.01122.2
x265 (HEVC)421,262.9 kbps31.4226.5428.1411.1288.8
riverbed — riverbed (fine ripples) — all measurements

rush_hour — evening rush-hour traffic

405060708090100200k500k1M2M5MBitrate (bps, log scale)VMAFx264 (H.264) q=40: 534.7 kbps, VMAF 49.19x264 (H.264) q=36: 875.7 kbps, VMAF 63.431x264 (H.264) q=32: 1,397.4 kbps, VMAF 75.593x264 (H.264) q=28: 2,275.6 kbps, VMAF 84.821x264 (H.264) q=24: 3,883 kbps, VMAF 91.335x264 (H.264) q=20: 8,033 kbps, VMAF 95.617x265 (HEVC) q=42: 202 kbps, VMAF 43.394x265 (HEVC) q=38: 370.5 kbps, VMAF 58.295x265 (HEVC) q=34: 684.4 kbps, VMAF 71.433x265 (HEVC) q=30: 1,233.5 kbps, VMAF 81.816x265 (HEVC) q=26: 2,198.4 kbps, VMAF 88.967x265 (HEVC) q=22: 4,009.4 kbps, VMAF 93.759SVT-AV1 (AV1) q=60: 272.3 kbps, VMAF 62.434SVT-AV1 (AV1) q=54: 506.4 kbps, VMAF 72.376SVT-AV1 (AV1) q=48: 776.3 kbps, VMAF 78.661SVT-AV1 (AV1) q=42: 1,199.4 kbps, VMAF 84.477SVT-AV1 (AV1) q=36: 1,883.2 kbps, VMAF 89.338SVT-AV1 (AV1) q=30: 3,019 kbps, VMAF 93.286
x264 (H.264)x265 (HEVC)SVT-AV1 (AV1)
rush_hour — evening rush-hour traffic — file size vs VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
SVT-AV1 (AV1)303,019 kbps93.2990.9041.8536.1659.0
SVT-AV1 (AV1)361,883.2 kbps89.3486.2941.0736.6658.8
SVT-AV1 (AV1)421,199.4 kbps84.4880.3040.2036.4960.0
SVT-AV1 (AV1)48776.3 kbps78.6673.5039.2635.6260.5
SVT-AV1 (AV1)54506.4 kbps72.3866.5338.2435.2461.7
SVT-AV1 (AV1)60272.3 kbps62.4356.4236.6135.3162.1
x264 (H.264)208,033 kbps95.6294.0942.0416.6749.7
x264 (H.264)243,883 kbps91.3389.4541.0723.9635.9
x264 (H.264)282,275.6 kbps84.8282.4039.8431.8928.1
x264 (H.264)321,397.4 kbps75.5972.8638.3039.3422.8
x264 (H.264)36875.7 kbps63.4359.9436.4544.2518.9
x264 (H.264)40534.7 kbps49.1945.0334.2945.9616.7
x265 (HEVC)224,009.4 kbps93.7692.0641.7710.3994.6
x265 (HEVC)262,198.4 kbps88.9786.8240.7313.3774.0
x265 (HEVC)301,233.5 kbps81.8278.9539.3517.356.5
x265 (HEVC)34684.4 kbps71.4367.9137.6822.2143.9
x265 (HEVC)38370.5 kbps58.3054.3435.6926.9234.5
x265 (HEVC)42202 kbps43.3939.1333.4730.1328.5
rush_hour — evening rush-hour traffic — all measurements

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.

Clipx264Compared withSize ratio
pedestrian_areaCRF 32: VMAF 78.6, 1,994,481 BSVT-AV1 CRF 54: VMAF 81.2, 821,831 B41% (VMAF is actually +2.6)
blue_skyCRF 36: VMAF 83.6, 1,201,823 BSVT-AV1 CRF 60: VMAF 90.2, 649,739 B54% (VMAF +6.6)
rush_hourCRF 28: VMAF 84.8, 2,844,482 BSVT-AV1 CRF 42: VMAF 84.5, 1,499,289 B53% (VMAF -0.3)
riverbedCRF 28: VMAF 89.0, 14,528,250 BSVT-AV1 CRF 42: VMAF 89.8, 9,116,036 B63% (VMAF +0.8)

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