If you distribute 4K or HDR video, HEVC is a must-have, not a nice-to-have. That’s the format the TVs and devices that play 4K HDR expect, and H.264 isn’t a realistic alternative. But what if you’re distributing 1080p SDR video? In this case, H.264 plays everywhere, and HEVC has to earn its place.
And HEVC earning its place is harder than it used to be. As you’ve no doubt heard, adding any advanced codec now involves royalties, which raises the economic barrier. The savings and other economic benefits of HEVC not only have to recover the costs of implementation, they have to recover the royalties as well.
So, how much savings does HEVC really deliver? The condensed version is this: for the 1080p videos that I tested, tuned x265 cut bandwidth costs by 16% to 27% compared to tuned x264, depending on where your viewers sit on the ladder, but it costs about 7.5 times more to encode. Without considering royalties, those bandwidth savings recovered the additional encoding expense after about 3,200 viewing hours (top-heavy audience) to 10,000 (mobile audience) viewing hours.
So, read this article if you want to learn:
- How much bitrate HEVC saves over H.264 when both encoders are tuned, and what it costs to encode.
- How your target audience changes the answer, and why the same HEVC encodes saved 27% in bandwidth for a top-heavy audience but only 16% for a mobile one.
- How to turn your own viewing hours into the dollar amount HEVC has to beat to cover its royalties.
- How much of HEVC’s advantage disappears when you tune H.264 first.
- Which x265 settings matter most, and what each costs in encoding time.
- Why you shouldn’t reuse your H.264 ladder for HEVC, and how much per-title adds over a ladder built for the codec.
In terms of big picture, this article is divided into two sections. First, how does optimized x265 compare to optimized x264? Second, how to optimize x265 (we covered how to optimize x264 here).
Contents
x264 vs. x265
We compared the encoders in two steps. First, efficiency: how much less bitrate x265 needs to deliver the same quality, measured with BD-Rate. Second, value: what that efficiency is worth in bandwidth savings with a realistic audience.
We compared two configurations of each encoder:
- Baseline: the encoder at its default settings on a fixed encoding ladder.
- Optimized: the encoder with the settings that tested best, on a per-title ladder.
For those who read the x264 article, there’s one key difference. With H.264, the baseline used a ladder based on the H.264 ladder Netflix published in 2015. In this case, each encoder’s baseline uses a fixed ladder created for that codec as I’ll describe below. Figure 1 shows the BD-Rate comparisons in SLC Bitrate Explorer, using optimized x264 as the baseline.

Several results are noteable. The top row, which compares x264 optimized to the other encodes, reveals that optimizing x264 produced savings over baseline x264 of about 27%. But the x265 baseline result of -0.59% means that if you implement x265 without optimization, you get very little benefit over optimized x264.
Line two (x264 baseline) reveals what we already knew; all other encodes were more efficient than baseline x264. Line 3 (x265 baseline) shows that at the default settings for both codecs, x265 needed 25.5% less bitrate than x264.
Skipping to line 4, we see that the x265 optimized encodes deliver the same quality as optimized x264 at a bitrate reduction of close to 33%. That’s close to the headline number you see in most HEVC vs H.264 comparisons.
Estimated Real World Savings
BD-Rate is great for comparing codec efficiency but doesn’t translate to real world savings. Why? Because by its nature, BD-Rate averages the bitrate savings at equal quality across the full quality range both ladders cover, weighing every point equally. In essence, it assumes every point in the comparison is viewed equally. In the real world that’s never true, encoding rungs vary in bitrate and quality and ladder distribution is almost never equal among all rungs.
To compute what HEVC saves you in dollars and cents, you have to supply additional inputs, including how much each alternative costs to encode, your CDN distribution cost per GB, and which rungs your viewers actually watch. The first two are self-explanatory, the last perhaps less so.
In a nutshell, the higher your average bandwidth, the more an advanced codec saves. If you’re distributing video at 16 Mbps to living room viewers, 30% saves you 4.8 Mbps. Convert that to GB/hour, multiply times your CDN rate, and that’s your savings. On the other hand, if you’re distributing at 1 Mbps to mobile viewers, the same 30% is 300 kbps, which is a fraction of the savings.
It’s actually worse than that. As you’ll see below, at lower bitrates, HEVC’s advantage shows up as better quality rather than lower bitrate, so the percentage you save drops too. That’s why you need to know your distribution pattern to compute real numbers like breakeven or actual bandwidth savings.
SLC Bitrate Explorer’s Breakeven tab does this by weighing each rung by the share of viewers who watch it. We used two of its audience presets: Top-heavy, where most viewers have enough bandwidth for the top rungs, and Mobile, where more viewers sit on the lower and middle rungs.
We also need the encoding cost. We priced encoding on an AWS c7i.8xlarge instance at $1.428 per hour, which has the same 32 threads as our test workstation. Optimized x264 costs about $3.99 to encode per hour of content, and optimized x265 cost about $29.77. Our times were measured on the workstation, so treat the dollar figures as estimates. Figure 2 shows the results with bandwidth at $0.02 per GB with the Top-heavy distribution on the left, and Mobile on the right. If your cost/GB is lower, obviously savings will be too, and vice versa.

