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

What Does -tune zerolatency Cost? File Size, VMAF and Encoding Time with x264 and x265 for Live Streaming

We encoded four 10-second 1080p25 clips with x264 (CRF 20, 28, 36) and x265 (CRF 22, 30, 38) at the medium and veryfast presets, each with default settings and with -tune zerolatency. At a matched VMAF of 90, turning on zerolatency cost +25.2% file size on average for x264 medium, +25.2% for x264 veryfast, +5.7% for x265 medium and +2.3% for x265 veryfast, and by clip the change ranged from −7.4% to +47.0%. Encoding CPU time dropped by −11.8% to −41.1% with x264, and was roughly unchanged for x265 veryfast only (−4.7% to +10.2%). We did not measure actual latency (ms).

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

The file-size penalty of zerolatency was large with x264 (+25.2% on average at a matched VMAF of 90) and small with x265 (+5.7% for medium, +2.3% for veryfast). It also varied a lot by content, from −7.4% to +47.0%. At high quality, where the score saturates (x264 CRF 20, x265 CRF 22), the scores were almost the same but files grew by +12.6% to +81.2% on three of the four clips. In return, encoding CPU time actually went down with x264. This article measured only file size, VMAF and CPU time. It did not measure actual latency.

Why this matters

Encoder setup guides for live streaming and video calls often include -tune zerolatency. In x264 and x265, this option is known to turn off B-frames and lookahead (the feature that looks at upcoming frames to distribute bits), which reduces the time frames spend queued inside the encoder. So how much more file size does it take to reach the same quality, what happens to encoding time, and how much do you lose if you leave it on by mistake when latency doesn't matter? We wanted to put numbers on those questions. For results from changing the B-frame count directly, see GOP, keyframe and B-frame tested; for real-time speed, see fast preset fps tested; and for a bitrate ceiling on streaming output, see capping CRF with maxrate.

What this article does and doesn't show

This experiment measures only file size, VMAF, and encoding/decoding CPU time. We did not measure the actual latency (ms) that zerolatency saves, so we can't say "how much file size per 1 ms of latency." Also, x264's zerolatency bundles sliced threading, lookahead removal and B-frame removal together, so we could not separate the cause of the penalty one piece at a time. Live streaming usually uses a fixed bitrate such as CBR, but this experiment uses CRF mode, so real streaming results may differ.

How we measured

ItemDetails
FFmpeg9.0.2 (gyan.dev full_build)
PCOne machine: AMD Ryzen 5 PRO 4650G (6 cores, 12 threads), 16GB RAM
Threads per job4 (x264 -threads 4, x265 pools=4). Process priority IDLE
Input formatyuv420p 8-bit, 1920x1080, 25fps. Input is the original y4m, output is mkv (no audio)
LengthOnly the first 250 frames (10 seconds) of each clip
VMAFlibvmaf default model (vmaf_v0.6.1), measured frame by frame against the original. We use the mean (vmaf_mean), the 5th percentile (vmaf_p5) and the minimum (vmaf_min)
Timeutime_s (encoding CPU time) and dec_utime_s (4-thread decoding CPU time) from the CSV. We did not use rtime_s (elapsed time) because it fluctuates with other jobs under IDLE priority
Measured on2026-11-26 (4 clips × 8 settings × 3 CRF levels = 96 encodes)

VMAF is a quality metric from Netflix. It compares the original and the encoded result frame by frame and scores each from 0 to 100. The "mean" is the average of all frame scores, and the "5th percentile" is the value at the point where the lowest 5% of scores fall, so it looks at the worst scenes. Every "file-size penalty" in this article is either the file size at a matched VMAF or a cell where the scores are marked as the same.

The eight settings compared

Name (CSV preset column)Command (key options)
x264 medium-c:v libx264 -preset medium -crf Q -threads 4
x264 medium+zl-c:v libx264 -preset medium -crf Q -threads 4 -tune zerolatency
x264 veryfast-c:v libx264 -preset veryfast -crf Q -threads 4
x264 veryfast+zl-c:v libx264 -preset veryfast -crf Q -threads 4 -tune zerolatency
x265 medium-c:v libx265 -preset medium -crf Q -x265-params pools=4:log-level=error
x265 medium+zl-c:v libx265 -preset medium -crf Q -x265-params pools=4:log-level=error -tune zerolatency
x265 veryfast-c:v libx265 -preset veryfast -crf Q -x265-params pools=4:log-level=error
x265 veryfast+zl-c:v libx265 -preset veryfast -crf Q -x265-params pools=4:log-level=error -tune zerolatency

Input and output paths are omitted. In place of Q we used 20, 28 and 36 for x264 and 22, 30 and 38 for x265, one at a time (the CRF numbers of the two codecs do not mean the same quality, so we chose different values). We picked medium and veryfast as two levels commonly used for live and general purposes.

