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

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)

The short answer

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

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
BitrateOutput file size ÷ 10 seconds (video stream only, no audio). This is the average result of a CRF encode, not a 2-pass fixed bitrate
Quality metriclibvmaf default model (vmaf_v0.6.1), measured per frame against the original → mean (vmaf_mean), 5th percentile (vmaf_p5), minimum (vmaf_min)
Scale4 clips × (x264 slow 7 + x264 veryfast 7 + x265 medium 7) = 84 encodes
Measured on2026-11-11

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

EncoderPresetSeven CRF valuesCommand (key options)
x264slow14, 18, 21, 24, 27, 30, 34-c:v libx264 -preset slow -crf Q -threads 4
x264veryfast14, 18, 21, 24, 27, 30, 34-c:v libx264 -preset veryfast -crf Q -threads 4
x265medium16, 20, 23, 26, 29, 32, 36-c:v libx265 -preset medium -crf Q -x265-params pools=4:log-level=error

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

607080901001M2M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) · preset veryfast q=34: 942.6 kbps, VMAF 68.372x264 (H.264) · preset veryfast q=30: 1,464.7 kbps, VMAF 84.629x264 (H.264) · preset veryfast q=27: 2,163 kbps, VMAF 93.765x264 (H.264) · preset veryfast q=24: 3,384.1 kbps, VMAF 98.858x264 (H.264) · preset veryfast q=21: 5,752.4 kbps, VMAF 99.95x264 (H.264) · preset veryfast q=18: 11,427.2 kbps, VMAF 99.976x264 (H.264) · preset veryfast q=14: 28,938.1 kbps, VMAF 99.982x264 (H.264) · preset slow q=34: 1,175 kbps, VMAF 89.954x264 (H.264) · preset slow q=30: 1,882.7 kbps, VMAF 98.312x264 (H.264) · preset slow q=27: 2,794.8 kbps, VMAF 99.798x264 (H.264) · preset slow q=24: 4,423.4 kbps, VMAF 99.973x264 (H.264) · preset slow q=21: 7,500.7 kbps, VMAF 99.979x264 (H.264) · preset slow q=18: 14,050.4 kbps, VMAF 99.983x264 (H.264) · preset slow q=14: 34,646.1 kbps, VMAF 99.985x265 (HEVC) q=36: 827.9 kbps, VMAF 87.441x265 (HEVC) q=32: 1,420.9 kbps, VMAF 95.756x265 (HEVC) q=29: 2,146.9 kbps, VMAF 98.876x265 (HEVC) q=26: 3,362 kbps, VMAF 99.903x265 (HEVC) q=23: 5,394.4 kbps, VMAF 99.975x265 (HEVC) q=20: 8,874.1 kbps, VMAF 99.98x265 (HEVC) q=16: 18,219.6 kbps, VMAF 99.984
x264 (H.264) · preset veryfastx264 (H.264) · preset slowx265 (HEVC)
blue_sky — blue sky and tree branches — file size vs. VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset veryfast1428,938.1 kbps99.98100.0043.4659.3417.2
x264 (H.264) · preset veryfast1811,427.2 kbps99.98100.0041.1262.2712.8
x264 (H.264) · preset veryfast215,752.4 kbps99.9599.9039.5363.8710.5
x264 (H.264) · preset veryfast243,384.1 kbps98.8694.8337.8168.198.9
x264 (H.264) · preset veryfast272,163 kbps93.7788.0635.9063.848.3
x264 (H.264) · preset veryfast301,464.7 kbps84.6378.0833.8164.738.1
x264 (H.264) · preset veryfast34942.6 kbps68.3761.4930.9865.67.5
x264 (H.264) · preset slow1434,646.1 kbps99.98100.0044.285.78109.2
x264 (H.264) · preset slow1814,050.4 kbps99.98100.0041.978.3170.2
x264 (H.264) · preset slow217,500.7 kbps99.98100.0040.6811.5450.8
x264 (H.264) · preset slow244,423.4 kbps99.97100.0039.3315.2639.9
x264 (H.264) · preset slow272,794.8 kbps99.8098.5037.8318.8232.7
x264 (H.264) · preset slow301,882.7 kbps98.3194.2536.1922.3528.0
x264 (H.264) · preset slow341,175 kbps89.9584.5533.7928.8223.3
x265 (HEVC) · preset medium1618,219.6 kbps99.98100.0043.558.12122.8
x265 (HEVC) · preset medium208,874.1 kbps99.98100.0041.9113.6473.1
x265 (HEVC) · preset medium235,394.4 kbps99.97100.0040.7316.4261.2
x265 (HEVC) · preset medium263,362 kbps99.9099.3639.4120.2349.1
x265 (HEVC) · preset medium292,146.9 kbps98.8894.6037.9424.1740.7
x265 (HEVC) · preset medium321,420.9 kbps95.7688.5636.3627.1435.5
x265 (HEVC) · preset medium36827.9 kbps87.4478.9334.1231.230.6
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

