cv::cudacodec::VideoWriter not working with only NVCUVID

Yes and my compilation is just done–after passing CUDA_nvidia-encode_LIBRARY as suggested, my program works as expected now.

One tiny question though, before I post this question, I was already using the “latest” commit of the 4.x branch, that was the latest commit a few days ago. In that version, I dont have

-- Found NVCUVID: /usr/lib/x86_64-linux-gnu/libnvcuvid.so
-- NVCUVENC: Library not found, WITH_NVCUVENC requires the Nvidia encoding shared library libnvidia-encode.so from the driver installation or the location of the stub library to be manually set with CUDA_nvidia-encode_LIBRARY i.e. CUDA_nvidia-encode_LIBRARY=/home/user/Video_Codec_SDK_X.X.X/Lib/linux/stubs/x86_64/libnvidia-encode.so
-- CUDA detected: 12.3
-- CUDA: NVCC target flags -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_89,code=sm_89;-gencode;arch=compute_90,code=sm_90;-D_FORCE_INLINES;-gencode;arch=compute_90,code=compute_90

yet.

After only a few days, somehow, this useful feature is added to the 4.x branch? Is this just a coincidence?..