FFmpeg provides a subsystem for hardware acceleration, which includes NVIDIA: https://trac.ffmpeg.org/wiki/HWAccelIntro
In order to enable support for GPU-assisted encoding with an NVIDIA GPU, you need:
- A ​supported GPU
- Supported drivers for your operating system
- The NVIDIA Codec SDK
- ffmpeg configured with
--enable-nvenc(default if the drivers are detected while configuring)