607080901001M2M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) · preset veryfast q=34: 1,032.9 kbps, VMAF 61.258x264 (H.264) · preset veryfast q=30: 1,606.4 kbps, VMAF 76.329x264 (H.264) · preset veryfast q=27: 2,294.7 kbps, VMAF 84.824x264 (H.264) · preset veryfast q=24: 3,438.1 kbps, VMAF 91.18x264 (H.264) · preset veryfast q=21: 5,845.2 kbps, VMAF 95.843x264 (H.264) · preset veryfast q=18: 12,570.3 kbps, VMAF 98.568x264 (H.264) · preset veryfast q=14: 33,264 kbps, VMAF 99.781x264 (H.264) · preset slow q=34: 1,190 kbps, VMAF 71.174x264 (H.264) · preset slow q=30: 1,856.2 kbps, VMAF 83.874x264 (H.264) · preset slow q=27: 2,656.1 kbps, VMAF 90.736x264 (H.264) · preset slow q=24: 3,938.3 kbps, VMAF 95.667x264 (H.264) · preset slow q=21: 6,396.7 kbps, VMAF 98.435x264 (H.264) · preset slow q=18: 13,240.2 kbps, VMAF 99.469x264 (H.264) · preset slow q=14: 37,823.1 kbps, VMAF 99.923x265 (HEVC) q=36: 731.7 kbps, VMAF 69.758x265 (HEVC) q=32: 1,164.4 kbps, VMAF 82.22x265 (HEVC) q=29: 1,657.2 kbps, VMAF 89.012x265 (HEVC) q=26: 2,415.2 kbps, VMAF 93.891x265 (HEVC) q=23: 3,690.3 kbps, VMAF 97.153x265 (HEVC) q=20: 6,375.6 kbps, VMAF 98.789x265 (HEVC) q=16: 16,508 kbps, VMAF 99.673
x264 (H.264) · preset veryfastx264 (H.264) · preset slowx265 (HEVC)
pedestrian_area — pedestrian street — file size vs. VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset veryfast1433,264 kbps99.7898.5044.1451.3720.6
x264 (H.264) · preset veryfast1812,570.3 kbps98.5795.4942.0853.2816.2
x264 (H.264) · preset veryfast215,845.2 kbps95.8492.1240.9355.4212.7
x264 (H.264) · preset veryfast243,438.1 kbps91.1887.0739.7456.7911.3
x264 (H.264) · preset veryfast272,294.7 kbps84.8280.5438.3957.4310.0
x264 (H.264) · preset veryfast301,606.4 kbps76.3371.5436.9258.299.8
x264 (H.264) · preset veryfast341,032.9 kbps61.2654.6334.7158.478.6
x264 (H.264) · preset slow1437,823.1 kbps99.9299.3444.545.16135.9
x264 (H.264) · preset slow1813,240.2 kbps99.4797.2542.247.1487.8
x264 (H.264) · preset slow216,396.7 kbps98.4495.4441.299.8363.2
x264 (H.264) · preset slow243,938.3 kbps95.6792.4440.2513.5350.0
x264 (H.264) · preset slow272,656.1 kbps90.7487.8339.0117.3341.3
x264 (H.264) · preset slow301,856.2 kbps83.8780.9237.6421.1535.0
x264 (H.264) · preset slow341,190 kbps71.1768.3735.6926.9229.2
x265 (HEVC) · preset medium1616,508 kbps99.6798.1543.395.56178.8
x265 (HEVC) · preset medium206,375.6 kbps98.7996.2342.069.06109.6
x265 (HEVC) · preset medium233,690.3 kbps97.1594.2741.1711.1988.1
x265 (HEVC) · preset medium262,415.2 kbps93.8991.0840.1512.9676.2
x265 (HEVC) · preset medium291,657.2 kbps89.0186.4138.9514.767.1
x265 (HEVC) · preset medium321,164.4 kbps82.2279.5337.6316.659.4
x265 (HEVC) · preset medium36731.7 kbps69.7666.7435.7019.2250.8
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (fine ripples)

