Ch. 10 · In Practice

한국어日本語
6 min

Hardware vs. Software Video Decoding: Why New Codecs Take Years to Arrive

Hardware decoders are fast and power-efficient but frozen at chip design; software decoders are flexible but costly. Why that delays new codecs by years.

In Chapter 1 you learned that "the standard specifies the decoding process exactly." Because of that, a decoder must always produce the same output, however it is implemented. Implementations nonetheless fall into two broad camps.

Hardware decoderSoftware decoder
ImplementationDedicated circuit (ASIC) inside the SoCA program running on the CPU
Power consumptionVery lowHigh (drains the battery)
Speed / heatReal-time 4K/8K with room to spareHeavy CPU load and heat at high resolutions
FlexibilityFixed to the codecs/profiles available at launchNew codecs and bug fixes arrive through software updates
ExamplesSmartphone SoCs, smart TVs, GPU-integrated enginesdav1d (Ch. 7), ffmpeg software decoders
Why a new codec has no hardware support for a while

The hardware decoder circuit in an SoC is already frozen at the chip design stage. No matter how good VVC or AV2 from Chapter 8 is, the billions of devices already sold cannot have their circuits changed. Hardware support for a new codec starts with the next generation of chips, and it usually takes 3-5 years to spread across the market. That is one reason AV1 spread more slowly than expected, as you saw in Chapter 7.

To see whether the browser and device you are using decode H.264, HEVC, AV1, and VP9 in hardware, try the codec support checker.

Time (after codec standardization) → Device adoption → Software decoding only Hardware adoption takes off Standard finalized
A typical hardware adoption curve for a new codec
In the field: how services cope

That is why services bridge the gap with the multi-codec delivery you learned about earlier: they send AV1 to the newest devices (hardware AV1), and HEVC or H.264 to older devices (software decoding only, or where battery matters). Encoding itself can also be hardware-accelerated (NVENC, Quick Sync, and so on). It is fast, but its quality and compression efficiency are generally lower than software encoders (x264/x265/SVT-AV1), so it is an option for cases like live broadcast where speed is paramount (vendor-by-vendor hardware encoders and how they differ from software are covered in Chapter 13).

Hardware decoder (ASIC)Hardware decoder (ASIC)

A dedicated circuit built into the chip. Low power and fast, but not flexible.

Software decoderSoftware decoder

A decoding program that runs on the CPU. Flexible, but costs power and heat.

Hardware-accelerated encodingHardware-accelerated encoding

Encoding on dedicated circuits such as NVENC or Quick Sync. Fast, but often at some cost in quality.

Check yourself

Why does it take years for hardware decoders to become widespread after a new video codec standard is finalized?