I am also having this issue on debian sid. I have the nvenc codecs
available but it wants cuda version 12.1 when debian only supplies 12.0
$ ffmpeg -codecs | grep nvenc
DEV.L. av1 Alliance for Open Media AV1 (decoders:
libdav1d libaom-av1 av1 av1_cuvid av1_qsv) (encoders: libaom-av1
librav1e libsvtav1 av1_nvenc av1_qsv av1_vaapi)
DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
(decoders: h264 h264_v4l2m2m h264_qsv h264_cuvid) (encoders: libx264
libx264rgb h264_nvenc h264_omx h264_qsv h264_v4l2m2m h264_vaapi)
DEV.L. hevc H.265 / HEVC (High Efficiency Video
Coding) (decoders: hevc hevc_qsv hevc_v4l2m2m hevc_cuvid) (encoders:
libx265 hevc_nvenc hevc_qsv hevc_v4l2m2m hevc_vaapi)
$ ffmpeg -i example.webm -c:v h264_nvenc example.mp4
[h264_nvenc @ 0x5639a5107e80] Driver does not support the required nvenc
API version. Required: 12.1 Found: 12.0
[h264_nvenc @ 0x5639a5107e80] The minimum required Nvidia driver for
nvenc is (unknown) or newer
[vost#0:0/h264_nvenc @ 0x5639a510b900] Error while opening encoder -
maybe incorrect parameters such as bit_rate, rate, width or height.
Error while filtering: Function not implemented
[out#0/mp4 @ 0x5639a5098580] Nothing was written into output file,
because at least one of its streams received no packets.
$ nvidia-smi
Sat Jan 20 10:37:18 2024
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.147.05 Driver Version: 525.147.05 CUDA Version:
12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile
Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util
Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 On
| N/A |
| 0% 40C P5 20W / 170W | 10083MiB / 12288MiB | 16% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+