50607080901005M10M20M50MBitrate (bps, log scale)VMAFx264 (H.264) · preset veryfast q=34: 5,073.6 kbps, VMAF 58.583x264 (H.264) · preset veryfast q=30: 8,309.8 kbps, VMAF 76.621x264 (H.264) · preset veryfast q=27: 11,948.6 kbps, VMAF 87.552x264 (H.264) · preset veryfast q=24: 17,355.5 kbps, VMAF 96.03x264 (H.264) · preset veryfast q=21: 25,557.2 kbps, VMAF 99.939x264 (H.264) · preset veryfast q=18: 38,112.8 kbps, VMAF 99.957x264 (H.264) · preset veryfast q=14: 64,383.4 kbps, VMAF 99.972x264 (H.264) · preset slow q=34: 5,585.4 kbps, VMAF 62.447x264 (H.264) · preset slow q=30: 9,371.5 kbps, VMAF 83.05x264 (H.264) · preset slow q=27: 13,455.8 kbps, VMAF 94.474x264 (H.264) · preset slow q=24: 19,078.7 kbps, VMAF 99.921x264 (H.264) · preset slow q=21: 27,120.6 kbps, VMAF 99.957x264 (H.264) · preset slow q=18: 39,379.1 kbps, VMAF 99.969x264 (H.264) · preset slow q=14: 67,084.8 kbps, VMAF 99.979x265 (HEVC) q=36: 3,424.3 kbps, VMAF 54.774x265 (HEVC) q=32: 5,880.9 kbps, VMAF 71.632x265 (HEVC) q=29: 8,475.6 kbps, VMAF 83.072x265 (HEVC) q=26: 12,067 kbps, VMAF 92.254x265 (HEVC) q=23: 16,978.4 kbps, VMAF 98.566x265 (HEVC) q=20: 24,234.5 kbps, VMAF 99.964x265 (HEVC) q=16: 40,890.4 kbps, VMAF 99.974
x264 (H.264) · preset veryfastx264 (H.264) · preset slowx265 (HEVC)
riverbed — riverbed (fine ripples) — file size vs. VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset veryfast1464,383.4 kbps99.97100.0042.9224.0828.9
x264 (H.264) · preset veryfast1838,112.8 kbps99.96100.0040.4524.5526.6
x264 (H.264) · preset veryfast2125,557.2 kbps99.94100.0038.8724.8724.7
x264 (H.264) · preset veryfast2417,355.5 kbps96.0394.2537.3524.6923.8
x264 (H.264) · preset veryfast2711,948.6 kbps87.5585.3535.8024.9522.2
x264 (H.264) · preset veryfast308,309.8 kbps76.6274.1334.2125.1820.8
x264 (H.264) · preset veryfast345,073.6 kbps58.5854.4131.9625.5719.0
x264 (H.264) · preset slow1467,084.8 kbps99.98100.0043.653.96253.2
x264 (H.264) · preset slow1839,379.1 kbps99.97100.0040.874.5222.8
x264 (H.264) · preset slow2127,120.6 kbps99.96100.0039.245.07198.2
x264 (H.264) · preset slow2419,078.7 kbps99.92100.0037.615.73175.0
x264 (H.264) · preset slow2713,455.8 kbps94.4792.0135.946.58151.6
x264 (H.264) · preset slow309,371.5 kbps83.0580.0234.187.78129.4
x264 (H.264) · preset slow345,585.4 kbps62.4558.7131.7310.1100.2
x265 (HEVC) · preset medium1640,890.4 kbps99.97100.0041.782.44401.9
x265 (HEVC) · preset medium2024,234.5 kbps99.96100.0039.683326.9
x265 (HEVC) · preset medium2316,978.4 kbps98.5796.1338.193.37291.4
x265 (HEVC) · preset medium2612,067 kbps92.2588.3136.643.86254.4
x265 (HEVC) · preset medium298,475.6 kbps83.0778.2335.074.37224.9
x265 (HEVC) · preset medium325,880.9 kbps71.6366.2433.455.07191.6
x265 (HEVC) · preset medium363,424.3 kbps54.7749.4531.286.22156.6
riverbed — riverbed (fine ripples) — all measurements

rush_hour — evening rush-hour traffic

