H.265 (HEVC) Encoding Explained: How the Encoder Works and What It Costs at Scale

How an H.265 encoder earns its bitrate saving, what the extra encode compute costs, and when HEVC lowers cost per stream for your content and devices.

H.265 (HEVC) Encoding Explained: How the Encoder Works and What It Costs at Scale
Written by TechnoLynx Published on 11 Jul 2026

An H.265 encoder uses more coding tools than H.264, and using them well needs much more encode-side processing. It tries larger and more flexible block partitions, more prediction modes and better motion prediction, and you pay for that search in encode compute. Whether HEVC then lowers your cost per stream depends on your catalogue and audience. In Jan Ozer’s tests of tuned x265 against tuned x264 at 1080p, bandwidth fell 16% to 27% and encoding cost rose about 7.5 times. In those tests x265 paid back its extra encoding cost only after enough viewing hours.

What’s Worth Understanding About an H.265 Encoder First?

The compute cost sits on the encode side. Google’s paper on video transcoding at scale calls encoding a computationally hard search problem that often takes many orders of magnitude longer than decoding. The encoder trades perceptual quality, bitrate and computation against each other. The same paper notes that newer coding specifications make that search space bigger, because they give the encoder more tools for expressing redundancy in fewer bits. HEVC follows the pattern. Its improvements need much more signal processing to compress video, but they change the computation needed to decompress it much less.

HEVC’s video transcoding cost and quality trade-offs come down to three terms. The encode farm pays once per hour of content encoded. The delivery network saves on every viewing hour. And each viewing device either decodes HEVC or needs another format. Every question about whether HEVC pays off breaks down into those three, and none of them can be read off a codec comparison chart.

How Does an H.265 Encoder Work, and What Does That Mean in Practice?

H.264 compares and codes blocks of up to 16×16 pixels. HEVC expands the areas used for pattern comparison and difference coding to sizes up to 64×64, and adds better variable-block-size segmentation, better intra prediction, better motion vector prediction and motion region merging, better motion compensation filtering, and an extra filtering step called sample-adaptive offset. The basic unit is the coding tree unit (CTU), which plays the role of the old macroblock. The CTU holds trees of luma and chroma values, and that structure lends itself to processing on multiple cores.

Large CTUs pay off most at high resolution. In PSNR tests with the HM-8.0 reference encoder, forcing 16×16 CTUs instead of 64×64 raised bitrate by 11.0% across all test sequences, and by 28.2% on the 2560×1600 sequences. The encoder has to decide how to partition each block. In the hardware encoder pipeline Google describes, motion estimation, sub-block partitioning and rate-distortion-based mode selection form the most memory-bandwidth-intensive stage. Partitioning uses a bounded recursive search, weighing smaller partitions’ overhead against lower error.

Encoding with x265: Presets Are the Cost Dial

x265 is an encoder that produces HEVC/H.265 streams. It supports the Main, Main 10 and Main 12 profiles at 8 or 10 bits per sample. It also supports the rate control modes x264 users know: constant QP, CRF, ABR and multi-pass. It has ten presets that trade encoding speed against compression efficiency. They run from ultrafast to placebo, and medium is the default. The x265 documentation says that slower presets test more encoding options and use more computation to get the best quality at a given bitrate, or the lowest bitrate at a given CRF quality.

Ozer’s 1080p measurements show how steep that curve is for x265:

x265 preset Share of veryslow’s VMAF score Encoding time relative to veryslow
medium (default) 97.7% 6%
slow 99.7% 15%
slower within 0.03 VMAF points 59%
veryslow 100% (reference) 100%

In Ozer’s ladder tests, moving from medium to slower added 2.16 VMAF points and 8.5 times the baseline encoding time, which made it the largest single step. Preset choice mattered more for x265 than for x264, where medium already reached 99.2% of veryslow’s score. Smaller settings add up too. A ten-second GOP added 0.46 VMAF points to the ladder, and two-pass encoding added 0.40. x265’s fast-first-pass option cut two-pass encoding time by 30% for a loss of 0.08 VMAF points.

The practical point is that “encode x265” is not a single cost. In Ozer’s tests the optimised configuration took 9.0 times as long to encode as default x265 settings, nearly all from the slower preset. Any HEVC cost estimate that doesn’t name the settings it assumes is not an estimate.

Where Does HEVC’s Bitrate Saving over H.264 Actually Come From?

The often-quoted “half the bitrate” is a design goal and a lab result. It is not a guarantee for production. HEVC was designed to halve bitrate at comparable quality compared with H.264 High Profile. In subjective testing, NTIA’s study by Catellier and Pinson found HEVC at half the bitrate performed as well as H.264 or better in three of four cases. An earlier subjective study by Ohm et al. measured an overall 49.3% bitrate reduction at equal quality.

The number changes with the measurement and the comparison. Measured by PSNR, the same body of reference-encoder work gave HEVC Main a 35.4% reduction against H.264 High Profile. In an EPFL study of content above HD resolution, HEVC averaged a 44.4% reduction by PSNR and 66.5% by subjective scores. Apple’s HLS authoring specification tells authors to cut HEVC bitrates by about 20% from its H.264 ladder values. Ozer’s production-style comparison found 16% to 27%.

