Build and run gpu samples:videoreader and videowriter

If I want to use a video encoder in opencv 4.5, cmake looks for the library file nvcuvenc.lib, but after downloading video codec SDK 11.0, I find that the library file of the decoder is nvencodeapi.lib.There is also the header file nvEncodeAPI.h in the video codec sdk. When running the videoreader in opencv GPU samples, the header file NVEncodeAPI.h is required. Does the name difference prove that there is a version mismatch?If I change the file name in the video codec SDK to the name I want and copy it into the corresponding folder in CUDA

I am not sure I understand the question, but as far as I am aware the CUDA video encoder in OpenCv is not working.