How we compared at the same VMAF (interpolation)

With zerolatency on, the score changes even at the same CRF, so comparing file sizes only at matching CRF values would mean comparing two results of different quality. Instead, we sorted each setting's three CRF points by score and, between the two points surrounding the target VMAF (90), assumed that the logarithm of file size and the CPU time are linear in the score. With only three points, intervals with a large score gap have large errors. In particular, for x264 riverbed medium, the baseline's VMAF 90 falls between CRF 20 (99.957) and 28 (88.974), a gap of 11 points, so the value is unstable. That cell is marked separately in the table below.

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).

Per-clip results (raw data)

In the curves, the horizontal axis is bitrate and the vertical axis is VMAF. All eight settings are on one graph, and at the same score, the further right a curve sits, the larger the file. The table lists, for each CRF, file size, VMAF (mean, 5th percentile, minimum), encoding time and decoding time. Encoding speed was measured at IDLE priority and fluctuates, so treat it as a reference only.

blue_sky — blue sky and tree branches

5060708090100500k1M2M5M10MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=36: 961.5 kbps, VMAF 83.576x264 (H.264) · preset medium q=28: 2,490.2 kbps, VMAF 99.51x264 (H.264) · preset medium q=20: 9,140.9 kbps, VMAF 99.979x264 (H.264) · preset medium+zl q=36: 895.2 kbps, VMAF 72.993x264 (H.264) · preset medium+zl q=28: 2,384.9 kbps, VMAF 97.259x264 (H.264) · preset medium+zl q=20: 11,168.1 kbps, VMAF 99.981x264 (H.264) · preset veryfast q=36: 773.8 kbps, VMAF 58.483x264 (H.264) · preset veryfast q=28: 1,887.3 kbps, VMAF 91.099x264 (H.264) · preset veryfast q=20: 7,128.4 kbps, VMAF 99.972x264 (H.264) · preset veryfast+zl q=36: 941 kbps, VMAF 57.777x264 (H.264) · preset veryfast+zl q=28: 2,259.4 kbps, VMAF 91.025x264 (H.264) · preset veryfast+zl q=20: 10,871.5 kbps, VMAF 99.978x265 (HEVC) · preset medium q=38: 638.4 kbps, VMAF 81.807x265 (HEVC) · preset medium q=30: 1,874.4 kbps, VMAF 98.083x265 (HEVC) · preset medium q=22: 6,348.2 kbps, VMAF 99.977x265 (HEVC) · preset medium+zl q=38: 506.8 kbps, VMAF 73.665x265 (HEVC) · preset medium+zl q=30: 1,705.7 kbps, VMAF 98.518x265 (HEVC) · preset medium+zl q=22: 7,150.5 kbps, VMAF 99.979x265 (HEVC) · preset veryfast q=38: 558.5 kbps, VMAF 73.271x265 (HEVC) · preset veryfast q=30: 1,622.5 kbps, VMAF 95.796x265 (HEVC) · preset veryfast q=22: 5,347.6 kbps, VMAF 99.975x265 (HEVC) · preset veryfast+zl q=38: 518.6 kbps, VMAF 73.875x265 (HEVC) · preset veryfast+zl q=30: 1,736.5 kbps, VMAF 98.47x265 (HEVC) · preset veryfast+zl q=22: 7,243.1 kbps, VMAF 99.979
x264 (H.264) · preset mediumx264 (H.264) · preset medium+zlx264 (H.264) · preset veryfastx264 (H.264) · preset veryfast+zlx265 (HEVC) · preset mediumx265 (HEVC) · preset medium+zlx265 (HEVC) · preset veryfastx265 (HEVC) · preset veryfast+zl
blue_sky — blue sky and tree branches — bitrate vs VMAF (x264 and x265, medium and veryfast, default vs zerolatency)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium209,140.9 kbps99.98100.0041.1020.1334.9
x264 (H.264) · preset medium+zl2011,168.1 kbps99.98100.0040.4524.9135.7
x264 (H.264) · preset veryfast207,128.4 kbps99.97100.0040.0763.2610.9
x264 (H.264) · preset veryfast+zl2010,871.5 kbps99.98100.0040.1296.088.5
x264 (H.264) · preset veryfast281,887.3 kbps91.1085.0235.2266.148.0
x264 (H.264) · preset veryfast+zl282,259.4 kbps91.0387.8034.91138.435.5
x264 (H.264) · preset veryfast36773.8 kbps58.4851.2029.5067.227.3
x264 (H.264) · preset medium282,490.2 kbps99.5197.4437.2534.7320.8
x264 (H.264) · preset medium+zl282,384.9 kbps97.2694.0035.7253.6815.6
x264 (H.264) · preset medium36961.5 kbps83.5875.2632.5547.5316.1
x264 (H.264) · preset medium+zl36895.2 kbps72.9964.5731.1177.8310.4
x264 (H.264) · preset veryfast+zl36941 kbps57.7848.6629.23168.014.3
x265 (HEVC) · preset veryfast225,347.6 kbps99.97100.0040.5228.2535.9
x265 (HEVC) · preset veryfast+zl227,243.1 kbps99.98100.0040.8217.3144.2
x265 (HEVC) · preset veryfast38558.5 kbps73.2766.0131.6259.8916.6
x265 (HEVC) · preset medium226,348.2 kbps99.98100.0041.1417.6357.3
x265 (HEVC) · preset medium+zl227,150.5 kbps99.98100.0040.8711.769.0
x265 (HEVC) · preset medium301,874.4 kbps98.0892.6137.4228.3634.6
x265 (HEVC) · preset medium+zl301,705.7 kbps98.5294.8136.3523.5432.5
x265 (HEVC) · preset veryfast301,622.5 kbps95.8091.2436.4844.5122.6
x265 (HEVC) · preset veryfast+zl301,736.5 kbps98.4794.7036.3328.2426.3
x265 (HEVC) · preset medium38638.4 kbps81.8172.8032.9536.326.6
x265 (HEVC) · preset medium+zl38506.8 kbps73.6765.0631.1538.418.5
x265 (HEVC) · preset veryfast+zl38518.6 kbps73.8864.9731.1840.6917.3
blue_sky — blue sky and tree branches — all measurements

