I have an issue where I need your help to understand the root cause of the issue.
I am trying to write h264 Video using openCV and Cuda.
Setup :
Stanard PC with Debian 12
4060TI GPU
Cuda 12.6
Nvidia driver 550.135
Nvida-smi show gpu and driver correctly.
ffpeg show following:
Hardware acceleration methods:
vdpau
cuda
vaapi
qsv
drm
opencl
vulkan
my c++ app can be built against opencv 4.10 that I built with cuda support.
If I execute the application, I get the following error:
OpenCV: FFMPEG: tag 0x31637661/‘avc1’ is not supported with codec id 27 and format ‘h264 / raw H.264 video’
Error: OpenCV(4.11.0-pre) /wp/opencvGpu/opencv_contrib/modules/cudacodec/src/video_writer.cpp:266: error: (-217:Gpu API call) in function ‘Init’
Error initializing Nvidia Encoder. Refer to Nvidia’s GPU Support Matrix to confirm your GPU supports hardware encoding, codec and surface format and check the encoder documentation to verify your choice of encoding paramaters are supported.OpenCV(4.11.0-pre) /xx/opencvGpu/opencv_contrib/modules/cudacodec/src/NvEncoder.cpp:46: error: (-217:Gpu API call) NVENC returned error [Code = 3] in function ‘LoadNvEncApi’
do you have any idea on this issue?