GPU Encoding vs CPU Encoding: Speed, Quality and When to Use Each
Why a graphics card encodes video many times faster than a processor, why the processor still wins on file size, and which to use for which job.
3 min readBy Daniel
Reviewed by the AmazingRDP technical team

Need a hardware encoder in the datacentre? See our GPU dedicated servers. See GPU Dedicated Servers from $109.99
Video can be encoded in two ways: by a program running on the processor (software encoding), or by a special circuit in a graphics chip (hardware encoding). The first gives the smallest files, the second gives speed. Knowing why tells you which to use.
How each works
CPU encoding uses programs such as x264, x265 and SVT-AV1. They are ordinary software, so they can spend as much effort as you allow on finding the best way to compress every frame. Slower presets search longer and produce smaller files.
GPU encoding does not use the graphics card's general computing power, as is often said. It uses a fixed encoder circuit built into the chip: NVENC on NVIDIA cards, Quick Sync on Intel graphics, AMF on AMD, VideoToolbox on Apple hardware. The circuit does one job, in a fixed way, very fast, and it barely touches the processor.
Compared
| CPU (software) | GPU (hardware) | |
|---|---|---|
| Speed | From slower than real time to a few times real time | Many times real time |
| File size at the same quality | Smallest, with slow presets | Somewhat larger |
| Load on the processor | All cores at 100% | Low |
| Fine control | Very many settings | Few |
| Several jobs at once | They share the cores and slow each other | Several streams side by side, up to the card's limit |
| Needs | Many fast cores | A card or chip with an encoder for the codec you want |
How large the quality gap is depends on the card's generation and the bitrate. With current hardware encoders at generous bitrates, most viewers see no difference; at low bitrates, a slow software encode still looks better.
When to use which
- Live streaming: GPU. The encode must keep up in real time, and the processor stays free for the game or the scene.
- Files for an archive or for wide distribution, where every megabyte is stored or sent many times: CPU, with a slow preset.
- A large batch that must be done by tomorrow: GPU.
- Quick previews and drafts: GPU.
- The newest codec on older hardware: CPU. Hardware encoders exist only for the codecs their chip was built for; AV1 encoding, for example, needs a recent card.
Not every card can encode
A graphics card is not automatically an encoder. Entry models such as NVIDIA's GT 710 have no NVENC at all, and older cards support H.264 only. Before you buy or rent, look the card up in the maker's encoder support table, and check what your system offers:
ffmpeg -hide_banner -encoders | findstr nvenc
nvidia-smi
On Linux, use grep in place of findstr. More in how to check GPU information in Linux.
The same encode both ways
ffmpeg -i input.mp4 -c:v libx264 -preset slow -crf 20 -c:a copy cpu.mp4
ffmpeg -i input.mp4 -c:v h264_nvenc -preset p5 -rc vbr -cq 23 -b:v 0 -c:a copy gpu.mp4
The first line is a careful software encode; the second uses NVENC. The quality numbers (-crf and -cq) are not on the same scale, so compare the results by eye and by file size, not by the number. To let the card decode the source as well, add -hwaccel cuda before -i. For more FFmpeg, see installing and using FFmpeg in Python.
In OBS and HandBrake
Both offer the choice in one menu. In OBS it is Settings, Output, Video Encoder; in HandBrake it is the Video tab's encoder list, where hardware encoders appear only if the system has them.
On a server
Our Encoding RDP plans encode on the processor: see the Encoding RDP guide. For a hardware encoder you need a machine with a suitable card, such as our GPU dedicated servers; the plans differ in their cards, so compare the card with the encoder table first. Related: GTX 1080 GPU dedicated servers and 4K streaming to YouTube with OBS.
Questions
Is GPU encoding faster than CPU encoding?
Yes, usually many times faster, because it uses a dedicated encoder circuit in the graphics chip.
Is CPU encoding better quality than GPU encoding?
At the same file size a slow software encode looks better, most clearly at low bitrates. At generous bitrates the difference is hard to see.
Should I use GPU or CPU encoding for streaming?
GPU encoding, if your card has an encoder. It keeps up in real time and leaves the processor free.
Do all graphics cards support hardware encoding?
No. Some entry cards have no encoder, and older ones support fewer codecs. Check the maker's support table.