Table 2 presents the relevant numbers from Figure 2. As described, the bandwidth savings for the Top-heavy distribution are much higher than mobile, 27% to 16%. If your service is serving a Top-Heavy audience, you recoup the added encoding cost and turn positive after 3,215 viewing hours as compared to 10,025 for mobile. Bandwidth savings for the Top-Heavy distribution is $801,754 compared to $257,090 for Mobile.
However, x265 delivers much better quality in the lower rungs than x264, so the VMAF lift is 4.3 points for the Mobile distribution, much higher than Top-Heavy. That certainly has value, though it’s not as easy to measure as bandwidth savings.
| Optimized x265 vs x264 Comparisons | Top-heavy | Mobile |
|---|---|---|
| Bandwidth saved | 27% | 16% |
| Viewing hours to pay back the extra encoding, per hour of content | 3,215 | 10,025 |
| Bandwidth saved per 100,000,000 viewing hours | $801,754 | $257,090 |
| Quality gained (VMAF) | +1.0 | +4.3 |
To compute whether HEVC covers its royalties, multiply your annual viewing hours by the savings per viewing hour, and subtract the extra encoding cost for the content you encode each year. Table 3 shows the rounded bandwidth savings at three sizes, before encoding costs and royalties. This is a vast oversimplification of the actual computation, but if you’re experimenting with a new codec purely for bandwidth savings, this will supply one key number.
| Annual viewing hours | Top-heavy | Mobile |
|---|---|---|
| 10 million | $80,000 | $26,000 |
| 100 million | $800,000 | $260,000 |
| 1 billion | $8 million | $2.6 million |
Table 3. Annual bandwidth savings, optimized x265 vs. optimized x264.
Three adjustments apply to your own numbers. Savings scale with your CDN price: at $0.01 per GB, they’re half of ours. Most publishers add HEVC alongside H.264 rather than replacing it, so count only the viewing hours on devices that play HEVC, and use the full x265 encoding cost, not the difference. And these are our clips; your savings depend on your content and your audience.
How We Tested
Those are the top-line numbers. Now let’s look at how we got from baseline to optimized, starting with the encoding ladders, then the encoder settings, and then what each step contributed.
All ladder tests, including every number so far in this article, used 11 clips covering animation, sports, primetime drama and music, and news and education, the same clips as our x264 article. The 1080p encoder-settings tests added two screen-content clips, for 13 in all. We left screen content out of the ladder tests because its low bitrates leave room for only one or two rungs in a per-title ladder. We measured quality with VMAF at 1080p, and encoding time as wall-clock time on an Intel Core i9-14900 workstation with 32 logical cores.
Building the encoding ladders
We tested three kinds of encoding ladders for each encoder.
Traditional fixed ladder. For x264, this is the H.264 ladder Netflix published in 2015, trimmed to six rungs from 235 kbps to 5,800 kbps, the same ladder we used in our x264 article. For x265, we kept the same resolutions and reduced the bitrates to 60%, which is how much bitrate x265 needed to match x264’s quality at 1080p in our tests. This is how many publishers build their first HEVC ladder: they took their H.264 ladder and lowered the bitrates.
Codec-optimized fixed ladder. This ladder used the same bitrates but adjusted the resolution of the four lower rungs (the top two rungs were always full-resolution 1080p). Our goal was to create a new “fixed ladder” that reflected HEVC’s ability to produce higher quality at higher resolutions than H.264.
To find the optimal resolutions for each rung, we encoded three to five candidate resolutions at each rung’s target bitrate on all 11 clips using the default settings, and chose the resolution with the highest average VMAF score. We capped the bottom rung at 640×360, which matches the bottom rung of Apple’s HEVC ladder. Our tests favored higher resolutions for this rung (960×540 for x265), but I thought few publishers would deploy a fixed ladder that starts that high.
After performing this analysis for x265, we decided to create the baseline ladder for x264 the same way. As a reminder, Netflix’s ladder was 2015, and x264 has improved significantly since then. By testing with a higher resolution fixed ladder, we optimized for these improvements.
Per-title ladder. A ladder built for each clip, using the same process as our x264 article. It searches for the 1080p bitrate that produces a VMAF score of 93, then builds the ladder downward, reducing the bitrate to 60% of the previous rung at each step and choosing the best resolution for each rung by testing. The bottom rungs of the per-title ladders weren’t capped, and had between four and eight rungs.
After performing all these encodes, I thought about capping the bottom rung of the per-title ladder at 360p to match the new fixed ladders, which likely would have impacted BD-Rate by about 1%. In the real-world estimates, however, the bottom rung is only watched by .34% of viewers in the Top-Heavy distribution, and only 5% in the mobile, limiting its impact even further.
Table 4 shows the traditional ladders we started with and the optimized ladders we ended up with.
| x264 kbps |
x264 traditional |
x264 optimized |
x265 kbps |
x265 traditional |
x265 optimized |
|---|---|---|---|---|---|
| 235 | 320×180 | 640×360 | 141 | 320×180 | 640×360 |
| 560 | 512×288 | 768×432 | 336 | 512×288 | 960×540 |
| 1,050 | 640×360 | 960×540 | 630 | 640×360 | 1280×720 |
| 2,350 | 1280×720 | 1280×720 | 1,410 | 1280×720 | 1600×900 |
| 4,300 | 1920×1080 | 1920×1080 | 2,580 | 1920×1080 | 1920×1080 |
| 5,800 | 1920×1080 | 1920×1080 | 3,480 | 1920×1080 | 1920×1080 |
Table 4. Fixed ladders.
The more efficient the encoder, the higher the resolution it supported at each rung. x265 wanted 720p at 630 kbps, while x264 wanted 540p at 1,050 kbps.
How much the ladder matters
The traditional ladder delivers gruesome quality by deploying lower resolutions on the bottom rungs. At 235 kbps, x264 at 320×180 averaged a VMAF score of 25.8, compared to 42.1 at 640×360. x265 showed the same gap at its bottom rung: 20.6 at 320×180, and 36.3 at 640×360. Table 5 shows what that means for the whole ladder.
Simply raising the resolutions of the fixed ladder saved 23.1% for x264 and 25.8% for x265. Against the traditional ladder, per-title saved 27% to 29%. Against a fixed ladder built for the codec, it saved 8.5% for x264 and 6.2% for x265. The savings varied widely by clip. On the hardest clips, per-title saved up to 32%, while on some x264 clips the optimized fixed ladder did slightly better than per-title.
The performance of the optimized fixed ladder is a critical detail for services that have refused to adopt per-title to date. Specifically, if you run tests similar to ours and increase the resolutions of your fixed ladders, you can harvest much of the benefit of per-title. It’s probably safe to say that if you haven’t updated the resolution of your H.264 ladders in the last five or six years, you could improve the quality of the lower rungs by increasing the resolution.
| Comparison | x264 | x265 |
|---|---|---|
| Optimized fixed vs. traditional fixed | -23.1% (-42.0% to -1.3%) | -25.8% (-48.4% to +1.6%) |
| Per-title vs. traditional fixed | -27.3% (-55.7% to -2.3%) | -29.4% (-59.6% to -4.9%) |
| Per-title vs. optimized fixed | -8.5% (-32.3% to +4.8%) | -6.2% (-25.5% to -0.1%) |
Table 5. BD-Rate between ladder types, mean of 11 clips (range in parentheses). Both fixed ladders use the tuned settings.
One caution: with a top-heavy audience, the choice of fixed ladder barely changes the delivered numbers, because few of those viewers watch the lower rungs, where the ladders differ. The more your audience watches the lower rungs, the more ladder design matters.
Optimizing x265
The comparison above is only as good as the encoders behind it. Our goal was the best quality a publisher could reasonably deploy, not the best quality possible regardless of cost, and getting there took two kinds of optimization. The first was the encoding ladder, which we covered above: a fixed ladder built for each codec, and a per-title ladder built for each clip.
The second was the encoder settings, which we cover here. As with the ladder, we chose settings for value as well as quality: the slower preset instead of veryslow, for example, and two reference frames instead of the preset’s default of five, to cut encoding time at a small cost in quality. We did the same for x264 in our previous article.

