In one HEVC vs H264 test of tuned encoders, the streaming saving came out smaller than the headline. When Jan Ozer of the Streaming Learning Center tested a tuned x265 against a tuned x264 on 1080p content, HEVC cut bandwidth costs by 16% to 27%, depending on where viewers sat on the encoding ladder, and cost about 7.5 times more to encode. Several studies behind the familiar halving figure used the HM reference encoder or subjective viewing panels. In Ozer’s numbers, x265 only pays for itself after roughly 3,200 viewing hours per hour of converted content at $0.02 per GB delivery, for a typical top-heavy US or European audience, and after around 10,000 hours for a mobile audience.
HEVC is a trade: you pay more for encode compute, take on licensing exposure and lose some decoder reach, and in return you store and deliver fewer bytes.
How Does HEVC x265 Work, and What Changes in Practice?
HEVC is an international standard, published jointly by ISO/IEC as 23008-2 and by ITU-T as H.265, and was first published in 2013. x265 is one encoder for that format. It grew out of the x264 code base, and you can use it under the GPL version 2 or buy a commercial licence.
HEVC expands the pattern-comparison and difference-coding areas from 16×16 pixels to sizes up to 64×64. It also adds finer variable-block segmentation, better intra and motion-vector prediction, motion-region merging and an extra sample-adaptive offset filter. Using those tools well takes much more processing on the encode side, and much less extra work on the decode side. The standard also adds tiles and wavefront parallel processing to enhance parallel processing capability.
In practice, the standard defines the bitstream and its decoding, not how to encode it. The HEVC encoder decides how hard to search for the best way to code each block. So “HEVC efficiency” depends on the encoder and its settings. x265 supports the Main, Main 10 and Main 12 profiles at 8 or 10 bits per sample. For Apple devices, the HLS authoring specification requires HEVC in an fMP4 container, at no more than Main 10 Profile, Level 5.1, High Tier.
How Much Bitrate Does x265 Save over H.264 at the Same Quality, and How Is That Measured?
Against a tuned production x264, tuned x265 delivers the same quality at close to 33% lower bitrate, and the saving on real delivery is 16% to 27%, because viewers do not all stream the top rung. The answer depends on how “same quality” is measured. PSNR is a simple objective pixel-error measure. Mean opinion score (MOS) comes from human panels rating clips. Netflix’s VMAF metric, according to its authors, closely mirrors human visual experience. Bjøntegaard-Delta bitrate (BD-BR) states how much more or less bitrate one encoder needs for the same PSNR. A saving quoted without its metric, encoders and content set cannot be compared with another one.
| Study | Method | Saving |
|---|---|---|
| JCT-VC paper, HM-8.0 reference encoder | PSNR across nine sequences | 35.4% lower bitrate |
| Same paper, earlier HM-5.0 encoder | Subjective MOS | 49.3% lower bitrate |
| Library of Congress format record | Objective, four coding configurations; separate subjective tests | 22% to 43% objective; 55% to 87% subjective |
| NTIA/ITS, IEEE ISM 2015 | 20 scenes at 1080p, subjective panel | Statistically equivalent quality at about half the bitrate |
| Netflix, August 2016 | x265 vs x264 on clips from 500 titles, six metrics | 40% to 50% better quality at 1080p (a quality gain, not a bitrate saving) |
| Apple HLS authoring specification | Bitrate guidance for HEVC variants | About 20% lower than the H.264 values |
| Jan Ozer, tuned x265 vs tuned x264 | VMAF, 1080p ladders | Close to 33% at equal quality; 16% to 27% of delivered bandwidth |
So, is the halving figure verified? In subjective laboratory tests, mostly yes. The NTIA test found H.265 matched H.264 at half the bitrate in three of four comparisons, and where it fell short, the gap was 2.75% of the rating scale.
Three things inflate the headline. First, several studies used reference encoders, and in one, the HM reference encoder beat x264 by enough that x264 needed 66.4% more bitrate. Second, in one study the subjective saving came out larger than the objective one: 44.4% by PSNR against 66.5% by MOS. Third, content varies. In the NTIA test, H.264 at 8 Mbps was statistically better than H.265 at 4 Mbps on two scenes, and a single bitrate could look excellent on one scene and only fair on another.
Low bitrates are where the sources disagree. An earlier mobile study cited by NTIA found H.264 and H.265 gave similar quality at low bitrates. Ozer found x265 much better in the lower rungs, with a 4.3-point VMAF lift for a mobile viewing distribution. We would give more weight to Ozer’s result when planning a ladder, because it weights the rungs by where viewers sit on the ladder. Note, though, that his mobile gain shows up as quality rather than as fewer bytes.
What x265 Costs in Encode Compute, and How Presets Change It
During standardisation, some HEVC proposals reached AVC’s visual quality at half the bitrate in many test cases, at 2 to 10 times the computational complexity. Ozer’s measured version of that premium: on an AWS c7i.8xlarge priced at $1.428 per hour, optimised x264 cost about $3.99 per hour of content to encode, and optimised x265 about $29.77. Nearly all of the increase over his x265 baseline came from choosing a slower preset.
x265 has ten presets that trade encoding speed against compression efficiency. Faster presets take shortcuts. Slower presets test more coding options, which gives the lowest bitrate at a chosen quality under CRF rate control. The full range is wide. One study found fast presets ran 47 times faster than slower presets, while ultrafast produced 45% more bitrate than placebo. Energy use rose 45 times across the same range: roughly a 145% increase in energy for every 1% of bitrate saved. That study rated fast, medium and slow as the best balance of bitrate and energy.
Within that middle band, Ozer’s preset ROI analysis compares slow with medium for streaming. In that analysis, slow cut the top-rung bitrate by 23% and the whole ladder by 26% compared with medium, and the ladder needed one fewer rung. Encoding costs doubled, partly offset by having fewer rungs to encode. Above slow, returns flatten. Slow delivered 99.7% of veryslow’s result in 15% of the time.
Our reading is that preset choice belongs inside the codec decision, not after it. An x265 rollout on a fast preset gives up part of the bitrate saving that justified moving to HEVC.
Where HEVC Playback Breaks: Browsers, Devices and Licences
HEVC is a cost saving only on sessions that actually play HEVC. Desktop browser support varies by browser and platform. According to MDN, Chrome plays HEVC on Windows 8+, Linux and ChromeOS only on devices with hardware decode, and plays it on all devices on macOS Big Sur 11+ and Android 5.0+. On Windows 10 1709+, Edge also needs hardware decode plus the HEVC video extensions from the Microsoft Store. Firefox added HEVC on Windows from version 134, where software decode means the user buying an extension, and Safari supports it on macOS High Sierra and later. Hardware decode can also be withdrawn: since November 2025, Dell and HP have announced they will disable HEVC hardware decoding at the firmware level on some entry and mid-range laptops, due to HEVC licence fee increases.
Living-room devices are a different story. HEVC dominated on smart TVs and streaming dongles and had some success in mobile, but little elsewhere. For 4K or HDR distribution, Ozer argues it is a requirement, not an option, because those devices expect it.
The cost consequence is easy to miss. If part of your audience cannot decode HEVC, those sessions still need an H.264 ladder. Storage then goes up for every title you dual-encode, and the egress saving comes only from HEVC-capable sessions. Meta handles the same problem for VP9 by discounting predicted watch time by the share of viewing on devices that cannot play the codec, which it puts at about 20% for VP9. We would apply the same discount to HEVC, using your own player telemetry.
HEVC patents are licensed through several pools, including MPEG LA, Access Advance and Velos Media. MPEG LA’s HEVC rate of $0.20 per device after the first 100,000, with a $25 million annual cap, compares with $0.10 per device and a $6.5 million cap for AVC. The sources differ on overall cost: Wikipedia states that combined HEVC pool fees are higher than AVC’s, while a 2019 study by Unified claimed HEVC rates should be comparable to or less than the main AVC pool. MDN notes that Via LA charges fees to developers rather than to content producers and distributors. Even so, one operator, Evolution, calls content royalties unclear and is betting on royalty-free AV1 instead.
How Does a Lower Per-Rendition Bitrate Turn into S3 Storage and CDN Egress Cost?
Bitrate turns into bytes in two different ways, and they scale with different things. Stored bytes are each rendition’s bitrate multiplied by the length of the title, summed across the ladder and paid every month whether anyone watches or not. Delivered bytes are the bitrate of the rung each viewer actually streams, multiplied by viewing time, paid on every session. A codec saving cuts delivered bytes in proportion to bitrate, and stored bytes only where the H.264 ladder is retired. Egress grows with popularity and storage does not, so the same percentage cut is worth far more on a heavily watched title. For reference, AWS S3 pricing lists data transfer out from S3 in Europe (Ireland) to the internet at $0.09 per GB.
At 4K, Wikipedia gives a typical 30 fps capture as about 50 Mbps and 22.5 GB per hour with HEVC, against 100 Mbps and 45 GB per hour for older H.264 profiles. That is a camera-capture comparison, not a streaming ladder, so we would treat it as an upper bound for distribution.
Worked Example: One Top Rung, One Viewing Hour
This example combines the top rungs from Ozer’s preset analysis with the encode cost from his tuned x265 test, which used a slower preset, and the S3 list price above. The assumptions: every session plays the top rung, every session decodes HEVC, delivery is billed at $0.09 per GB straight from S3, and decimal gigabytes are used.
- Top-rung bitrates at equal quality: 4,200 kbps for H.264 and 2,600 kbps for HEVC.
- One viewing hour at 4,200 kbps: 4,200,000 bits/s × 3,600 s ÷ 8 = 1.89 GB. At 2,600 kbps it is 1.17 GB. The saving is 0.72 GB per viewing hour.
- At $0.09 per GB, that is about $0.065 saved per viewing hour.
- Encode premium: $29.77 − $3.99 = $25.78 per hour of content.
- Breakeven: $25.78 ÷ $0.065 ≈ 400 viewing hours per hour of content.
That figure is the best case, because the assumptions remove everything that dilutes the saving. Ozer’s own calculation assumes a top-heavy US/European viewing distribution and $0.02 per GB delivery, and lands at about 3,200 hours. If you scale his result to $0.09 per GB (3,200 × 0.02 ÷ 0.09), breakeven drops to about 710 hours, still assuming his bitrate savings hold. The lesson is that your delivery price per GB moves the breakeven as much as the codec does.
On the storage side, the HEVC ladder from Ozer’s slow-preset analysis totalled 5,300 kbps. That works out to about 2.4 GB stored per hour of content (5,300,000 × 3,600 ÷ 8), added on top of the H.264 ladder if you keep both.
When Is an x265 Migration the Right Lever Versus Lifecycle Policy or Rendition Pruning?
An x265 migration is the right lever when egress dominates the bill and the audience can decode HEVC. Lifecycle policy fits when cold renditions dominate. Ladder work (pruning rungs or rebuilding the ladder) fits when the ladder itself is inefficient, and it often should come before a codec change.
| Lever | Meter it moves | What it costs you | Fits when |
|---|---|---|---|
| Re-encode in x265 | Egress on HEVC sessions; storage only if H.264 is retired | About 7.5x encode cost, higher licence fees, a second ladder for non-HEVC clients | Popular titles, high delivery volume, HEVC-capable audience |
| Lifecycle transitions to colder classes | Storage cost | A request charge per object, plus 8 KB of Standard-rate and 32 KB of archive metadata per archived object | Large back catalogue that is rarely watched |
| Rendition pruning and ladder tuning | Storage and egress, with the existing codec | Re-encode compute at H.264 rates; quality checks per rung | Fixed ladders built years ago; rungs few viewers reach |
In Ozer’s tests, simply raising the resolutions of a fixed ladder saved 23.1% for x264, and per-title encoding saved 27% to 29% against a traditional ladder. That is in the same range as the 16% to 27% that x265 bought on delivery, without losing any decoder reach. The two savings do not simply add up. Against a ladder already tuned for the codec, per-title encoding saved only 8.5% for x264 and 6.2% for x265.
A codec migration is a large, costly change worth making once the cheaper levers have been measured and used, not before. The same measure-first logic extends to encode-compute cost, as described in how an inference cost audit finds the real bottleneck. For wider help with streaming and broadcast pipelines, see our AI engineering for media, broadcast, and telecom work.
Which Renditions or Catalogue Tiers Should You Re-Encode in x265 First?
Re-encode the most-watched titles first, and within them, the rungs that carry the most delivered bytes. Encode cost is paid once per title, while the saving is earned on every viewing hour. Meta states the principle plainly: a video uses compute only the first time it is encoded, and roughly a third of its videos generate most of the watch time, so it applies costlier codecs and recipes to the most-watched videos.
A ranking procedure, in order:
- Pull viewing hours per title over a recent window, and rank titles by watch time.
- Discount each title’s watch time by the share of its sessions on devices that cannot decode HEVC, the same way Meta discounts VP9.
- Split the remaining hours by rung, using player telemetry. Top-heavy audiences save more: Ozer measured 27% against 16% for mobile, with payback at 3,215 viewing hours against 10,025.
- Build a separate HEVC ladder rather than copying the H.264 rungs. HEVC switches from 1080p to 720p at a lower bitrate (2,000 kbps against 3,600 kbps for H.264), so the ladders differ.
- Compare each title’s discounted, rung-weighted hours with the breakeven at your own delivery price, and re-encode only the titles above it.
- Put 4K and HDR tiers in the HEVC set, because the devices that play them expect HEVC.
Leave the long tail on H.264, and handle its storage line with lifecycle policy rather than a codec change.
The Open Questions Before You Commit
On bitrate, tuned x265 saved about a third at equal VMAF against a well-tuned x264, less on real delivery. Two inputs remain open, and you have to settle them for your own service. One is decoder reach, which varies by browser and which some laptop makers are reducing. The other is licensing on content distribution, which some operators still consider unresolved. If those two inputs come out badly, a royalty-free codec or plain ladder tuning may give you the egress saving with less risk.