pedestrian_area — pedestrian street

5060708090100500k1M2M5M10MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=36: 1,054.6 kbps, VMAF 65.045x264 (H.264) · preset medium q=28: 2,480 kbps, VMAF 88.665x264 (H.264) · preset medium q=20: 7,819.9 kbps, VMAF 98.753x264 (H.264) · preset medium+zl q=36: 1,258.4 kbps, VMAF 60.489x264 (H.264) · preset medium+zl q=28: 2,904.9 kbps, VMAF 86.498x264 (H.264) · preset medium+zl q=20: 10,930.3 kbps, VMAF 98.749x264 (H.264) · preset veryfast q=36: 832.5 kbps, VMAF 52.525x264 (H.264) · preset veryfast q=28: 2,032 kbps, VMAF 82.266x264 (H.264) · preset veryfast q=20: 7,397.5 kbps, VMAF 97.001x264 (H.264) · preset veryfast+zl q=36: 1,091.1 kbps, VMAF 50.998x264 (H.264) · preset veryfast+zl q=28: 2,684.9 kbps, VMAF 81.919x264 (H.264) · preset veryfast+zl q=20: 11,401.3 kbps, VMAF 97.466x265 (HEVC) · preset medium q=38: 570.8 kbps, VMAF 62.096x265 (HEVC) · preset medium q=30: 1,472.2 kbps, VMAF 87.05x265 (HEVC) · preset medium q=22: 4,357.1 kbps, VMAF 97.842x265 (HEVC) · preset medium+zl q=38: 751.3 kbps, VMAF 61.761x265 (HEVC) · preset medium+zl q=30: 1,912.9 kbps, VMAF 88.143x265 (HEVC) · preset medium+zl q=22: 6,569.3 kbps, VMAF 98.716x265 (HEVC) · preset veryfast q=38: 572.1 kbps, VMAF 60.122x265 (HEVC) · preset veryfast q=30: 1,464.7 kbps, VMAF 85.231x265 (HEVC) · preset veryfast q=22: 4,253.9 kbps, VMAF 97.069x265 (HEVC) · preset veryfast+zl q=38: 746.8 kbps, VMAF 61.292x265 (HEVC) · preset veryfast+zl q=30: 1,930.4 kbps, VMAF 87.225x265 (HEVC) · preset veryfast+zl q=22: 6,720 kbps, VMAF 98.432
x264 (H.264) · preset mediumx264 (H.264) · preset medium+zlx264 (H.264) · preset veryfastx264 (H.264) · preset veryfast+zlx265 (HEVC) · preset mediumx265 (HEVC) · preset medium+zlx265 (HEVC) · preset veryfastx265 (HEVC) · preset veryfast+zl
pedestrian_area — pedestrian street — bitrate vs VMAF (x264 and x265, medium and veryfast, default vs zerolatency)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium207,819.9 kbps98.7595.9741.6517.5742.7
x264 (H.264) · preset medium+zl2010,930.3 kbps98.7596.2941.7119.6542.0
x264 (H.264) · preset veryfast207,397.5 kbps97.0093.4541.3155.7313.5
x264 (H.264) · preset veryfast+zl2011,401.3 kbps97.4794.5441.5076.439.7
x264 (H.264) · preset veryfast282,032 kbps82.2777.9237.9358.029.7
x264 (H.264) · preset veryfast+zl282,684.9 kbps81.9278.5137.73109.176.7
x264 (H.264) · preset veryfast36832.5 kbps52.5245.0433.4958.478.6
x264 (H.264) · preset medium282,480 kbps88.6785.9138.7231.1528.3
x264 (H.264) · preset medium+zl282,904.9 kbps86.5083.0038.1935.0220.5
x264 (H.264) · preset medium361,054.6 kbps65.0562.3034.9542.620.7
x264 (H.264) · preset medium+zl361,258.4 kbps60.4956.4334.2849.913.9
x264 (H.264) · preset veryfast+zl361,091.1 kbps51.0044.6333.25131.165.1
x265 (HEVC) · preset veryfast224,253.9 kbps97.0794.4041.2723.8141.5
x265 (HEVC) · preset veryfast+zl226,720 kbps98.4396.0541.6115.5550.6
x265 (HEVC) · preset veryfast38572.1 kbps60.1257.3634.4940.0624.5
x265 (HEVC) · preset medium224,357.1 kbps97.8495.0641.4812.8177.4
x265 (HEVC) · preset medium+zl226,569.3 kbps98.7296.4741.6910.3580.5
x265 (HEVC) · preset medium301,472.2 kbps87.0584.3638.5418.4553.7
x265 (HEVC) · preset medium+zl301,912.9 kbps88.1485.6238.5417.7645.2
x265 (HEVC) · preset veryfast301,464.7 kbps85.2383.0738.2831.8630.7
x265 (HEVC) · preset veryfast+zl301,930.4 kbps87.2284.6038.4523.3132.7
x265 (HEVC) · preset medium38570.8 kbps62.1058.7634.6724.3839.9
x265 (HEVC) · preset medium+zl38751.3 kbps61.7658.0634.4324.8330.5
x265 (HEVC) · preset veryfast+zl38746.8 kbps61.2957.2734.4529.0624.9
pedestrian_area — pedestrian street — all measurements