Figure 3 brings both together. It starts with the x265 baseline: default settings on the codec-optimized fixed ladder. Each step adds one optimization: the slower preset, a ten-second GOP, two-pass encoding, two reference frames, and finally the per-title ladder. The top section shows the average quality viewers received, the middle shows the average bitrate, and the bottom shows the encoding time, all with a top-heavy audience. The rest of this section walks through each encoder setting, and then the per-title step.
How we chose the settings
We chose each setting after running a separate set of tests. We encoded all 13 clips at 1080p and changed one setting at a time, starting from the veryslow preset, two-pass encoding, and a two-second GOP. Later, we excluded two screen-capture clips because their low bitrates only left room for 1-2 rungs which would distort the data for the real-world clips.
We tested each clip at a custom bitrate that produced a VMAF score of 93 using the x265 codec and the slow preset, essentially a realistic top-rung quality level. As in our x264 article, we didn’t test the psychovisual settings (psy-rd, psy-rdoq, adaptive quantization, and cutree), because VMAF often rewards the setting that looks worse to viewers. Every encode used x265’s defaults for those.
Preset
Switching from the default medium preset to slower was the biggest step in Figure 3. It added 2.16 VMAF points and increased encoding time by 8.5 times the baseline.
In the 1080p tests, preset mattered more for x265 than for x264. As shown in Figure 4, the medium preset delivered 97.7% of veryslow’s VMAF score in 6% of the encoding time, compared to 99.2% for x264’s medium preset. The slow preset delivered 99.7% in 15% of the time and slower came within 0.03 VMAF points of veryslow in 59% of the time. We chose slower because veryslow would have added about 70% more encoding time for almost no measurable gain. If you’re distributing your videos in the millions of views, consider the maximum quality preset.

