What CRF Gives You YouTube's Recommended 8 Mbps? x264 and x265 Measured
We encoded four 10-second 1080p25 clips with x264 (slow, veryfast) and x265 (medium) at seven CRF values each, and found the CRF at which the average bitrate hits 8 Mbps. Three clips landed at about 19–21; one clip, riverbed, needed about 30.
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 "CRF for 8 Mbps." In this test, the x264 slow CRF at which the average bitrate reaches 8 Mbps was about 20–21 for blue_sky, pedestrian_area and rush_hour, and about 31 for riverbed. Same 8 Mbps, yet the CRF differed by more than 10, and VMAF at that point was about 77 for riverbed versus about 96–100 for the others.
Why we ran this
YouTube's upload encoding recommendations are given as bitrates per resolution and frame rate, and for 1080p SDR at 24, 25 and 30 fps the figure is about 8 Mbps (we took this value as our premise; the guidance can change, so check the official help page before you upload). But if you encode in CRF mode with OBS, HandBrake or FFmpeg, the natural question is: "So what CRF do I use to land around 8 Mbps?" The table doesn't list a CRF.
This article takes the average bitrate (file size ÷ 10 seconds) that CRF encodes actually produce and compares it with 8 Mbps. We compared the encoders themselves in CRF, file size and VMAF compared, looked at how CRF differs by type of video in How video content changes file size and VMAF, and covered the bad frames hidden by averages in VMAF worst-frame measurements. The focus this time is converting a recommended bitrate into a CRF.
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. "Mean" is the average of the 250 per-frame scores, and "5th percentile" is the score at the point where the lowest 5% of frames end.
Encoder settings
Input is the original y4m, output is mkv, no audio. Each CRF value above was substituted for Q in turn. veryfast is included for comparison, assuming real-time or fast-encoding users such as OBS streamers. Easy clips saturate VMAF early, so we included high CRFs (30–34).
Test clip sources and licenses
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. Find the 8 Mbps (8,000 kbps) position on the curve. The tables list the bitrate 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) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset veryfast | 14 | 28,938.1 kbps | 99.98 | 100.00 | 43.46 | 59.34 | 17.2 |
| x264 (H.264) · preset veryfast | 18 | 11,427.2 kbps | 99.98 | 100.00 | 41.12 | 62.27 | 12.8 |
| x264 (H.264) · preset veryfast | 21 | 5,752.4 kbps | 99.95 | 99.90 | 39.53 | 63.87 | 10.5 |
| x264 (H.264) · preset veryfast | 24 | 3,384.1 kbps | 98.86 | 94.83 | 37.81 | 68.19 | 8.9 |
| x264 (H.264) · preset veryfast | 27 | 2,163 kbps | 93.77 | 88.06 | 35.90 | 63.84 | 8.3 |
| x264 (H.264) · preset veryfast | 30 | 1,464.7 kbps | 84.63 | 78.08 | 33.81 | 64.73 | 8.1 |
| x264 (H.264) · preset veryfast | 34 | 942.6 kbps | 68.37 | 61.49 | 30.98 | 65.6 | 7.5 |
| x264 (H.264) · preset slow | 14 | 34,646.1 kbps | 99.98 | 100.00 | 44.28 | 5.78 | 109.2 |
| x264 (H.264) · preset slow | 18 | 14,050.4 kbps | 99.98 | 100.00 | 41.97 | 8.31 | 70.2 |
| x264 (H.264) · preset slow | 21 | 7,500.7 kbps | 99.98 | 100.00 | 40.68 | 11.54 | 50.8 |
| x264 (H.264) · preset slow | 24 | 4,423.4 kbps | 99.97 | 100.00 | 39.33 | 15.26 | 39.9 |
| x264 (H.264) · preset slow | 27 | 2,794.8 kbps | 99.80 | 98.50 | 37.83 | 18.82 | 32.7 |
| x264 (H.264) · preset slow | 30 | 1,882.7 kbps | 98.31 | 94.25 | 36.19 | 22.35 | 28.0 |
| x264 (H.264) · preset slow | 34 | 1,175 kbps | 89.95 | 84.55 | 33.79 | 28.82 | 23.3 |
| x265 (HEVC) · preset medium | 16 | 18,219.6 kbps | 99.98 | 100.00 | 43.55 | 8.12 | 122.8 |
| x265 (HEVC) · preset medium | 20 | 8,874.1 kbps | 99.98 | 100.00 | 41.91 | 13.64 | 73.1 |
| x265 (HEVC) · preset medium | 23 | 5,394.4 kbps | 99.97 | 100.00 | 40.73 | 16.42 | 61.2 |
| x265 (HEVC) · preset medium | 26 | 3,362 kbps | 99.90 | 99.36 | 39.41 | 20.23 | 49.1 |
| x265 (HEVC) · preset medium | 29 | 2,146.9 kbps | 98.88 | 94.60 | 37.94 | 24.17 | 40.7 |
| x265 (HEVC) · preset medium | 32 | 1,420.9 kbps | 95.76 | 88.56 | 36.36 | 27.14 | 35.5 |
| x265 (HEVC) · preset medium | 36 | 827.9 kbps | 87.44 | 78.93 | 34.12 | 31.2 | 30.6 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset veryfast | 14 | 33,264 kbps | 99.78 | 98.50 | 44.14 | 51.37 | 20.6 |
| x264 (H.264) · preset veryfast | 18 | 12,570.3 kbps | 98.57 | 95.49 | 42.08 | 53.28 | 16.2 |
| x264 (H.264) · preset veryfast | 21 | 5,845.2 kbps | 95.84 | 92.12 | 40.93 | 55.42 | 12.7 |
| x264 (H.264) · preset veryfast | 24 | 3,438.1 kbps | 91.18 | 87.07 | 39.74 | 56.79 | 11.3 |
| x264 (H.264) · preset veryfast | 27 | 2,294.7 kbps | 84.82 | 80.54 | 38.39 | 57.43 | 10.0 |
| x264 (H.264) · preset veryfast | 30 | 1,606.4 kbps | 76.33 | 71.54 | 36.92 | 58.29 | 9.8 |
| x264 (H.264) · preset veryfast | 34 | 1,032.9 kbps | 61.26 | 54.63 | 34.71 | 58.47 | 8.6 |
| x264 (H.264) · preset slow | 14 | 37,823.1 kbps | 99.92 | 99.34 | 44.54 | 5.16 | 135.9 |
| x264 (H.264) · preset slow | 18 | 13,240.2 kbps | 99.47 | 97.25 | 42.24 | 7.14 | 87.8 |
| x264 (H.264) · preset slow | 21 | 6,396.7 kbps | 98.44 | 95.44 | 41.29 | 9.83 | 63.2 |
| x264 (H.264) · preset slow | 24 | 3,938.3 kbps | 95.67 | 92.44 | 40.25 | 13.53 | 50.0 |
| x264 (H.264) · preset slow | 27 | 2,656.1 kbps | 90.74 | 87.83 | 39.01 | 17.33 | 41.3 |
| x264 (H.264) · preset slow | 30 | 1,856.2 kbps | 83.87 | 80.92 | 37.64 | 21.15 | 35.0 |
| x264 (H.264) · preset slow | 34 | 1,190 kbps | 71.17 | 68.37 | 35.69 | 26.92 | 29.2 |
| x265 (HEVC) · preset medium | 16 | 16,508 kbps | 99.67 | 98.15 | 43.39 | 5.56 | 178.8 |
| x265 (HEVC) · preset medium | 20 | 6,375.6 kbps | 98.79 | 96.23 | 42.06 | 9.06 | 109.6 |
| x265 (HEVC) · preset medium | 23 | 3,690.3 kbps | 97.15 | 94.27 | 41.17 | 11.19 | 88.1 |
| x265 (HEVC) · preset medium | 26 | 2,415.2 kbps | 93.89 | 91.08 | 40.15 | 12.96 | 76.2 |
| x265 (HEVC) · preset medium | 29 | 1,657.2 kbps | 89.01 | 86.41 | 38.95 | 14.7 | 67.1 |
| x265 (HEVC) · preset medium | 32 | 1,164.4 kbps | 82.22 | 79.53 | 37.63 | 16.6 | 59.4 |
| x265 (HEVC) · preset medium | 36 | 731.7 kbps | 69.76 | 66.74 | 35.70 | 19.22 | 50.8 |
riverbed — riverbed (fine ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset veryfast | 14 | 64,383.4 kbps | 99.97 | 100.00 | 42.92 | 24.08 | 28.9 |
| x264 (H.264) · preset veryfast | 18 | 38,112.8 kbps | 99.96 | 100.00 | 40.45 | 24.55 | 26.6 |
| x264 (H.264) · preset veryfast | 21 | 25,557.2 kbps | 99.94 | 100.00 | 38.87 | 24.87 | 24.7 |
| x264 (H.264) · preset veryfast | 24 | 17,355.5 kbps | 96.03 | 94.25 | 37.35 | 24.69 | 23.8 |
| x264 (H.264) · preset veryfast | 27 | 11,948.6 kbps | 87.55 | 85.35 | 35.80 | 24.95 | 22.2 |
| x264 (H.264) · preset veryfast | 30 | 8,309.8 kbps | 76.62 | 74.13 | 34.21 | 25.18 | 20.8 |
| x264 (H.264) · preset veryfast | 34 | 5,073.6 kbps | 58.58 | 54.41 | 31.96 | 25.57 | 19.0 |
| x264 (H.264) · preset slow | 14 | 67,084.8 kbps | 99.98 | 100.00 | 43.65 | 3.96 | 253.2 |
| x264 (H.264) · preset slow | 18 | 39,379.1 kbps | 99.97 | 100.00 | 40.87 | 4.5 | 222.8 |
| x264 (H.264) · preset slow | 21 | 27,120.6 kbps | 99.96 | 100.00 | 39.24 | 5.07 | 198.2 |
| x264 (H.264) · preset slow | 24 | 19,078.7 kbps | 99.92 | 100.00 | 37.61 | 5.73 | 175.0 |
| x264 (H.264) · preset slow | 27 | 13,455.8 kbps | 94.47 | 92.01 | 35.94 | 6.58 | 151.6 |
| x264 (H.264) · preset slow | 30 | 9,371.5 kbps | 83.05 | 80.02 | 34.18 | 7.78 | 129.4 |
| x264 (H.264) · preset slow | 34 | 5,585.4 kbps | 62.45 | 58.71 | 31.73 | 10.1 | 100.2 |
| x265 (HEVC) · preset medium | 16 | 40,890.4 kbps | 99.97 | 100.00 | 41.78 | 2.44 | 401.9 |
| x265 (HEVC) · preset medium | 20 | 24,234.5 kbps | 99.96 | 100.00 | 39.68 | 3 | 326.9 |
| x265 (HEVC) · preset medium | 23 | 16,978.4 kbps | 98.57 | 96.13 | 38.19 | 3.37 | 291.4 |
| x265 (HEVC) · preset medium | 26 | 12,067 kbps | 92.25 | 88.31 | 36.64 | 3.86 | 254.4 |
| x265 (HEVC) · preset medium | 29 | 8,475.6 kbps | 83.07 | 78.23 | 35.07 | 4.37 | 224.9 |
| x265 (HEVC) · preset medium | 32 | 5,880.9 kbps | 71.63 | 66.24 | 33.45 | 5.07 | 191.6 |
| x265 (HEVC) · preset medium | 36 | 3,424.3 kbps | 54.77 | 49.45 | 31.28 | 6.22 | 156.6 |
rush_hour — evening rush-hour traffic
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset veryfast | 14 | 41,190.9 kbps | 98.39 | 97.23 | 44.87 | 44.19 | 24.0 |
| x264 (H.264) · preset veryfast | 18 | 15,676.6 kbps | 95.05 | 93.30 | 42.58 | 49.83 | 18.9 |
| x264 (H.264) · preset veryfast | 21 | 5,719.9 kbps | 91.20 | 88.92 | 41.43 | 52.63 | 14.8 |
| x264 (H.264) · preset veryfast | 24 | 2,981.6 kbps | 86.03 | 83.23 | 40.43 | 53.75 | 11.7 |
| x264 (H.264) · preset veryfast | 27 | 1,839.3 kbps | 79.20 | 75.60 | 39.21 | 54.38 | 10.2 |
| x264 (H.264) · preset veryfast | 30 | 1,188.1 kbps | 70.54 | 66.09 | 37.75 | 55.2 | 9.5 |
| x264 (H.264) · preset veryfast | 34 | 671 kbps | 56.40 | 50.70 | 35.45 | 55.46 | 8.2 |
| x264 (H.264) · preset slow | 14 | 45,775.1 kbps | 99.43 | 98.54 | 45.15 | 4.39 | 162.0 |
| x264 (H.264) · preset slow | 18 | 15,992.7 kbps | 97.48 | 96.08 | 42.62 | 6.09 | 110.3 |
| x264 (H.264) · preset slow | 21 | 6,232.9 kbps | 94.93 | 93.19 | 41.72 | 9.27 | 72.9 |
| x264 (H.264) · preset slow | 24 | 3,577.4 kbps | 91.13 | 89.00 | 40.92 | 13.74 | 51.9 |
| x264 (H.264) · preset slow | 27 | 2,299.6 kbps | 85.86 | 83.16 | 39.92 | 17.86 | 40.7 |
| x264 (H.264) · preset slow | 30 | 1,544 kbps | 78.82 | 75.84 | 38.75 | 22.36 | 35.0 |
| x264 (H.264) · preset slow | 34 | 951.5 kbps | 66.92 | 63.29 | 36.95 | 29.47 | 27.9 |
| x265 (HEVC) · preset medium | 16 | 16,691 kbps | 97.88 | 96.72 | 43.39 | 4.96 | 199.1 |
| x265 (HEVC) · preset medium | 20 | 5,922.2 kbps | 95.44 | 94.01 | 42.20 | 7.95 | 124.3 |
| x265 (HEVC) · preset medium | 23 | 3,409 kbps | 92.76 | 91.00 | 41.53 | 10.06 | 98.4 |
| x265 (HEVC) · preset medium | 26 | 2,198.4 kbps | 88.97 | 86.82 | 40.73 | 12.21 | 80.8 |
| x265 (HEVC) · preset medium | 29 | 1,425.5 kbps | 83.85 | 81.17 | 39.72 | 14.97 | 66.1 |
| x265 (HEVC) · preset medium | 32 | 917.1 kbps | 76.91 | 73.68 | 38.54 | 18.11 | 54.2 |
| x265 (HEVC) · preset medium | 36 | 504.8 kbps | 65.26 | 61.74 | 36.72 | 23.17 | 41.2 |
How to read it, and what we saw
1. Same CRF, very different bitrates
These are the average bitrates (kbps) at CRF 18, 21 and 24 with x264 slow. Any cell above 8,000 kbps is higher than the recommended value.
Unit: kbps. Rounded from the kbps column of the raw data.
- At CRF 18, all four clips exceeded 8 Mbps. Even the lowest, blue_sky, came in at 14,050 kbps, about 1.76x the recommended value (14,050 ÷ 8,000).
- At CRF 21, three clips dropped below 8 Mbps, but riverbed was at 27,121 kbps, about 3.4x. riverbed was still above 8 Mbps at CRF 30 (9,372 kbps) and only reached 5,585 kbps at CRF 34.
- At CRF 21, riverbed (27,121 kbps) was about 4.35x rush_hour (6,233 kbps). You cannot guess the bitrate from the CRF value alone.
2. The CRF that averages 8 Mbps, and VMAF at that point
We took the two adjacent measurement points on either side of 8,000 kbps and interpolated the CRF at which the bitrate hits 8,000 kbps, using a log scale for bitrate (since it shrinks multiplicatively as CRF rises). VMAF was interpolated linearly at the same CRF fraction. With measurement steps of 3–4, these are estimates, though both endpoints are actual measured values.
Each cell is "CRF at which the average bitrate is 8,000 kbps / mean VMAF at that point." Example: pedestrian_area with x264 slow is interpolated between CRF 18 (13,240 kbps, VMAF 99.469) and CRF 21 (6,397 kbps, 98.435). For x265, pedestrian_area and rush_hour fall between CRF 16 and 20 (step of 4), so the error may be larger.
Estimates from interpolating vmaf_p5 the same way at the same 8,000 kbps point. For blue_sky veryfast, we wrote 99.9 or higher based on the neighboring measurements (CRF 18: 100.0, CRF 21: 99.899).
- For three clips, 8 Mbps landed around x264 CRF 20 (20.1–20.7). At this point blue_sky's VMAF is 99.98, effectively saturated, so 8 Mbps is more than this clip needs.
- riverbed needed roughly CRF 31 to reach 8 Mbps, and its mean VMAF was about 77 with a 5th percentile of about 73.5, both low. Quality dropped a lot at 8 Mbps for this clip. For the same clip, VMAF 99.9 or higher was only reached up to x264 slow CRF 24 (19,079 kbps, 99.921) within this test's range.
- At 8 Mbps, x265 medium had VMAF equal to or higher than x264 slow. The mean difference was 0.00 for blue_sky, +0.25 for pedestrian_area, +0.6 for rush_hour and +4.5 for riverbed (81.3 vs 76.8). The difference was largest on the complex riverbed clip.
- x265 reached 8 Mbps at a CRF about 1–1.7 lower than x264 (pedestrian_area 19.0 vs 20.1, rush_hour 18.8 vs 20.2, riverbed 29.5 vs 31.2). blue_sky was nearly identical (20.6 vs 20.7). As in the earlier articles, CRF numbers cannot be carried over directly from one encoder to another.
3. slow vs. veryfast: same CRF, same bitrate?
Faster presets can produce smaller files at the same CRF. But quality drops too, so comparing at the same CRF is misleading. First, here are the bitrate and VMAF of both presets at CRF 21.
x264 CRF 21, "kbps / mean VMAF."
So the fair comparison is at the same bitrate (8 Mbps). In the table in section 2, veryfast's mean VMAF was lower than slow's by 0.02 for blue_sky, 1.79 for pedestrian_area, 1.5 for riverbed and 3.1 for rush_hour. The 5th percentile gap was wider still: pedestrian_area went from 96.0 to 93.5 and rush_hour from 94.0 to 90.4. In other words, even when matched to the same 8 Mbps, veryfast gave lower quality, and the gap was larger on complex scenes such as rush_hour.
Treat the speed numbers as a rough guide
Because the processes ran at IDLE priority, elapsed time (rtime) fluctuates with whatever else the PC is doing. CPU time (utime) is more stable, so the tables include both. This was one PC and one run per setting, so use them only for a rough sense of scale.
- At x264 CRF 21, utime for slow vs. veryfast was 50.75 s vs. 10.52 s for blue_sky, 63.16 s vs. 12.66 s for pedestrian_area, 198.23 s vs. 24.72 s for riverbed and 72.88 s vs. 14.80 s for rush_hour. veryfast used about 4.8–8.0x less CPU time.
- At x265 medium CRF 20, utime was 73.08 s for blue_sky and 326.94 s for riverbed. That is longer than x264 slow CRF 21 (50.75 s for blue_sky, 198.23 s for riverbed), but the CRFs differ, so this is not a comparison at equal file size.
Limitations
- We did not measure what YouTube produces after re-encoding your upload. All VMAF and bitrate figures here are for the file before upload. YouTube re-encodes with its own settings, so what viewers see is not the same quality.
- There are only four 10-second clips. Scene-by-scene bitrate variation in long videos is not captured. The CRF values above are for these four clips, not per-genre recommendations, and animation, screen recordings and dark footage are not covered.
- This is not a 2-pass fixed bitrate. We compared the average bitrate of CRF results with 8 Mbps, so it may differ from a real 2-pass 8 Mbps encode (which allocates quality differently). Also, 8 Mbps is a recommendation, not a cap.
- Interpolated values are estimates. They come from joining two points 3–4 CRF apart, so actually running that CRF could give a different result. VMAF changes steeply at high CRFs (riverbed x264 slow goes from VMAF 83.05 to 62.45 between CRF 30 and 34), so the interpolation error may be larger there.
- Only 8-bit yuv420p, and only x264 slow, x264 veryfast and x265 medium. 10-bit, HDR and 60 fps (which have different recommended values) are not covered.
- We used a single VMAF model, measured once on one PC. We did not compute run-to-run error, and with IDLE priority the speed figures are for reference only.
Practical recommendations
- Assume there is no one-line formula like "8 Mbps = CRF X." In this data, the x264 slow CRF needed for the same 8 Mbps ranged from 20.1 to 31.2. For ordinary footage, start near CRF 20 and check the bitrate by dividing the file size by the duration. You can do the math with the video bitrate and file size calculator.
- Footage with lots of motion and texture (like riverbed) can come out at more than 3x 8 Mbps at CRF 20. In this test, x264 slow CRF 21 gave 27,121 kbps. If upload size is a concern, raise the CRF or consider capping the bitrate as well.
- For easy footage, there is little reason to lower the CRF. blue_sky still scored VMAF 99.97 at CRF 24 (4,423 kbps). Lowering the CRF to reach the recommended bitrate leaves the score unchanged and only grows the file.
- If you use fast encoding (veryfast), expect lower quality at the same bitrate. At the same 8 Mbps, rush_hour's VMAF was 3.1 lower. If time allows, a slower preset came out ahead at the same file size.
- For choosing a CRF itself, you can also use the CRF recommender. The data here cannot tell you quality after YouTube re-encodes, so treat it only as a guide to the quality/size balance of the file before upload.
You can download all the raw data as a CSV at the bottom of the page. Run your own footage the same way and you can get "the CRF for 8 Mbps" for your own video.
Raw data: youtube-upload-crf-vs-bitrate-v1.csv