5060708090100500k1M2M5M10M20M50MBitrate (bps, log scale)VMAFx264 (H.264) · preset veryfast q=34: 671 kbps, VMAF 56.395x264 (H.264) · preset veryfast q=30: 1,188.1 kbps, VMAF 70.542x264 (H.264) · preset veryfast q=27: 1,839.3 kbps, VMAF 79.203x264 (H.264) · preset veryfast q=24: 2,981.6 kbps, VMAF 86.035x264 (H.264) · preset veryfast q=21: 5,719.9 kbps, VMAF 91.198x264 (H.264) · preset veryfast q=18: 15,676.6 kbps, VMAF 95.052x264 (H.264) · preset veryfast q=14: 41,190.9 kbps, VMAF 98.386x264 (H.264) · preset slow q=34: 951.5 kbps, VMAF 66.917x264 (H.264) · preset slow q=30: 1,544 kbps, VMAF 78.823x264 (H.264) · preset slow q=27: 2,299.6 kbps, VMAF 85.858x264 (H.264) · preset slow q=24: 3,577.4 kbps, VMAF 91.132x264 (H.264) · preset slow q=21: 6,232.9 kbps, VMAF 94.932x264 (H.264) · preset slow q=18: 15,992.7 kbps, VMAF 97.478x264 (H.264) · preset slow q=14: 45,775.1 kbps, VMAF 99.429x265 (HEVC) q=36: 504.8 kbps, VMAF 65.264x265 (HEVC) q=32: 917.1 kbps, VMAF 76.914x265 (HEVC) q=29: 1,425.5 kbps, VMAF 83.848x265 (HEVC) q=26: 2,198.4 kbps, VMAF 88.967x265 (HEVC) q=23: 3,409 kbps, VMAF 92.764x265 (HEVC) q=20: 5,922.2 kbps, VMAF 95.442x265 (HEVC) q=16: 16,691 kbps, VMAF 97.881
x264 (H.264) · preset veryfastx264 (H.264) · preset slowx265 (HEVC)
rush_hour — evening rush-hour traffic — file size vs. VMAF
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset veryfast1441,190.9 kbps98.3997.2344.8744.1924.0
x264 (H.264) · preset veryfast1815,676.6 kbps95.0593.3042.5849.8318.9
x264 (H.264) · preset veryfast215,719.9 kbps91.2088.9241.4352.6314.8
x264 (H.264) · preset veryfast242,981.6 kbps86.0383.2340.4353.7511.7
x264 (H.264) · preset veryfast271,839.3 kbps79.2075.6039.2154.3810.2
x264 (H.264) · preset veryfast301,188.1 kbps70.5466.0937.7555.29.5
x264 (H.264) · preset veryfast34671 kbps56.4050.7035.4555.468.2
x264 (H.264) · preset slow1445,775.1 kbps99.4398.5445.154.39162.0
x264 (H.264) · preset slow1815,992.7 kbps97.4896.0842.626.09110.3
x264 (H.264) · preset slow216,232.9 kbps94.9393.1941.729.2772.9
x264 (H.264) · preset slow243,577.4 kbps91.1389.0040.9213.7451.9
x264 (H.264) · preset slow272,299.6 kbps85.8683.1639.9217.8640.7
x264 (H.264) · preset slow301,544 kbps78.8275.8438.7522.3635.0
x264 (H.264) · preset slow34951.5 kbps66.9263.2936.9529.4727.9
x265 (HEVC) · preset medium1616,691 kbps97.8896.7243.394.96199.1
x265 (HEVC) · preset medium205,922.2 kbps95.4494.0142.207.95124.3
x265 (HEVC) · preset medium233,409 kbps92.7691.0041.5310.0698.4
x265 (HEVC) · preset medium262,198.4 kbps88.9786.8240.7312.2180.8
x265 (HEVC) · preset medium291,425.5 kbps83.8581.1739.7214.9766.1
x265 (HEVC) · preset medium32917.1 kbps76.9173.6838.5418.1154.2
x265 (HEVC) · preset medium36504.8 kbps65.2661.7436.7223.1741.2
rush_hour — evening rush-hour traffic — all measurements

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.

ClipCRF 18CRF 21CRF 24
blue_sky14,0507,5014,423
pedestrian_area13,2406,3973,938
riverbed39,37927,12119,079
rush_hour15,9936,2333,577

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.

Clipx264 slowx264 veryfastx265 medium
blue_skyCRF 20.7 / VMAF 99.98CRF 19.6 / VMAF 99.96CRF 20.6 / VMAF 99.98
pedestrian_areaCRF 20.1 / VMAF 98.75CRF 19.8 / VMAF 96.96CRF 19.0 / VMAF 99.00
riverbedCRF 31.2 / VMAF 76.8CRF 30.3 / VMAF 75.2CRF 29.5 / VMAF 81.3
rush_hourCRF 20.2 / VMAF 95.6CRF 20.0 / VMAF 92.5CRF 18.8 / VMAF 96.2

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.

Clipx264 slow 5th pct.x264 veryfast 5th pct.x265 medium 5th pct.
blue_sky100.099.9 or higher100.0
pedestrian_area96.093.596.7
riverbed73.572.676.3
rush_hour94.090.494.8

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.

Clipslowveryfastveryfast ÷ slow (bitrate)
blue_sky7,501kbps / 99.985,752kbps / 99.950.77
pedestrian_area6,397kbps / 98.445,845kbps / 95.840.91
riverbed27,121kbps / 99.9625,557kbps / 99.940.94
rush_hour6,233kbps / 94.935,720kbps / 91.200.92

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