GOP size
Moving from a two-second to a ten-second GOP added 0.46 VMAF points to the ladder and 0.7 times the baseline in encoding time. In the 1080p tests, a ten-second GOP improved VMAF by 0.79 points, a five-second GOP by 0.61 points, and a one-second GOP cost 1.31 points. Use the longest GOP your delivery system supports.
Two-pass encoding
Two-pass encoding added 0.40 VMAF points to the ladder and 1.3 times the baseline in encoding time. By default, x265 runs the first pass at full speed, while x264 in FFmpeg runs a fast first pass. So, we tested three modes at 1080p: one-pass, two-pass, and two-pass with a fast first pass (x265’s no-slow-firstpass option). Two-pass with the default first pass improved VMAF by 0.88 points over one-pass and doubled the encoding time. The fast first pass cut two-pass encoding time by 30% and cost 0.08 VMAF points, so we used it for all two-pass encodes.
For those encoding screencams, note that while the fast first pass cost less than 0.1 VMAF points on all 11 natural-content clips, this jumped to 0.45 and 0.65 points on the two screen-content clips.
Reference frames
This step is about cost, not quality. Reducing reference frames from slower’s default of five to two cut encoding time by 2.1 times the baseline and cost 0.11 VMAF points. In the 1080p tests, two reference frames cut encoding time by 19% compared to five and cost 0.08 VMAF points.
Per-title ladder
The last step in Figure 3 replaces the fixed ladder with a per-title ladder using the same encoder settings. This cut the delivered bitrate by 26%, from 3.22 Mbps to 2.38 Mbps, but it also delivered 1.33 VMAF points less. That’s because our per-title process targets a VMAF score of 93 at the top rung, while the top rung of the tuned fixed ladder scored between 94 and 97 on eight of the 11 clips.
As we observed in the x264 article:
Which looks better to the viewer [per-title clips at 93 VMAF, or fixed ladder at above 93 VMAF]? Actually, neither, most viewers will consider them about the same. There’s substantial research showing that once a video achieves a VMAF score of 93, additional quality isn’t discernable by the viewer. One key downside of a fixed ladder is that easy-to-encode files often produce one or more rungs that exceed VMAF 93, which wastes storage and bandwidth. This is why we tuned our optimized per-title ladders to a top rung value of 93.
As with our x264 tests, on clips that delivered higher than 93 VMAF scores, per-title traded some top-rung quality for a lower bitrate. On the three hardest clips, where the fixed ladder’s top rung scored below 93, per-title spent more bitrate to reach 93. Measured at the same quality with BD-Rate, per-title saved about 6% compared to the tuned fixed ladder. As we covered in the ladder section, most of what per-title usually delivers comes from fixing the resolutions, which our fixed ladder already had done.
What the optimizations cost
All told, the optimized configuration took 9.0 times as long to encode as the baseline, or about $29.77 per hour of content compared to $3.30. Nearly all of the increase came from the slower preset. As you saw above, with a top-heavy audience, the optimized configuration paid back its extra encoding cost after 3,474 viewing hours per hour of content (the computation shown in Figure 2 compares optimized x265 against optimized x264. This computation compares optimized vs. baseline x265).
Interestingly, the similar optimization for x264 paid for itself after about 185 hours, because x264’s optimizations cost far less encoding time.