riverbed — riverbed (small ripples)

4050607080901002M5M10M20MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=36: 4,446.8 kbps, VMAF 52.612x264 (H.264) · preset medium q=28: 11,622.6 kbps, VMAF 88.974x264 (H.264) · preset medium q=20: 29,769.2 kbps, VMAF 99.957x264 (H.264) · preset medium+zl q=36: 3,726 kbps, VMAF 45.714x264 (H.264) · preset medium+zl q=28: 9,718.8 kbps, VMAF 83.074x264 (H.264) · preset medium+zl q=20: 24,673.5 kbps, VMAF 99.98x264 (H.264) · preset veryfast q=36: 3,833.4 kbps, VMAF 48.805x264 (H.264) · preset veryfast q=28: 10,573.8 kbps, VMAF 84.211x264 (H.264) · preset veryfast q=20: 29,167.1 kbps, VMAF 99.946x264 (H.264) · preset veryfast+zl q=36: 3,140.2 kbps, VMAF 42.156x264 (H.264) · preset veryfast+zl q=28: 8,846 kbps, VMAF 78.409x264 (H.264) · preset veryfast+zl q=20: 23,766.8 kbps, VMAF 99.941x265 (HEVC) · preset medium q=38: 2,512.6 kbps, VMAF 46.324x265 (HEVC) · preset medium q=30: 7,534.2 kbps, VMAF 79.562x265 (HEVC) · preset medium q=22: 19,060.6 kbps, VMAF 99.592x265 (HEVC) · preset medium+zl q=38: 2,231.2 kbps, VMAF 43.167x265 (HEVC) · preset medium+zl q=30: 6,881.9 kbps, VMAF 77.093x265 (HEVC) · preset medium+zl q=22: 17,530.8 kbps, VMAF 99.574x265 (HEVC) · preset veryfast q=38: 2,413.3 kbps, VMAF 43.111x265 (HEVC) · preset veryfast q=30: 7,140.3 kbps, VMAF 76.19x265 (HEVC) · preset veryfast q=22: 18,268.3 kbps, VMAF 98.612x265 (HEVC) · preset veryfast+zl q=38: 2,139.9 kbps, VMAF 41.77x265 (HEVC) · preset veryfast+zl q=30: 6,494.8 kbps, VMAF 74.825x265 (HEVC) · preset veryfast+zl q=22: 16,777.4 kbps, VMAF 98.982
x264 (H.264) · preset mediumx264 (H.264) · preset medium+zlx264 (H.264) · preset veryfastx264 (H.264) · preset veryfast+zlx265 (HEVC) · preset mediumx265 (HEVC) · preset medium+zlx265 (HEVC) · preset veryfastx265 (HEVC) · preset veryfast+zl
riverbed — riverbed (small ripples) — bitrate vs VMAF (x264 and x265, medium and veryfast, default vs zerolatency)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium2029,769.2 kbps99.96100.0039.7712.3483.6
x264 (H.264) · preset medium+zl2024,673.5 kbps99.98100.0038.9314.6460.3
x264 (H.264) · preset veryfast2029,167.1 kbps99.95100.0039.3825.924.2
x264 (H.264) · preset veryfast+zl2023,766.8 kbps99.9499.6638.5657.7214.3
x264 (H.264) · preset veryfast2810,573.8 kbps84.2182.0035.2826.7420.6
x264 (H.264) · preset veryfast+zl288,846 kbps78.4175.9634.4470.0711.3
x264 (H.264) · preset veryfast363,833.4 kbps48.8044.7930.6827.2616.4
x264 (H.264) · preset medium2811,622.6 kbps88.9786.9935.3815.7266.7
x264 (H.264) · preset medium+zl289,718.8 kbps83.0780.8034.5418.6846.4
x264 (H.264) · preset medium364,446.8 kbps52.6149.6130.7920.8544.7
x264 (H.264) · preset medium+zl363,726 kbps45.7142.4329.9329.0827.8
x264 (H.264) · preset veryfast+zl363,140.2 kbps42.1638.7129.6295.717.8
x265 (HEVC) · preset veryfast2218,268.3 kbps98.6196.4838.438.92111.2
x265 (HEVC) · preset veryfast+zl2216,777.4 kbps98.9897.5638.197.72107.5
x265 (HEVC) · preset veryfast382,413.3 kbps43.1138.4330.0215.8262.3
x265 (HEVC) · preset medium2219,060.6 kbps99.5998.1138.694.08240.2
x265 (HEVC) · preset medium+zl2217,530.8 kbps99.5798.4538.294.49189.7
x265 (HEVC) · preset medium307,534.2 kbps79.5674.6534.545.81168.3
x265 (HEVC) · preset medium+zl306,881.9 kbps77.0975.1634.096.47131.3
x265 (HEVC) · preset veryfast307,140.3 kbps76.1971.4834.2811.6584.9
x265 (HEVC) · preset veryfast+zl306,494.8 kbps74.8372.7533.979.9782.6
x265 (HEVC) · preset medium382,512.6 kbps46.3241.0830.219.03108.9
x265 (HEVC) · preset medium+zl382,231.2 kbps43.1740.5829.6710.2281.7
x265 (HEVC) · preset veryfast+zl382,139.9 kbps41.7739.1729.6113.3261.9
riverbed — riverbed (small ripples) — all measurements

rush_hour — rush-hour road

405060708090100500k1M2M5M10MBitrate (bps, log scale)VMAFx264 (H.264) · preset medium q=36: 875.7 kbps, VMAF 63.431x264 (H.264) · preset medium q=28: 2,275.6 kbps, VMAF 84.821x264 (H.264) · preset medium q=20: 8,033 kbps, VMAF 95.617x264 (H.264) · preset medium+zl q=36: 1,030.6 kbps, VMAF 64.577x264 (H.264) · preset medium+zl q=28: 2,596.2 kbps, VMAF 85.794x264 (H.264) · preset medium+zl q=20: 12,200.5 kbps, VMAF 96.358x264 (H.264) · preset veryfast q=36: 508.9 kbps, VMAF 48.63x264 (H.264) · preset veryfast q=28: 1,585.2 kbps, VMAF 76.565x264 (H.264) · preset veryfast q=20: 7,780 kbps, VMAF 92.59x264 (H.264) · preset veryfast+zl q=36: 726.5 kbps, VMAF 51.248x264 (H.264) · preset veryfast+zl q=28: 2,141.4 kbps, VMAF 78.98x264 (H.264) · preset veryfast+zl q=20: 14,097.6 kbps, VMAF 94.129x265 (HEVC) · preset medium q=38: 370.5 kbps, VMAF 58.295x265 (HEVC) · preset medium q=30: 1,233.5 kbps, VMAF 81.816x265 (HEVC) · preset medium q=22: 4,009.4 kbps, VMAF 93.759x265 (HEVC) · preset medium+zl q=38: 547.8 kbps, VMAF 64.294x265 (HEVC) · preset medium+zl q=30: 1,755.9 kbps, VMAF 86.333x265 (HEVC) · preset medium+zl q=22: 6,442 kbps, VMAF 95.993x265 (HEVC) · preset veryfast q=38: 373.6 kbps, VMAF 57.959x265 (HEVC) · preset veryfast q=30: 1,213.3 kbps, VMAF 80.977x265 (HEVC) · preset veryfast q=22: 3,877.8 kbps, VMAF 93.043x265 (HEVC) · preset veryfast+zl q=38: 557.2 kbps, VMAF 64.183x265 (HEVC) · preset veryfast+zl q=30: 1,749.1 kbps, VMAF 85.625x265 (HEVC) · preset veryfast+zl q=22: 6,340.6 kbps, VMAF 95.521
x264 (H.264) · preset mediumx264 (H.264) · preset medium+zlx264 (H.264) · preset veryfastx264 (H.264) · preset veryfast+zlx265 (HEVC) · preset mediumx265 (HEVC) · preset medium+zlx265 (HEVC) · preset veryfastx265 (HEVC) · preset veryfast+zl
rush_hour — rush-hour road — bitrate vs VMAF (x264 and x265, medium and veryfast, default vs zerolatency)
EncoderQualityBitrateVMAF meanVMAF 5th pctPSNR-YEncode fpsCPU time (s)
x264 (H.264) · preset medium208,033 kbps95.6294.0942.0416.7749.8
x264 (H.264) · preset medium+zl2012,200.5 kbps96.3695.4442.3617.6551.0
x264 (H.264) · preset veryfast207,780 kbps92.5990.4841.7752.4215.0
x264 (H.264) · preset veryfast+zl2014,097.6 kbps94.1393.0742.2471.5311.8
x264 (H.264) · preset veryfast281,585.2 kbps76.5672.6038.7455.39.9
x264 (H.264) · preset veryfast+zl282,141.4 kbps78.9877.3338.99117.76.6
x264 (H.264) · preset veryfast36508.9 kbps48.6342.6234.1656.097.8
x264 (H.264) · preset medium282,275.6 kbps84.8282.4039.8431.8928.2
x264 (H.264) · preset medium+zl282,596.2 kbps85.7984.4539.9335.8322.0
x264 (H.264) · preset medium36875.7 kbps63.4359.9436.4545.0419.4
x264 (H.264) · preset medium+zl361,030.6 kbps64.5861.6936.4856.8413.7
x264 (H.264) · preset veryfast+zl36726.5 kbps51.2548.0334.40151.334.6
x265 (HEVC) · preset veryfast223,877.8 kbps93.0491.3941.7420.1749.4
x265 (HEVC) · preset veryfast+zl226,340.6 kbps95.5294.6842.2515.2153.3
x265 (HEVC) · preset veryfast38373.6 kbps57.9654.1935.7347.0221.3
x265 (HEVC) · preset medium224,009.4 kbps93.7692.0641.7711.7484.1
x265 (HEVC) · preset medium+zl226,442 kbps95.9995.1242.3110.0683.1
x265 (HEVC) · preset medium301,233.5 kbps81.8278.9539.3518.5353.3
x265 (HEVC) · preset medium+zl301,755.9 kbps86.3385.0540.1217.2446.8
x265 (HEVC) · preset veryfast301,213.3 kbps80.9878.2839.3428.8133.0
x265 (HEVC) · preset veryfast+zl301,749.1 kbps85.6384.3940.0422.6635.1
x265 (HEVC) · preset medium38370.5 kbps58.3054.3435.6927.9533.6
x265 (HEVC) · preset medium+zl38547.8 kbps64.2962.2036.2130.5824.6
x265 (HEVC) · preset veryfast+zl38557.2 kbps64.1861.9636.2633.7722.4
rush_hour — rush-hour road — all measurements

How to read it, and what we observed

1. At high quality (saturated scores): same score, bigger file

x264 CRF 20 and x265 CRF 22 are in a range where the mean VMAF saturates at around 99. Of the 16 cells, 10 differ by 0.5 points or less, and the 4 rush_hour cells and 2 x265 pedestrian_area cells rose by +0.74 to +2.48 points. Because the score differences are small, file sizes can be compared almost directly (in cells where the score rose more, the file-size penalty may look larger than it really is). Each cell reads: file-size change with zerolatency on / mean VMAF change / decoding CPU time change, computed from the CSV values.

High qualityblue_skypedestrian_areariverbedrush_hour
x264 medium (CRF 20)+22.2% / 0.00 / +20.8%+39.8% / 0.00 / +24.1%−17.1% / +0.02 / −12.5%+51.9% / +0.74 / +20.1%
x264 veryfast (CRF 20)+52.5% / +0.01 / +28.9%+54.1% / +0.46 / +15.4%−18.5% / 0.00 / −13.6%+81.2% / +1.54 / +37.0%
x265 medium (CRF 22)+12.6% / 0.00 / +13.9%+50.8% / +0.87 / +25.6%−8.0% / −0.02 / −5.5%+60.7% / +2.23 / +31.1%
x265 veryfast (CRF 22)+35.4% / 0.00 / +29.5%+58.0% / +1.36 / +30.5%−8.2% / +0.37 / −12.7%+63.5% / +2.48 / +19.0%

Differences in CSV values: zerolatency vs. default at the same clip and CRF. Each cell reads: file-size change / mean VMAF change / decoding CPU time (dec_utime) change.

  • Excluding riverbed, file size grew by +12.6% to +81.2% on 3 clips. Even looking only at cells where the score difference is 0.00 to +0.02 (the 4 blue_sky cells and x264 medium pedestrian_area), it was +12.6% to +52.5%. Because the score is nearly saturated here, these figures are close to "spending more file size for the same quality."
  • x264 veryfast had the largest penalty. blue_sky +52.5%, pedestrian_area +54.1%, rush_hour +81.2%. At the same CRF 20, the veryfast default (rush_hour, 9,724,974 bytes) was much smaller than zerolatency (17,622,006 bytes).
  • riverbed went the other way: files got smaller by −8.0% to −18.5%. The scores were the same or similar. This experiment can't tell us why only this clip behaves this way. It has the largest files in every setting (x264 medium CRF 20 is 37,211,468 bytes) and is a scene with constantly changing ripples, so it may be footage where B-frames don't help as much as expected, but we could not confirm that.
  • Decoding CPU time followed file size. Cells where the file grew were +13.9% to +37.0%, and riverbed, where it shrank, was −5.5% to −13.6%. The absolute time is 0.6 to 4.8 seconds for 10 seconds of video, so the difference is small (the CSV records in 0.016-second steps, so the decimals jitter).

2. At medium quality (CRF 28 and 30): at the same CRF, the score moves too

Medium qualityblue_skypedestrian_areariverbedrush_hour
x264 medium (CRF 28)−4.2% / −2.25 / −24.8%+17.1% / −2.17 / −27.6%−16.4% / −5.90 / −30.5%+14.1% / +0.97 / −21.9%
x264 veryfast (CRF 28)+19.7% / −0.07 / −30.7%+32.1% / −0.35 / −31.5%−16.3% / −5.80 / −45.1%+35.1% / +2.42 / −33.3%
x265 medium (CRF 30)−9.0% / +0.44 / −6.0%+29.9% / +1.09 / −15.8%−8.7% / −2.47 / −22.0%+42.4% / +4.52 / −12.3%
x265 veryfast (CRF 30)+7.0% / +2.67 / +16.4%+31.8% / +1.99 / +6.5%−9.0% / −1.36 / −2.7%+44.2% / +4.65 / +6.4%

Zerolatency vs. default at the same CRF. Each cell reads: file-size change / mean VMAF change / encoding CPU time (utime) change.

  • In many cells file size and score move in the same direction, so this table alone can't tell you whether it's a gain or a loss. rush_hour grew by +14.1% to +44.2% but its score also rose by +0.97 to +4.65. riverbed shrank by −8.7% to −16.4% but its score also fell by −1.36 to −5.90. The same-score comparison is in the next section.
  • Encoding CPU time fell by −21.9% to −45.1% in all 8 x264 cells. x265 medium fell by −6.0% to −22.0%, and x265 veryfast was roughly unchanged at −2.7% to +16.4%.
  • Some cells show more even per-frame scores. For x264 medium riverbed CRF 28, the mean VMAF fell from 88.974 to 83.074, but the minimum (vmaf_min) rose from 73.089 to 79.901. In pedestrian_area at CRF 20, the minimum also rose from 92.093 to 95.335. Removing B-frames appears to reduce the quality variation between frames, but this experiment did not separately confirm the cause.

3. At the same VMAF of 90: file size and time

VMAF 90blue_skypedestrian_areariverbedrush_hour4-clip average
x264 medium+26.1% / −21.8%+47.0% / −11.8%+12.2% (unstable) / −23.7%+15.4% / −13.0%+25.2% / −17.6%
x264 veryfast+20.1% / −30.9%+42.2% / −29.5%−1.9% / −41.1%+40.2% / −27.0%+25.2% / −32.1%
x265 medium+2.5% / −9.5%+20.0% / −14.6%−3.7% / −19.9%+4.0% / −18.6%+5.7% / −15.7%
x265 veryfast−7.1% / +10.2%+16.8% / +5.9%−7.4% / −2.9%+6.8% / −4.7%+2.3% / +2.1%

Zerolatency's change in file size / encoding CPU time (utime) relative to the default setting's VMAF 90 point (interpolated values). A plus means a larger file. The average is the arithmetic mean of the 4 clips. The x264 medium riverbed file size is unstable because the baseline's interpolation interval is 11 points (computed the same way at VMAF 80 and 95, it was −2.0% and −3.7%).

  • For x264, the penalty averaged +25.2%, the same for medium and veryfast. The largest cells are pedestrian_area at +47.0% (medium) and +42.2% (veryfast), and rush_hour was also +15.4% and +40.2%. Excluding the unstable cell above, the 3 clips for x264 medium are +15.4% to +47.0%.
  • For x265, the penalty was smaller on average (+5.7% for medium, +2.3% for veryfast) but scattered from −7.4% to +20.0% depending on the clip. Only pedestrian_area stood out, at +16.8% to +20.0%. The small average is not because there is no penalty, but partly because the pluses and minuses across clips cancel out.
  • For riverbed, zerolatency was no loss, or about even, with either codec (−7.4% to −1.9%, excluding the unstable cell). Files were smaller at the same CRF, and that seems to have nearly cancelled out against the drop in score.
  • Encoding CPU time fell by −11.8% to −41.1% for x264 and by −9.5% to −19.9% for x265 medium. Only x265 veryfast was roughly unchanged, at −4.7% to +10.2%. We guess the computation shrinks because lookahead and B-frames are not used, but this experiment did not isolate the cause. So it is closer to a trade where you save time and pay with file size. Time was measured at IDLE priority, so treat it as a reference.
  • Varying the VMAF target didn't change the direction. For x264 pedestrian_area at VMAF 70, 80, 90 and 95, medium was +35.4%, +30.1%, +47.0% and +42.8%, and veryfast was +34.9%, +33.7%, +42.2% and +46.0%, all above +30%.

4. Does it depend on the preset?

  • For x264, the average penalty was the same for medium and veryfast (+25.2% for both). At high quality (CRF 20), veryfast's penalty (+52.5% to +81.2%) was larger than medium's (+22.2% to +51.9%), but at VMAF 90 they became similar.
  • For x265, veryfast had a smaller average penalty than medium (+2.3% vs +5.7%). But the encoding-time gain went the other way: medium's was larger (−15.7% vs +2.1%). With x265 veryfast, it was hard to save time with zerolatency.
  • Changing the preset moves things far more than zerolatency does. For example, the x264 CRF 20 blue_sky encoding CPU time was 34.938 seconds for medium, 35.688 for medium+zl, 10.859 for veryfast and 8.516 for veryfast+zl. If your goal is speed rather than lower latency, moving to a faster preset cuts time much more than zerolatency does. Results from changing only the preset are in x264 preset speed tested and x265 preset speed tested.

Limitations

  • We did not measure actual latency. This article compares only size, VMAF and CPU time. We can't tell how many ms zerolatency saved, so we can't directly compute the benefit relative to the penalty.
  • We could not separate the causes. x264's zerolatency mixes sliced threading, lookahead removal and B-frame removal. This data can't tell which part of the penalty comes from B-frames. For results that change only the B-frame count, see GOP, keyframe and B-frame tested.
  • It is CRF mode. Live streaming often uses a fixed bitrate (CBR family), where the penalty may show up as a different score at the same file size. Don't transfer this data directly to CBR. For the bitrate-cap side, see capped CRF tested; for fixed-bitrate comparisons, see 2-pass vs CRF.
  • The same-VMAF file sizes are interpolated values. With only three CRF points, the straight-line assumption has large errors in intervals with large score gaps. On an easy clip like blue_sky, VMAF saturates above 99, so the scores at CRF 20 and 22 are not meaningfully distinguishable. Read the interpolated numbers mainly for direction.
  • Only four 10-second clips, 8-bit yuv420p, one PC, one measurement, 4 threads per job, IDLE priority. Time was compared using utime and is for reference. Screen recordings, animation and dark footage are missing.
  • A score is not the same as visible quality. We did not run a human viewing comparison. For how to read VMAF scores, see VMAF 5th percentile tested and the file-size cost of 1 VMAF point.

Practical recommendations

  • If you're converting files and latency doesn't matter, don't turn on zerolatency. In this data, turning it on raised x264 file size by +25.2% on average at a matched VMAF of 90, and by up to +47.0% depending on the video. The worst case is copying a live-streaming setup and pasting it into an ordinary conversion.
  • If you really need zerolatency for live streaming or video calls, x265 hurts relatively less. It averaged +2.3% to +5.7%. But depending on the video it went as high as +20.0% (pedestrian_area, medium), so it is safer to compare using the content you will actually stream (such as a busy street scene). Since this experiment did not measure latency, we can't say "this much latency improvement makes it worth it."
  • With x264, zerolatency does cut time, but if time is what you're after, moving to a faster preset gives more. Going to veryfast cut encoding CPU time a lot relative to medium (blue_sky CRF 20: 34.938 s → 10.859 s). Zerolatency's time savings (−11.8% to −41.1%) are best seen as a side effect of its latency purpose.
  • Be suspicious of "same CRF, so it's fair" comparisons. With zerolatency on, the score changes at the same CRF, so looking only at file size makes riverbed look like a gain and rush_hour look like a loss. Matching at the same VMAF makes them much more alike (riverbed is near 0). To see how to read scores, use the VMAF score interpreter.

The full raw data can be downloaded as a CSV at the very bottom of the page. You can recompute the same-CRF differences directly from the size_bytes, vmaf_mean, vmaf_p5, utime_s and dec_utime_s columns of the CSV.

Raw data: zerolatency-tune-cost-size-vmaf-v1.csv