These figures don’t contradict each other. Lab studies such as EPFL’s and an April 2013 comparison measured HEVC against the JM H.264 encoder. Ozer compared it against an x264 that had already been tuned, and tuning x264 alone saved about 27% over its own baseline. Run x265 at defaults against that tuned x264, and Ozer measured a difference of only -0.59%. Tuning x264 alone saved about as much as switching to default x265, so a well-tuned H.264 pipeline has already banked part of the expected saving.

In one JCT-VC comparison the average saving grew with resolution: 52% at 480p, 62% at 1080p and 64% at 4K UHD. At low bitrates the sources disagree. Garcia and Kalva, as cited in the NTIA paper, found H.264 and H.265 gave similar quality at very low bitrates. Ozer found x265 delivered much better quality than x264 on the lower ladder rungs. We put more weight on Ozer’s result for production ladders, because it uses current tuned encoders and VMAF, but either result could hold on your content.

Does Switching to HEVC Always Reduce Quality or Cost, or Is It Content- and Device-Mix Dependent?

It depends on both, and the dependence is large. In the NTIA study, mean opinion scores for 20 scenes all coded with HEVC at 4 Mbps spanned 38% of the subjective scale. When HEVC at 4 Mbps was compared per scene with H.264 at 8 Mbps, H.264 was statistically better on two scenes and HEVC on one. The same bitrate can give excellent quality on one kind of content and only fair quality on another.

The device mix matters too. Ozer’s framing is blunt. For 4K or HDR distribution HEVC is a must-have, because that is the format those TVs expect. For 1080p SDR, H.264 plays everywhere and HEVC has to earn its place. Where your audience sits on the ladder matters as well. A top-heavy audience saved 27% in bandwidth, while a mobile audience saved 16% but gained 4.3 VMAF points, because x265 is strongest on the lower rungs.

Codec choice is also not the only lever. In Ozer’s tests, simply raising the resolutions of a fixed ladder saved 23.1% for x264 and 25.8% for x265. Per-title encoding saved 27% to 29% against a traditional ladder. Ozer calls an efficient ladder the biggest optimisation available to an x265 user. Best-practice rules only make sense in context, and that context comes from profiling.

When Does Moving to HEVC Reduce Cost per Stream, and When Does Encode Compute Cancel the Savings?

Once a title’s accumulated bandwidth savings pass its extra encoding cost, HEVC reduces cost per stream. Below that point, x265’s encode bill is larger than what it saves. Ozer puts the break-even at about 3,200 viewing hours per hour of content for a top-heavy US/European audience, and around 10,000 for a mobile audience, before royalties.

TechnoLynx runs a profiling sprint that checks whether HEVC’s bitrate savings hold up against your encode-farm cost and your device decode mix, before you commit to a re-encode.

Worked Example: Rebuilding Ozer’s Break-Even

The assumptions are Ozer’s. Encoding runs on an AWS c7i.8xlarge at $1.428 per hour, tuned x264 costs about $3.99 per hour of content, and tuned x265 costs about $29.77. Bandwidth is priced at $0.02 per GB.

  1. Extra encode cost per hour of content: $29.77 − $3.99 = $25.78, a ratio of about 7.5.
  2. Bandwidth saved per viewing hour, top-heavy audience: $801,754 per 100 million viewing hours, about $0.0080 per viewing hour.
  3. Break-even, top-heavy: $25.78 ÷ $0.0080 ≈ 3,215 viewing hours, which matches Ozer’s figure.
  4. Bandwidth saved per viewing hour, mobile audience: $257,090 per 100 million viewing hours, about $0.0026 per viewing hour.
  5. Break-even, mobile: $25.78 ÷ $0.0026 ≈ 10,025 viewing hours.

The arithmetic shows what moves the answer. Cheaper bandwidth shrinks the saving per viewing hour and pushes break-even further out. Royalties go on top of the extra encode cost. Ozer’s point is that HEVC’s savings now have to cover implementation and royalties. Access Advance has announced a 25% rate adjustment for new licensees from 1 January 2026. The details belong with codec licensing compared across formats.

Popularity turns this into a per-title policy rather than a single yes or no. Google’s paper describes video popularity as a stretched power law. A small number of very popular titles make up most watch time and justify extra processing. The long tail is watched so rarely that minimising transcoding and storage cost makes sense for it. Ozer also notes that slow presets are only worth it for videos distributed around 5,000 times or more.

How Do Device Decode Support and Hardware Acceleration Affect Whether HEVC Is Worth Deploying?

The HEVC saving only applies to views on devices that can decode HEVC. AWS’s 2023 encoding guidance notes that HEVC compresses better than H.264 but that hardware-accelerated HEVC decoding is less widely deployed, so most delivery scenarios need more than one video format. Google’s paper explains why. Laptops and desktops keep up with new specifications through software decoders, but TVs and mobile devices use fixed-function hardware decoders for power efficiency and speed, and so stay on older specifications.