Other settings we tested
We also tested settings that didn’t make it into the optimized configuration.
- B-frames. The default B-frame setting was already the best choice. Disabling B-frames cost 0.95 VMAF points.
- VBV buffer. A buffer of 100% of the target bitrate cost 0.40 VMAF points compared to 200%.
- Threads. Thread count didn’t change quality. x265’s default thread pool was the fastest configuration, and limiting the pool to eight threads made encoding 1.17 times slower with no change in VMAF. If you do want to limit threads, note that FFmpeg’s -threads option only sets x265’s frame threads; the thread pool is set with x265’s pools option.
The results for every setting, with charts, are in the download.
Summary
Congrats on making it this far. I wish I had your attention span. The bottom lines are:
- As between x264 and x265 for bandwidth efficiencies, the additional cost of x265 encoding makes it cost prohibitive below around 3200 viewing hours per hour of converted content assuming distribution to a normal US/Euro top-heavy distribution. At $0.02/GB, you’ll save over $800K for each 100M hours of video distribution. If you’re distributing to a mobile audience, those numbers jump to around 10,000 hours to breakeven, while your bandwidth savings drop to $260K. Obviously, bandwidth savings drop if your bandwidth charges are lower than $0.02. See Figure 2 for details.
- If you’re encoding with x265, the biggest optimization you can make is to an efficient ladder. It doesn’t have to vary for each title, but it has to fully utilize HEVC’s superior performance at higher resolutions. Run your own tests and see. Beyond that, presets are the biggest lever though this will jack up costs, so it’s only appropriate for videos distributed over 5000 times or so.
Running the analysis yourself
Every comparison in this article was made in SLC Bitrate Explorer, and the download includes the data behind it. To run the HEVC decision on your own content:
- Encode your test ladders and load them into SLC Bitrate Explorer as a portfolio, one group per configuration.
- On the BD-Rate tab, choose your current configuration as the reference to see how efficient each alternative is.
- On the Breakeven tab, choose an audience distribution, or enter your own, and enter your CDN cost per GB and your encoding cost per hour of content.
- Enter each configuration’s encoding time as a multiple of the reference.
- Enter your annual viewing hours, and read the bandwidth savings, the breakeven, and the net savings for each configuration.
Change the audience and the costs to see how the answer moves.
Download the data
The download includes every test in this article: the 1080p settings tests with a chart for each setting, the thread test, the ladder results, and the codec comparisons.
Download here: Here’s the link:
It includes a 20% discount code for SLC Bitrate Explorer, the tool we used to build and compare the ladders in this article.
Where I can help
The numbers in this article are for my clips and two standard audiences. Whether HEVC, a better ladder, or a slower preset pays off for you depends on your content, your audience, and your costs.
That’s what my Encoding Cost and Efficiency Review measures: I test alternatives to your current ladder and encoding settings on your content, then apply your encoding costs, CDN costs, and viewing data to calculate the breakeven and net savings of each change. It’s a fixed-scope engagement, and it starts with a 20-minute scoping call. Contact me at jan.ozer@streaminglearningcenter.com.
Streaming Learning Center Where Streaming Professionals Learn to Excel
