Installing FFmpeg on Nvidia CUDA container
This documentation describes to install FFmpeg
on nvidia/cuda
container to use the Nvidia GPU to accelerate encoding.
If you want to know how to install FFmpeg with NVIDIA GPU on Linux, go to see that.
FFmpeg can support hardware-based decoding and encoding for Nvidia GPU card. With the help of Nvidia GPU, h264_nvenc
can lead encoding speed with 5x faster than libx264
in GTX1080 card.
Let's see how to install everything one by one on the Nvidia CUDA Docker container nvidia/cuda:12.2.0-devel-ubuntu20.04
, in which CUDA toolkit and GPU driver are already included.