The saving has to be weighted by the share of views that can actually take HEVC. The fallback costs something on the device as well. On Android 12 and later, the system can transcode HEVC to AVC for apps that don’t support HEVC, and Android’s documentation says a one-minute HEVC file takes about 20 seconds to transcode on a Pixel 3.

On Apple devices, profile and packaging choices set compatibility. Apple’s HLS authoring specification requires fMP4 as the container for HEVC. It recommends that some HEVC variants stay at or below Main 10 Profile, Level 4.0, Main Tier for maximum compatibility, and caps every variant at Main 10, Level 5.1, High Tier. HEVC’s Main profile carries only 8-bit 4:2:0 colour. Main 10 decoders must also decode Main bitstreams.

Does HEVC Beat H.264 on Your Content and Your Viewers’ Screens?

A fair transcoding cost and quality benchmark holds quality fixed, splits results by device class and uses your own content. One headline percentage won’t do. The procedure we would follow:

  1. Choose content that spans your catalogue’s complexity. The NTIA results show that scene choice alone can swing quality across a large part of the scale.
  2. Tune both encoders before comparing them. Untuned x265 against tuned x264 showed almost no advantage in Ozer’s tests.
  3. Fix a quality target, not a bitrate. Ozer encoded each clip at the bitrate that gave VMAF 93 with x265’s slow preset, as a realistic top-rung level.
  4. Score with the VMAF model that matches the screen. Netflix’s default VMAF model predicts quality on a 1080p HDTV viewed at three screen heights. A separate 4K model assumes 1.5 screen heights, and the same distorted video scores higher on a phone than on a TV.
  5. Weight the result by where your viewers sit on the ladder. Top-heavy and mobile audiences gave very different savings and quality lifts in the same test.
  6. Don’t settle disputes with PSNR alone. On the same EPFL encodes, PSNR and subjective scores gave 44.4% and 66.5% reductions.

We go into the costing side of this in modelling transcoding cost against delivered VMAF, where the quality target becomes the fixed point the cost model is built around.

What Role Does GPU-Accelerated Encoding Play in Making HEVC Economical on a Transcoding Fleet?

GPU hardware encoders deliver high encoding speed at low power, at some cost in compression against software encoders. NVIDIA’s NVENC documentation describes NVENC as a hardware encoder independent of the CUDA cores. It performs end-to-end HEVC encoding at 8 or 10 bits, including motion estimation, mode decision and entropy coding. Some GPUs carry two or three NVENC engines, and the driver balances load across them. One practical point: on non-qualified GPUs, concurrent encode sessions are limited to 8 per system.

The cost is compression. A 2025 arXiv evaluation notes that hardware encoders omit or modify features such as B-frames, reference frame count and rate-distortion optimisation, so they usually lose to software encoders such as libx265 on rate-distortion performance. The same study found modern GPU encoders roughly match the medium-quality presets used for real-time encoding, though not the best slow presets. For real-time 1080p60, the slowest libx265 preset a high-end laptop CPU could sustain was the “faster” preset. Running the software encoders at their best real-time presets roughly doubled total system power compared with the hardware encoders. The study also found NVENC needed about 10% more bits than Intel QuickSync to reach the same quality.

The fleet economics depend on the workload. In AWS’s tests, a g4dn.xlarge GPU instance gave about 82% better price/performance than a c6i.4xlarge for x265 batch encoding. The CPU encoders still produced smaller files at similar perceived quality, which adds to delivery and storage cost.

That points to a split we would test rather than assume. GPU encoding suits live streams and the long tail, where speed and cost per encode matter most. Slow CPU x265 suits head titles, where every extra bit saved is multiplied across many views. Whether that split wins on unit cost for a given fleet is the question behind GPU vs CPU transcoding cost. How the fixed-function silicon itself works is covered in how a hardware HEVC encoder works.

Who Can Tell Us Whether HEVC Pays off for Our Catalogue?

TechnoLynx profiles the same terms this article works through: encode cost per title at your settings, decode coverage across your device classes, and net cost per stream once delivery savings and encode overhead are both counted. TechnoLynx’s engineering for media, broadcast and telecom covers the transcoding and GPU side of that work. The sprint is not a licensing review. Royalty exposure is a question for your legal and commercial teams. An in-house video engineering group with a measurement harness changes who runs the comparison. Even then, it is the per-title break-even, not the codec chart, that should decide.

FAQ

Is HEVC the Same Format as H.265?

HEVC stands for High Efficiency Video Coding, the compression format also published as H.265. x265 is one encoder that produces it.

Does Transcoding Use CPU or GPU?

It can use either. Software encoders such as x265 run on the CPU, while NVIDIA GPUs carry a dedicated NVENC hardware encoder that leaves the CPU and CUDA cores free for other work.

Why Is HEVC Not Free?

HEVC is a proprietary format covered by a number of patents, licensed through pools that include Via LA and Access Advance’s HEVC Advance, which covers more than 27,000 patents.