The commented out code is shown below: video_decorder.cppĬodecSupported |= cudaVideoCodec_HEVC = _codec But the solution is not so elegant, so what is the elegant solution? This seems to be an insoluble contradiction at present.įor now, I’ve fixed the problem for the time being by comment out lines 81 in video_decoder.cpp and 132 through 137 in video_parser.cpp. However, in NVIDIA’s official instructions, Video_Codec_SDK_11 relies on CUDA11, but CUDA10.2 is used In JetPack 4.6. CudaVideoCodec_AV1 is defined in Video_Codec_SDK_11. There is no definition for cudaVideoCodec_AV1 in Opencv_contrib, nor in nV-codec-headers - SDK-10.0 or video_codec_sdk_10.0.26. I found this was probably a bug in opencv_contrib or in Video_Codec_SDK. The compilation environment and associated dependent libraries are shown below: I compiled opencv4.5.5 on jetson nano by following these steps. What is the reason for this? Please help me, thanks. Make: *** Error 1ĬMakeFiles/Makefile2:4873: recipe for target 'modules/cudacodec/CMakeFiles/opencv_cudacodec.dir/all' failed Modules/cudacodec/CMakeFiles/opencv_cudacodec.dir/build.make:805: recipe for target 'modules/cudacodec/CMakeFiles/opencv_cudacodec.dir/src/video_' failed opt/opencv/opencv-4.5.5/modules/core/include/opencv2/core/base.hpp:342:38: note: in definition of macro ‘CV_Assert’ ![]() opt/opencv/opencv_contrib-4.5.5/modules/cudacodec/src/cuvid_video_source.cpp:71:51: warning: comparison between ‘enum cv::cudacodec::Codec’ and ‘enum cudaVideoCodec_enum’ ĬV_Assert(Codec::NumCodecs = cudaVideoCodec::cudaVideoCodec_NumCodecs) opt/opencv/opencv_contrib-4.5.5/modules/cudacodec/src/cuvid_video_source.cpp: In constructor ‘cv::cudacodec::detail::CuvidVideoSource::CuvidVideoSource(const String&)’: In file included from /opt/opencv/opencv-4.5.5/modules/core/include/opencv2/core.hpp:53:0,įrom /opt/opencv/opencv-4.5.5/modules/core/include/opencv2/core/cuda.hpp:51,įrom /opt/opencv/opencv_contrib-4.5.5/modules/cudacodec/include/opencv2/cudacodec.hpp:51,įrom /opt/opencv/opencv_contrib-4.5.5/modules/cudacodec/src/precomp.hpp:54,įrom /opt/opencv/opencv_contrib-4.5.5/modules/cudacodec/src/cuvid_video_source.cpp:44: Building CXX object modules/cudacodec/CMakeFiles/opencv_cudacodec.dir/src/cuvid_video_ Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/ Building NVCC (Device) object modules/cudacodec/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_nv12_to_rgb.cu.o The following error occurred while making. D CUDA_nvcuvid_LIBRARY=/usr/local/cuda-10.2/lib64/libnvcuvid.so \ D CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.2 \ ![]() D OPENCV_EXTRA_MODULES_PATH=./opencv_contrib-4.5.5/modules \ The opencV cmake compilation options used are as follows: cmake -D WITH_CUDA=ON \
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |