ffmpeg
is no longer able to use your NVidia's card for hardware decode/encode after an OS or software upgrade, ensure your running X11/NV driver and the CUDA libraries are compatible otherwise you will get cryptic error messages:
$ ffmpeg -y -hwaccel cuda -hwaccel_output_format cuda \
-c:v h264_cuvid -i 201231-163836.mkv \
-c:a copy \
-vf scale_npp=-1:720 \
-rc vbr_hq -c:v h264_nvenc \
-b:v 3M -minrate 500k -maxrate 12M \
output.mp4
...
failed call to cuInit: CUDA_ERROR_UNKNOWN: unknown error
Unable to create device
No device available for decoder: device type cuda needed for codec h264