Ch. 13 · Hardware Encoders

한국어日本語
7 min

What Is a Hardware Encoder? Handing Encoding to Dedicated Circuitry

A hardware encoder is a circuit inside a GPU, CPU, or SoC built just for encoding. It differs from a software encoder, which runs on CPU cores, right down to its structure.

Software encoders like x264, x265, and SVT-AV1 are programs that run on CPU cores. A hardware encoder, on the other hand, uses a circuit built into the chip for the sole purpose of encoding. It is the same "dedicated circuit (ASIC) vs. program on a CPU" split that Chapter 10, Lesson 4 drew for decoding, now applied to encoding.

Source frames ffmpeg / app Driver +encoder circuit H.264/HEVCstream The program only says "what to make"; the circuit does the actual compression math
The flow of hardware encoding: hand frames to the encoder circuit, get a bitstream back

What is "fixed"?

A hardware encoder is the hybrid codec pipeline from Chapter 3 (prediction → transform → quantization → entropy coding) set into silicon. The circuit handles only the codecs and profiles it was built for, and much of the encoder algorithm itself (which modes to search, and how deeply) is also decided by the chip and its driver. That is why you get fewer knobs to turn than with a software encoder.

Hardware encoderSoftware encoder
What runs itDedicated circuit in a GPU, CPU integrated graphics, or SoCA program running on CPU cores
Adjustable optionsLimited: presets, rate control, and little elseVery many parameters, as with x265
New codecs and improvementsA new chip generation or a driver updateA library update (all you need is a CPU)
Supported codecsVaries by chip generationInstall the codec library and you're set
Typical useScreen recording, streaming, real-time work, phone video captureHigh-efficiency encodes for distribution, quality-first work

"Typical use" is industry practice, not a rule.

It's inside the GPU, but it isn't a "graphics core"

The encoder in a GPU is generally known to be a separate block from the cores that do 3D rendering. That's why you hear that recording your screen while gaming costs less rendering performance. Exactly how much it affects performance varies by product and settings, so it can't be generalized.

Hardware encoderHardware encoder

A dedicated encoding circuit inside a GPU, CPU integrated graphics, or SoC. The codecs and profiles it supports are fixed when the chip is designed.

Fixed-functionFixed-function

A circuit hardwired to do one set job. You can't reprogram it to do something else.

Software encoderSoftware encoder

An encoding program that runs on the CPU (x264, x265, SVT-AV1, and so on). Flexible, but computationally heavy.

Check yourself

What is the fundamental reason hardware encoders have fewer options than software encoders?