I\'ve been trying to get CUDA working on Ubuntu 20.04 for a while now.
ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -i input.mp4 -c:a copy -c:v h264_nvenc -