NVIDIA NVDEC and NVENC video acceleration
How NVIDIA video decode and encode engines work and why support varies across GPUs and video profiles.
Two distinct engines
NVDEC decodes supported compressed video streams into frames; NVENC encodes frames into supported bitstreams. These are dedicated hardware accelerators, not the same operation as running a generic video codec on CUDA cores. Other GPU stages can handle format conversion, scaling, filtering or inference after decoding.
A hardware decoder does not normally improve the source image compared with a correctly implemented software decoder. The practical advantages are workload, latency and efficiency; rendering choices such as tone mapping may change the visible result separately.
Check the exact hardware
NVIDIA publishes a GPU encode/decode support matrix. Use the actual GPU model and look at decode and encode separately. Codec, profile, bit depth and chroma format determine whether a particular stream is eligible. H.264 and HEVC support in general does not imply support for every professional 4:2:2 or 4:4:4 stream. AV1 encoding is likewise model-specific.
Laptop and desktop systems may have an integrated GPU as well as NVIDIA hardware. The application may be using the other adapter. Verify the selected decoder and adapter before interpreting a utilisation graph.
Practical FFmpeg diagnostics
| Command | What it checks |
|---|---|
ffmpeg -hwaccels | Hardware interfaces present in the build, not actual device support |
ffmpeg -encoders | Available encoder names, such as h264_nvenc when built in |
ffprobe -show_streams input.mkv | Input stream properties |
A listed encoder can still fail at run time because of driver, device or profile restrictions. Start with a short representative input and verify the output stream. Do not assume that a decode option automatically makes the subsequent encoding stage use hardware.
Performance and quality
For transcoding, transferring frames repeatedly between CPU and GPU can reduce the acceleration benefit. A supported GPU-resident path can avoid some copies, but filters may require a different memory domain. NVENC settings and hardware generation affect compression efficiency; compare equal-bitrate samples and encoding time. Keep original files rather than replacing them automatically with a faster hardware encode.