-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cudacodec
: VideoWriter
fails to compile with Nvidia Video Codec SDK 12.2
#3711
Comments
Just FYI, maybe useful. According to the latest ncEncodeAPI.h the parameter pixelBitDepthMinus8 has been replaced with two new ones: `NV_ENC_BIT_DEPTH outputBitDepth; /**< [in]: Specifies pixel bit depth of encoded video. Should be set to NV_ENC_BIT_DEPTH_8 for 8 bit, NV_ENC_BIT_DEPTH_10 for 10 bit. NV_ENC_BIT_DEPTH inputBitDepth; /**< [in]: Specifies pixel bit depth of video input. Should be set to NV_ENC_BIT_DEPTH_8 for 8 bit input, NV_ENC_BIT_DEPTH_10 for 10 bit input.*/` I've modified NvEncoder.cpp: Line 119:
Line 177 to:
This seems fixed the issue. However, I'm not sure about the inputBitDepth parameter. I'm not even sure what meaning this parameter has for the encoder. |
…c_sdk_12_2 cudacodec: fix #3711 (update for Nvidia Video Codec SDK 12.2)
…rsion_checks cudacodec: fix VideoWriter version check bug introduced in #3711
Nvidia has changed the nvEncodeAPI.h interface in the new Video Codec SDK 12.2 replacing
with
resulting in the following compilation errors when building
opencv_cudacodec
System information (version)
Steps to reproduce
Build
opencv_cudacodec
against Nvidia Video Codec SDK 12.2Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found any solution
The text was updated successfully, but these errors were encountered: