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 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.
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
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
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
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 9,140.9 kbps | 99.98 | 100.00 | 41.10 | 20.13 | 34.9 |
| x264 (H.264) · preset medium+zl | 20 | 11,168.1 kbps | 99.98 | 100.00 | 40.45 | 24.91 | 35.7 |
| x264 (H.264) · preset veryfast | 20 | 7,128.4 kbps | 99.97 | 100.00 | 40.07 | 63.26 | 10.9 |
| x264 (H.264) · preset veryfast+zl | 20 | 10,871.5 kbps | 99.98 | 100.00 | 40.12 | 96.08 | 8.5 |
| x264 (H.264) · preset veryfast | 28 | 1,887.3 kbps | 91.10 | 85.02 | 35.22 | 66.14 | 8.0 |
| x264 (H.264) · preset veryfast+zl | 28 | 2,259.4 kbps | 91.03 | 87.80 | 34.91 | 138.43 | 5.5 |
| x264 (H.264) · preset veryfast | 36 | 773.8 kbps | 58.48 | 51.20 | 29.50 | 67.22 | 7.3 |
| x264 (H.264) · preset medium | 28 | 2,490.2 kbps | 99.51 | 97.44 | 37.25 | 34.73 | 20.8 |
| x264 (H.264) · preset medium+zl | 28 | 2,384.9 kbps | 97.26 | 94.00 | 35.72 | 53.68 | 15.6 |
| x264 (H.264) · preset medium | 36 | 961.5 kbps | 83.58 | 75.26 | 32.55 | 47.53 | 16.1 |
| x264 (H.264) · preset medium+zl | 36 | 895.2 kbps | 72.99 | 64.57 | 31.11 | 77.83 | 10.4 |
| x264 (H.264) · preset veryfast+zl | 36 | 941 kbps | 57.78 | 48.66 | 29.23 | 168.01 | 4.3 |
| x265 (HEVC) · preset veryfast | 22 | 5,347.6 kbps | 99.97 | 100.00 | 40.52 | 28.25 | 35.9 |
| x265 (HEVC) · preset veryfast+zl | 22 | 7,243.1 kbps | 99.98 | 100.00 | 40.82 | 17.31 | 44.2 |
| x265 (HEVC) · preset veryfast | 38 | 558.5 kbps | 73.27 | 66.01 | 31.62 | 59.89 | 16.6 |
| x265 (HEVC) · preset medium | 22 | 6,348.2 kbps | 99.98 | 100.00 | 41.14 | 17.63 | 57.3 |
| x265 (HEVC) · preset medium+zl | 22 | 7,150.5 kbps | 99.98 | 100.00 | 40.87 | 11.7 | 69.0 |
| x265 (HEVC) · preset medium | 30 | 1,874.4 kbps | 98.08 | 92.61 | 37.42 | 28.36 | 34.6 |
| x265 (HEVC) · preset medium+zl | 30 | 1,705.7 kbps | 98.52 | 94.81 | 36.35 | 23.54 | 32.5 |
| x265 (HEVC) · preset veryfast | 30 | 1,622.5 kbps | 95.80 | 91.24 | 36.48 | 44.51 | 22.6 |
| x265 (HEVC) · preset veryfast+zl | 30 | 1,736.5 kbps | 98.47 | 94.70 | 36.33 | 28.24 | 26.3 |
| x265 (HEVC) · preset medium | 38 | 638.4 kbps | 81.81 | 72.80 | 32.95 | 36.3 | 26.6 |
| x265 (HEVC) · preset medium+zl | 38 | 506.8 kbps | 73.67 | 65.06 | 31.15 | 38.4 | 18.5 |
| x265 (HEVC) · preset veryfast+zl | 38 | 518.6 kbps | 73.88 | 64.97 | 31.18 | 40.69 | 17.3 |
pedestrian_area — pedestrian street
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 7,819.9 kbps | 98.75 | 95.97 | 41.65 | 17.57 | 42.7 |
| x264 (H.264) · preset medium+zl | 20 | 10,930.3 kbps | 98.75 | 96.29 | 41.71 | 19.65 | 42.0 |
| x264 (H.264) · preset veryfast | 20 | 7,397.5 kbps | 97.00 | 93.45 | 41.31 | 55.73 | 13.5 |
| x264 (H.264) · preset veryfast+zl | 20 | 11,401.3 kbps | 97.47 | 94.54 | 41.50 | 76.43 | 9.7 |
| x264 (H.264) · preset veryfast | 28 | 2,032 kbps | 82.27 | 77.92 | 37.93 | 58.02 | 9.7 |
| x264 (H.264) · preset veryfast+zl | 28 | 2,684.9 kbps | 81.92 | 78.51 | 37.73 | 109.17 | 6.7 |
| x264 (H.264) · preset veryfast | 36 | 832.5 kbps | 52.52 | 45.04 | 33.49 | 58.47 | 8.6 |
| x264 (H.264) · preset medium | 28 | 2,480 kbps | 88.67 | 85.91 | 38.72 | 31.15 | 28.3 |
| x264 (H.264) · preset medium+zl | 28 | 2,904.9 kbps | 86.50 | 83.00 | 38.19 | 35.02 | 20.5 |
| x264 (H.264) · preset medium | 36 | 1,054.6 kbps | 65.05 | 62.30 | 34.95 | 42.6 | 20.7 |
| x264 (H.264) · preset medium+zl | 36 | 1,258.4 kbps | 60.49 | 56.43 | 34.28 | 49.9 | 13.9 |
| x264 (H.264) · preset veryfast+zl | 36 | 1,091.1 kbps | 51.00 | 44.63 | 33.25 | 131.16 | 5.1 |
| x265 (HEVC) · preset veryfast | 22 | 4,253.9 kbps | 97.07 | 94.40 | 41.27 | 23.81 | 41.5 |
| x265 (HEVC) · preset veryfast+zl | 22 | 6,720 kbps | 98.43 | 96.05 | 41.61 | 15.55 | 50.6 |
| x265 (HEVC) · preset veryfast | 38 | 572.1 kbps | 60.12 | 57.36 | 34.49 | 40.06 | 24.5 |
| x265 (HEVC) · preset medium | 22 | 4,357.1 kbps | 97.84 | 95.06 | 41.48 | 12.81 | 77.4 |
| x265 (HEVC) · preset medium+zl | 22 | 6,569.3 kbps | 98.72 | 96.47 | 41.69 | 10.35 | 80.5 |
| x265 (HEVC) · preset medium | 30 | 1,472.2 kbps | 87.05 | 84.36 | 38.54 | 18.45 | 53.7 |
| x265 (HEVC) · preset medium+zl | 30 | 1,912.9 kbps | 88.14 | 85.62 | 38.54 | 17.76 | 45.2 |
| x265 (HEVC) · preset veryfast | 30 | 1,464.7 kbps | 85.23 | 83.07 | 38.28 | 31.86 | 30.7 |
| x265 (HEVC) · preset veryfast+zl | 30 | 1,930.4 kbps | 87.22 | 84.60 | 38.45 | 23.31 | 32.7 |
| x265 (HEVC) · preset medium | 38 | 570.8 kbps | 62.10 | 58.76 | 34.67 | 24.38 | 39.9 |
| x265 (HEVC) · preset medium+zl | 38 | 751.3 kbps | 61.76 | 58.06 | 34.43 | 24.83 | 30.5 |
| x265 (HEVC) · preset veryfast+zl | 38 | 746.8 kbps | 61.29 | 57.27 | 34.45 | 29.06 | 24.9 |
riverbed — riverbed (small ripples)
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 29,769.2 kbps | 99.96 | 100.00 | 39.77 | 12.34 | 83.6 |
| x264 (H.264) · preset medium+zl | 20 | 24,673.5 kbps | 99.98 | 100.00 | 38.93 | 14.64 | 60.3 |
| x264 (H.264) · preset veryfast | 20 | 29,167.1 kbps | 99.95 | 100.00 | 39.38 | 25.9 | 24.2 |
| x264 (H.264) · preset veryfast+zl | 20 | 23,766.8 kbps | 99.94 | 99.66 | 38.56 | 57.72 | 14.3 |
| x264 (H.264) · preset veryfast | 28 | 10,573.8 kbps | 84.21 | 82.00 | 35.28 | 26.74 | 20.6 |
| x264 (H.264) · preset veryfast+zl | 28 | 8,846 kbps | 78.41 | 75.96 | 34.44 | 70.07 | 11.3 |
| x264 (H.264) · preset veryfast | 36 | 3,833.4 kbps | 48.80 | 44.79 | 30.68 | 27.26 | 16.4 |
| x264 (H.264) · preset medium | 28 | 11,622.6 kbps | 88.97 | 86.99 | 35.38 | 15.72 | 66.7 |
| x264 (H.264) · preset medium+zl | 28 | 9,718.8 kbps | 83.07 | 80.80 | 34.54 | 18.68 | 46.4 |
| x264 (H.264) · preset medium | 36 | 4,446.8 kbps | 52.61 | 49.61 | 30.79 | 20.85 | 44.7 |
| x264 (H.264) · preset medium+zl | 36 | 3,726 kbps | 45.71 | 42.43 | 29.93 | 29.08 | 27.8 |
| x264 (H.264) · preset veryfast+zl | 36 | 3,140.2 kbps | 42.16 | 38.71 | 29.62 | 95.71 | 7.8 |
| x265 (HEVC) · preset veryfast | 22 | 18,268.3 kbps | 98.61 | 96.48 | 38.43 | 8.92 | 111.2 |
| x265 (HEVC) · preset veryfast+zl | 22 | 16,777.4 kbps | 98.98 | 97.56 | 38.19 | 7.72 | 107.5 |
| x265 (HEVC) · preset veryfast | 38 | 2,413.3 kbps | 43.11 | 38.43 | 30.02 | 15.82 | 62.3 |
| x265 (HEVC) · preset medium | 22 | 19,060.6 kbps | 99.59 | 98.11 | 38.69 | 4.08 | 240.2 |
| x265 (HEVC) · preset medium+zl | 22 | 17,530.8 kbps | 99.57 | 98.45 | 38.29 | 4.49 | 189.7 |
| x265 (HEVC) · preset medium | 30 | 7,534.2 kbps | 79.56 | 74.65 | 34.54 | 5.81 | 168.3 |
| x265 (HEVC) · preset medium+zl | 30 | 6,881.9 kbps | 77.09 | 75.16 | 34.09 | 6.47 | 131.3 |
| x265 (HEVC) · preset veryfast | 30 | 7,140.3 kbps | 76.19 | 71.48 | 34.28 | 11.65 | 84.9 |
| x265 (HEVC) · preset veryfast+zl | 30 | 6,494.8 kbps | 74.83 | 72.75 | 33.97 | 9.97 | 82.6 |
| x265 (HEVC) · preset medium | 38 | 2,512.6 kbps | 46.32 | 41.08 | 30.21 | 9.03 | 108.9 |
| x265 (HEVC) · preset medium+zl | 38 | 2,231.2 kbps | 43.17 | 40.58 | 29.67 | 10.22 | 81.7 |
| x265 (HEVC) · preset veryfast+zl | 38 | 2,139.9 kbps | 41.77 | 39.17 | 29.61 | 13.32 | 61.9 |
rush_hour — rush-hour road
| Encoder | Quality | Bitrate | VMAF mean | VMAF 5th pct | PSNR-Y | Encode fps | CPU time (s) |
|---|---|---|---|---|---|---|---|
| x264 (H.264) · preset medium | 20 | 8,033 kbps | 95.62 | 94.09 | 42.04 | 16.77 | 49.8 |
| x264 (H.264) · preset medium+zl | 20 | 12,200.5 kbps | 96.36 | 95.44 | 42.36 | 17.65 | 51.0 |
| x264 (H.264) · preset veryfast | 20 | 7,780 kbps | 92.59 | 90.48 | 41.77 | 52.42 | 15.0 |
| x264 (H.264) · preset veryfast+zl | 20 | 14,097.6 kbps | 94.13 | 93.07 | 42.24 | 71.53 | 11.8 |
| x264 (H.264) · preset veryfast | 28 | 1,585.2 kbps | 76.56 | 72.60 | 38.74 | 55.3 | 9.9 |
| x264 (H.264) · preset veryfast+zl | 28 | 2,141.4 kbps | 78.98 | 77.33 | 38.99 | 117.7 | 6.6 |
| x264 (H.264) · preset veryfast | 36 | 508.9 kbps | 48.63 | 42.62 | 34.16 | 56.09 | 7.8 |
| x264 (H.264) · preset medium | 28 | 2,275.6 kbps | 84.82 | 82.40 | 39.84 | 31.89 | 28.2 |
| x264 (H.264) · preset medium+zl | 28 | 2,596.2 kbps | 85.79 | 84.45 | 39.93 | 35.83 | 22.0 |
| x264 (H.264) · preset medium | 36 | 875.7 kbps | 63.43 | 59.94 | 36.45 | 45.04 | 19.4 |
| x264 (H.264) · preset medium+zl | 36 | 1,030.6 kbps | 64.58 | 61.69 | 36.48 | 56.84 | 13.7 |
| x264 (H.264) · preset veryfast+zl | 36 | 726.5 kbps | 51.25 | 48.03 | 34.40 | 151.33 | 4.6 |
| x265 (HEVC) · preset veryfast | 22 | 3,877.8 kbps | 93.04 | 91.39 | 41.74 | 20.17 | 49.4 |
| x265 (HEVC) · preset veryfast+zl | 22 | 6,340.6 kbps | 95.52 | 94.68 | 42.25 | 15.21 | 53.3 |
| x265 (HEVC) · preset veryfast | 38 | 373.6 kbps | 57.96 | 54.19 | 35.73 | 47.02 | 21.3 |
| x265 (HEVC) · preset medium | 22 | 4,009.4 kbps | 93.76 | 92.06 | 41.77 | 11.74 | 84.1 |
| x265 (HEVC) · preset medium+zl | 22 | 6,442 kbps | 95.99 | 95.12 | 42.31 | 10.06 | 83.1 |
| x265 (HEVC) · preset medium | 30 | 1,233.5 kbps | 81.82 | 78.95 | 39.35 | 18.53 | 53.3 |
| x265 (HEVC) · preset medium+zl | 30 | 1,755.9 kbps | 86.33 | 85.05 | 40.12 | 17.24 | 46.8 |
| x265 (HEVC) · preset veryfast | 30 | 1,213.3 kbps | 80.98 | 78.28 | 39.34 | 28.81 | 33.0 |
| x265 (HEVC) · preset veryfast+zl | 30 | 1,749.1 kbps | 85.63 | 84.39 | 40.04 | 22.66 | 35.1 |
| x265 (HEVC) · preset medium | 38 | 370.5 kbps | 58.30 | 54.34 | 35.69 | 27.95 | 33.6 |
| x265 (HEVC) · preset medium+zl | 38 | 547.8 kbps | 64.29 | 62.20 | 36.21 | 30.58 | 24.6 |
| x265 (HEVC) · preset veryfast+zl | 38 | 557.2 kbps | 64.18 | 61.96 | 36.26 | 33.77 | 22.4 |
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.
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
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
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