Same CRF, Different Results: How Video Content Changes File Size and VMAF (x264, x265, SVT-AV1)
We encoded four 10-second 1080p25 clips with x264, x265 and SVT-AV1 at eight CRF values each, then measured how much file size and VMAF differ at the same CRF. The x264 CRF needed to reach VMAF 95 ranged from about 20.5 to 31.5 depending on the clip.
The test PC, FFmpeg and VMAF settings shared by every lab article are collected on the methodology page. Methodology (common to all tests)
There is no single right CRF; the answer depends on the video. In this test, the x264 CRF that reaches VMAF 95 was about 20.5 for rush_hour and about 31.5 for blue_sky, a gap of nearly 11. The file size needed for VMAF 90 also differed by about 10x between blue_sky and riverbed with x264.
Why we ran this
You often hear things like "just use CRF 23" or "CRF 18 is visually indistinguishable." But CRF is not a quality score. It is a target-quality setting you give the encoder. Feed in the same number with different content and you can get different quality and different file sizes. We wanted to measure how big that difference is, and where the CRF that reaches "good enough" quality falls for each video.
We compared the encoders themselves in CRF, file size and VMAF compared. This article focuses less on which encoder wins and more on how the result changes when the content changes. If CRF is new to you, start with the rate control section of the curriculum.
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 human judgment. In this article, "mean" is the average of the 250 per-frame scores.
Encoder settings
Input is the original y4m, output is mkv, no audio. We substituted each CRF value above for Q, one encode per value. We used SVT-AV1 preset 8 to keep encoding time down (the earlier article used preset 6). Easy clips saturate at VMAF 99 or higher at low CRF, so we extended the range up to high CRF values.
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).
Results by clip
In each curve, the horizontal axis is file size (bitrate) and the vertical axis is VMAF. At the same height, the encoder further to the left produced the same quality at a smaller size. The tables list 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) | 24 | 8,984.6 kbps | 99.98 | 100.00 | 41.99 | 74.21 | 25.2 |
| SVT-AV1 (AV1) | 30 | 5,074.4 kbps | 99.98 | 100.00 | 40.73 | 73.83 | 25.4 |
| SVT-AV1 (AV1) | 36 | 3,156.8 kbps | 99.97 | 100.00 | 39.47 | 79.26 | 23.9 |
| SVT-AV1 (AV1) | 42 | 2,142.3 kbps | 99.92 | 99.75 | 38.40 | 76.69 | 24.2 |
| SVT-AV1 (AV1) | 48 | 1,568 kbps | 99.40 | 96.69 | 37.44 | 75.01 | 25.6 |
| SVT-AV1 (AV1) | 54 | 1,168.5 kbps | 97.53 | 92.95 | 36.46 | 74.25 | 25.7 |
| SVT-AV1 (AV1) | 58 | 870.1 kbps | 94.11 | 88.64 | 35.38 | 70.38 | 27.3 |
| SVT-AV1 (AV1) | 62 | 488.1 kbps | 85.28 | 78.65 | 33.23 | 69.44 | 27.7 |
| x264 (H.264) | 18 | 13,774.3 kbps | 99.98 | 100.00 | 41.95 | 17.44 | 42.3 |
| x264 (H.264) | 22 | 6,348.8 kbps | 99.98 | 100.00 | 40.24 | 23.61 | 29.8 |
| x264 (H.264) | 26 | 3,322 kbps | 99.94 | 100.00 | 38.30 | 30.69 | 23.2 |
| x264 (H.264) | 30 | 1,916.7 kbps | 98.22 | 93.78 | 36.15 | 37.8 | 19.6 |
| x264 (H.264) | 34 | 1,198.8 kbps | 89.85 | 83.34 | 33.78 | 44.39 | 17.2 |
| x264 (H.264) | 38 | 788.4 kbps | 76.26 | 68.30 | 31.30 | 49 | 15.6 |
| x264 (H.264) | 42 | 556.6 kbps | 59.49 | 49.50 | 28.78 | 52.32 | 14.7 |
| x264 (H.264) | 46 | 415.2 kbps | 41.35 | 34.21 | 26.28 | 52.48 | 14.0 |
| x265 (HEVC) | 20 | 8,874.1 kbps | 99.98 | 100.00 | 41.91 | 13.68 | 73.6 |
| x265 (HEVC) | 24 | 4,608.6 kbps | 99.97 | 100.00 | 40.32 | 19.24 | 52.3 |
| x265 (HEVC) | 28 | 2,481.5 kbps | 99.43 | 96.32 | 38.45 | 24.84 | 39.8 |
| x265 (HEVC) | 32 | 1,420.9 kbps | 95.76 | 88.56 | 36.36 | 29.21 | 33.4 |
| x265 (HEVC) | 36 | 827.9 kbps | 87.44 | 78.93 | 34.12 | 33.44 | 28.7 |
| x265 (HEVC) | 40 | 489.1 kbps | 75.05 | 66.21 | 31.74 | 36.87 | 25.7 |
| x265 (HEVC) | 44 | 276.2 kbps | 58.87 | 48.16 | 29.22 | 40.57 | 23.5 |
| x265 (HEVC) | 48 | 147.6 kbps | 40.58 | 31.24 | 26.59 | 42.87 | 20.9 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| SVT-AV1 (AV1) | 24 | 5,791.9 kbps | 98.96 | 96.34 | 41.96 | 69.72 | 27.8 |
| SVT-AV1 (AV1) | 30 | 3,661.6 kbps | 97.81 | 94.84 | 41.30 | 72.44 | 27.5 |
| SVT-AV1 (AV1) | 36 | 2,369 kbps | 95.09 | 92.08 | 40.43 | 73.46 | 25.1 |
| SVT-AV1 (AV1) | 42 | 1,569.5 kbps | 91.04 | 87.93 | 39.45 | 74.54 | 27.3 |
| SVT-AV1 (AV1) | 48 | 1,060.8 kbps | 85.51 | 80.54 | 38.33 | 74.23 | 25.9 |
| SVT-AV1 (AV1) | 54 | 703.5 kbps | 78.32 | 71.72 | 37.05 | 73.25 | 27.0 |
| SVT-AV1 (AV1) | 58 | 495.2 kbps | 70.49 | 62.01 | 35.78 | 75.78 | 26.2 |
| SVT-AV1 (AV1) | 62 | 272.4 kbps | 56.19 | 45.29 | 33.52 | 81.46 | 24.3 |
| x264 (H.264) | 18 | 12,757.4 kbps | 99.40 | 97.15 | 42.27 | 14.68 | 52.3 |
| x264 (H.264) | 22 | 5,449.7 kbps | 97.51 | 94.43 | 41.05 | 20.35 | 38.8 |
| x264 (H.264) | 26 | 3,142.9 kbps | 92.47 | 89.70 | 39.57 | 27.42 | 31.2 |
| x264 (H.264) | 30 | 1,981.2 kbps | 84.21 | 81.33 | 37.85 | 33.9 | 26.5 |
| x264 (H.264) | 34 | 1,293 kbps | 72.17 | 69.63 | 35.94 | 40.13 | 22.5 |
| x264 (H.264) | 38 | 861.7 kbps | 57.08 | 54.27 | 33.94 | 43.84 | 20.2 |
| x264 (H.264) | 42 | 582 kbps | 39.30 | 36.57 | 31.70 | 46.44 | 17.2 |
| x264 (H.264) | 46 | 401 kbps | 24.76 | 21.52 | 29.35 | 48.1 | 16.1 |
| x265 (HEVC) | 20 | 6,375.6 kbps | 98.79 | 96.23 | 42.06 | 10.28 | 96.6 |
| x265 (HEVC) | 24 | 3,176.6 kbps | 96.27 | 93.45 | 40.85 | 13.31 | 74.4 |
| x265 (HEVC) | 28 | 1,873.7 kbps | 90.83 | 88.09 | 39.37 | 15.94 | 61.8 |
| x265 (HEVC) | 32 | 1,164.4 kbps | 82.22 | 79.53 | 37.63 | 18.54 | 53.1 |
| x265 (HEVC) | 36 | 731.7 kbps | 69.76 | 66.74 | 35.70 | 21.49 | 46.0 |
| x265 (HEVC) | 40 | 443.3 kbps | 53.88 | 49.99 | 33.60 | 24.48 | 39.4 |
| x265 (HEVC) | 44 | 264.1 kbps | 36.42 | 32.57 | 31.37 | 28.48 | 33.1 |
| x265 (HEVC) | 48 | 183 kbps | 21.39 | 16.92 | 29.23 | 32.37 | 28.4 |
riverbed — riverbed (fine ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| SVT-AV1 (AV1) | 24 | 26,527.3 kbps | 99.97 | 100.00 | 40.18 | 52.03 | 39.1 |
| SVT-AV1 (AV1) | 30 | 17,251.5 kbps | 99.95 | 100.00 | 38.90 | 53.17 | 38.5 |
| SVT-AV1 (AV1) | 36 | 11,422.7 kbps | 97.21 | 93.07 | 37.33 | 47.2 | 38.9 |
| SVT-AV1 (AV1) | 42 | 7,552 kbps | 88.78 | 82.42 | 35.61 | 53.54 | 37.3 |
| SVT-AV1 (AV1) | 48 | 4,898.8 kbps | 75.85 | 67.47 | 33.83 | 55.27 | 37.5 |
| SVT-AV1 (AV1) | 54 | 3,030.7 kbps | 60.11 | 50.70 | 31.90 | 56 | 38.0 |
| SVT-AV1 (AV1) | 58 | 1,952.4 kbps | 46.68 | 36.75 | 30.32 | 59.26 | 36.2 |
| SVT-AV1 (AV1) | 62 | 890.7 kbps | 27.28 | 16.33 | 27.91 | 62.28 | 33.4 |
| x264 (H.264) | 18 | 38,282.7 kbps | 99.97 | 100.00 | 40.87 | 11.54 | 90.3 |
| x264 (H.264) | 22 | 23,396.4 kbps | 99.94 | 100.00 | 38.69 | 12.58 | 83.1 |
| x264 (H.264) | 26 | 14,654.1 kbps | 95.24 | 93.48 | 36.49 | 14.21 | 73.9 |
| x264 (H.264) | 30 | 9,188.1 kbps | 81.34 | 79.28 | 34.26 | 16.47 | 64.2 |
| x264 (H.264) | 34 | 5,702.7 kbps | 62.65 | 59.81 | 31.98 | 19.58 | 52.4 |
| x264 (H.264) | 38 | 3,423.6 kbps | 43.12 | 39.89 | 29.57 | 20.21 | 41.3 |
| x264 (H.264) | 42 | 1,889.2 kbps | 28.33 | 25.50 | 27.01 | 20.95 | 31.4 |
| x264 (H.264) | 46 | 995.9 kbps | 22.16 | 19.38 | 25.16 | 21.3 | 25.8 |
| x265 (HEVC) | 20 | 24,234.5 kbps | 99.96 | 100.00 | 39.68 | 3.41 | 287.5 |
| x265 (HEVC) | 24 | 15,197.8 kbps | 97.00 | 93.72 | 37.69 | 4.03 | 243.3 |
| x265 (HEVC) | 28 | 9,535.6 kbps | 86.40 | 81.94 | 35.59 | 4.82 | 204.5 |
| x265 (HEVC) | 32 | 5,880.9 kbps | 71.63 | 66.24 | 33.45 | 5.85 | 167.8 |
| x265 (HEVC) | 36 | 3,424.3 kbps | 54.77 | 49.45 | 31.28 | 7.28 | 135.2 |
| x265 (HEVC) | 40 | 1,799.1 kbps | 38.37 | 33.28 | 29.16 | 9.39 | 104.5 |
| x265 (HEVC) | 44 | 868.8 kbps | 25.73 | 21.58 | 27.15 | 14.08 | 70.0 |
| x265 (HEVC) | 48 | 591.4 kbps | 22.88 | 20.22 | 25.90 | 21.33 | 45.9 |
rush_hour — evening rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| SVT-AV1 (AV1) | 24 | 5,312.1 kbps | 95.44 | 92.85 | 42.38 | 67.33 | 30.0 |
| SVT-AV1 (AV1) | 30 | 3,396 kbps | 92.75 | 90.00 | 41.75 | 71.63 | 27.0 |
| SVT-AV1 (AV1) | 36 | 2,115.7 kbps | 88.32 | 85.14 | 40.86 | 77.23 | 24.0 |
| SVT-AV1 (AV1) | 42 | 1,330.1 kbps | 82.94 | 78.30 | 39.92 | 73.62 | 26.1 |
| SVT-AV1 (AV1) | 48 | 856.5 kbps | 76.45 | 70.51 | 38.88 | 79.04 | 24.7 |
| SVT-AV1 (AV1) | 54 | 541.1 kbps | 69.49 | 63.72 | 37.77 | 78.15 | 24.9 |
| SVT-AV1 (AV1) | 58 | 376.8 kbps | 63.71 | 57.17 | 36.83 | 80.78 | 24.1 |
| SVT-AV1 (AV1) | 62 | 204.5 kbps | 53.41 | 46.04 | 35.11 | 84.03 | 23.3 |
| x264 (H.264) | 18 | 15,030.2 kbps | 97.17 | 95.82 | 42.64 | 13.78 | 63.6 |
| x264 (H.264) | 22 | 5,294.4 kbps | 93.69 | 91.91 | 41.58 | 20.95 | 40.4 |
| x264 (H.264) | 26 | 2,954.7 kbps | 88.42 | 86.33 | 40.48 | 27.74 | 32.3 |
| x264 (H.264) | 30 | 1,778.7 kbps | 80.57 | 77.94 | 39.10 | 35.3 | 25.9 |
| x264 (H.264) | 34 | 1,098.4 kbps | 69.83 | 66.73 | 37.41 | 42.42 | 22.0 |
| x264 (H.264) | 38 | 685.6 kbps | 56.42 | 52.75 | 35.42 | 44.79 | 17.9 |
| x264 (H.264) | 42 | 414.6 kbps | 41.99 | 37.73 | 33.10 | 46.3 | 15.4 |
| x264 (H.264) | 46 | 248.2 kbps | 29.03 | 24.90 | 30.59 | 47.27 | 13.6 |
| x265 (HEVC) | 20 | 5,922.2 kbps | 95.44 | 94.01 | 42.20 | 9.46 | 104.2 |
| x265 (HEVC) | 24 | 2,938.9 kbps | 91.64 | 89.72 | 41.28 | 12.63 | 77.9 |
| x265 (HEVC) | 28 | 1,644.7 kbps | 85.76 | 83.28 | 40.08 | 16.39 | 60.3 |
| x265 (HEVC) | 32 | 917.1 kbps | 76.91 | 73.68 | 38.54 | 21.1 | 46.5 |
| x265 (HEVC) | 36 | 504.8 kbps | 65.26 | 61.74 | 36.72 | 25.53 | 36.8 |
| x265 (HEVC) | 40 | 270.9 kbps | 51.04 | 46.88 | 34.60 | 29.13 | 30.3 |
| x265 (HEVC) | 44 | 153.5 kbps | 36.58 | 32.48 | 32.34 | 32.07 | 25.3 |
| x265 (HEVC) | 48 | 98.6 kbps | 23.49 | 19.41 | 30.15 | 33.55 | 23.0 |
How to read it, and what we saw
1. Same CRF, different results
The table below picks one CRF per encoder and puts the four clips side by side (file sizes are given in raw bytes).
x264 CRF 26, x265 CRF 28 and SVT-AV1 CRF 42 landed in a similar file-size range in this test. A CRF number does not mean the same thing across encoders.
- File size differs by about 5x or more. riverbed's file size was 4.96x rush_hour's with x264 (18,317,675 ÷ 3,693,405), 5.80x with x265 and 5.68x with SVT-AV1. All three encoders moved in the same direction.
- The expectation that easy video gets smaller files at the same CRF did not hold in this test. At x264 CRF 26, blue_sky (4,152,541 B) was actually larger than pedestrian_area (3,928,651 B) and rush_hour (3,693,405 B). Its VMAF simply saturated at 99.94. At the same CRF, the easy video did not use less data; it came out at higher quality.
- VMAF at the same CRF also varies widely. At x264 CRF 30, VMAF was 98.22 for blue_sky, 84.21 for pedestrian_area, 81.34 for riverbed and 80.57 for rush_hour. A single CRF cannot guarantee a given level of quality.
- blue_sky had a wide saturated range. With x264, CRF 18 to 26 all scored VMAF 99.9 or higher, yet file size differed by about 4.1x, from 17,217,871 B to 4,152,541 B. In that range, lowering CRF only added file size without any gain in this test's score.
2. The CRF that reaches VMAF 95 and 90
We measured CRF at intervals of 4 to 6, so we estimated the CRF that reaches VMAF 95 and 90 by linear interpolation over CRF between two adjacent measured points. Points saturated at VMAF 99 or higher were not used for interpolation, and both endpoints of every interpolated segment are actual measurements. Values are given to one decimal place, and they are estimates, not measurements.
Each cell reads 'CRF that reaches VMAF 95 / CRF that reaches VMAF 90'. Example: for x264 on pedestrian_area, 24.0 is interpolated between CRF 22 (VMAF 97.51) and 26 (92.48). For rush_hour with x265 and SVT-AV1, the lowest CRF we measured (20 and 24) scored VMAF 95.44, barely above 95, so the 95 value sits close to the edge of the tested range.
- To reach VMAF 95 with x264, rush_hour needed a CRF near 20.5 and blue_sky one near 31.5, a gap of 11. If you take a CRF chosen on one clip and apply it to other videos, some will fall short of the target and others will end up with needlessly large files.
- The biggest file does not need the lowest CRF. riverbed had the largest file size, yet its x264 VMAF 95 CRF (26.1) was higher than pedestrian_area's (24.0) and rush_hour's (20.5). File size (bits consumed) and "the CRF that reaches target quality" are separate axes. This data cannot establish why.
- Each encoder has its own scale. SVT-AV1's VMAF 95 CRF ranged from 25.0 to 57.0, far higher than x264 (20.5 to 31.5) and x265 (20.5 to 32.4), with a wider spread across clips. As in the earlier article, you cannot carry a CRF value over when you switch encoders.
- How much CRF rises when you lower the target from VMAF 95 to 90 also varied by clip. With x264 it was 2.4 for blue_sky and 1.4 for riverbed, while with SVT-AV1 it was 2.9 for blue_sky, 7.0 for pedestrian_area and 8.7 for rush_hour.
3. File size and encoder ranking at the same VMAF 90
We estimated the file size at the point that reaches VMAF 90 using log-scale interpolation (splitting the size ratio across the CRF interval). File size shrinks multiplicatively with CRF, so we judged this closer to reality than linear interpolation, but these are still estimates.
MB = 1,000,000 B, for the video stream of 250 frames (10 seconds). Ratios are computed from the interpolated values, not the rounded numbers above, so the last digit may be off.
- The file size needed for VMAF 90 differed hugely between clips. With x264, it went from 1.51 MB for blue_sky to 15.36 MB for riverbed, about 10.2x. With x265 it was about 11.4x and with SVT-AV1 about 12.1x. The cost of getting the same "quality" varies by an order of magnitude depending on the video.
- On blue_sky, pedestrian_area and riverbed, the ranking was the same: SVT-AV1 < x265 < x264 (ascending file size). The savings varied by clip: SVT-AV1 came in at 53–65% of x264's size and x265 at 65–91%, and x265's gain was smallest on riverbed.
- On rush_hour, x265 (3.13 MB) and SVT-AV1 (3.17 MB) were effectively tied. The difference is about 1%, which may be smaller than the estimation error, so we can't say the ranking flipped. The measured points show the same tendency, though: x265 CRF 28 (VMAF 85.76, 2,055,816 B) is smaller than the line connecting SVT-AV1 CRF 36 (VMAF 88.32, 2,644,578 B) and CRF 42 (VMAF 82.94, 1,662,641 B). On this clip, SVT-AV1 preset 8's advantage was not as large as on the others.
- In short, how much an encoder wins by varied by clip more than whether it wins. At VMAF 90, the encoder ranking mostly held, and the one exception was effectively a tie.
Speed is for reference only
Because we ran the processes at IDLE priority, wall-clock time (rtime) fluctuates with whatever else the PC is doing. CPU time (utime) is more stable, so the tables list both. This is one PC and one run, so treat it as a rough sense of scale only.
- More complex video ran slower. At x264 CRF 18, utime was 42.3 s for blue_sky and 90.3 s for riverbed. At x265 CRF 20 it was 73.6 s for blue_sky and 287.5 s for riverbed (73.4 s wall-clock, 3.4 fps).
- SVT-AV1 preset 8 had wall-clock time (rtime) of about 3.0 to 5.3 s (about 47 to 84 fps) in every measurement. Even on riverbed it took 4.0 to 5.3 s, shorter than x265 medium on the same clip (11.7 to 73.4 s).
- x264 and x265 got faster as CRF rose, while SVT-AV1 changed little with CRF.
Limitations
- There are only four 10-second clips. They can hardly represent video "types." Even among sky footage, different clouds or camera movement could change the result, and animation, screen recordings and dark video are missing entirely. The CRF values above are values for these four clips, not recommended values per genre.
- Interpolated values are estimates. They come from connecting two points 4 to 6 CRF apart, so they may differ from what you'd get by actually encoding at that CRF. This is especially true of SVT-AV1, whose points are spaced wider.
- We only measured 8-bit yuv420p. 10-bit and HDR are not covered.
- We picked just one preset per encoder. That is medium for x264 and x265 and preset 8 for SVT-AV1. Slower SVT-AV1 presets could change the results.
- We measured with only one VMAF model, the default. Equal scores don't guarantee they look the same to the human eye. Even with a high mean score, some frames can be low, so the tables also list vmaf_p5 and vmaf_min (for example, riverbed x264 CRF 22 has a mean of 99.945 but a minimum of 86.33).
- This is one PC and one run. We did not repeat measurements to estimate error, and with IDLE priority the speed figures are for reference only. File size is the video stream file size and does not reflect audio or playback compatibility.
Practical recommendations
- Don't use one CRF value for every video; run two or three steps on each video first. In this data, the x264 CRF needed for the same target (VMAF 95) differed by nearly 11 between clips. Encode a short segment at CRF steps of about 4, then pick based on file size and quality.
- Don't push CRF too low on videos whose quality saturates. For a video like blue_sky, where VMAF stays in the 99.9 range at low CRF, lowering CRF further only grew the file size substantially.
- If you set your target with a metric like VMAF, let CRF be the outcome. If "I want 95" is your criterion, CRF is the value you find for each video. The tables in this article show how much results can vary, not values to copy as they are.
- Don't carry a CRF value over when you change encoders. To check which codecs a device can play, use the codec support checker first.
You can download the full raw data as a CSV at the very bottom of the page. Running your own videos the same way gets you a "CRF scale for your video."
Raw data: crf-by-content-v1.csv