找了可能原因 : https://github.com/opencv/opencv/issues/10201 Hello, I've just walked through all the same issues and can share my experience. Here is how I've successfully compiled my project withcv::cudacodec::VideoReader My setup: Ubuntu16.04 OpenCV 3.4.1 CUDA 9.1 CMake 3.5.1 Copydy...
==9748== by 0x6B0F1BC: cv::cudacodec::detail::RawVideoSourceWrapper::readLoop(void*) (in /data/qfs/tools/opencv4.6.0/opencv4.6.0/lib/libopencv_cudacodec.so.4.6.0) ==9748== by 0x6B0822C: (anonymous namespace)::PThreadFunction(void*) (in /data/qfs/tools/opencv4.6.0/opencv4.6....
import cv2 vc = cv2.cudacodec.createVideoReader("subway-video.mp4") ###output: Traceback (most recent call last): File "main_grpc_video_cv.py", line 196, in vc = cv2.cudacodec.createVideoReader("subway-video.mp4") cv2.error: OpenCV(4.5.5) /wxj/opencv/opencv_contrib/modules/cudacod...
line 5, in <module> succeeded, gpu_frame = cap.nextFrame() ^^^ cv2.error: OpenCV(4.7.0-dev) D:\opencv230426\opencv_contrib-4.x\modules\cudacodec\src\video_reader.cpp:212: error: (-2:Unspecified error) Parsing/Decoding video source failed, check GPU memory is...
opencv / opencv_contrib Public Notifications Fork 5.7k Star 9.2k Code Issues 508 Pull requests 78 Actions Security Insights Commitcudacodec: update for the latest version of the Nvidia Video Codec SD… Browse files …K (12.2)
#include "opencv2/opencv_modules.hpp" #if defined(HAVE_OPENCV_CUDACODEC) #include <opencv2/core.hpp> #include <opencv2/cudacodec.hpp> #include <opencv2/highgui.hpp> int main(int argc, const char* argv[]) { const std::string fname = "rtsp://admin:admin@192.168.1.13/media/video2";...
Hi, I build opencv with cuda and BUILD_opencv_cudacodec, but when I use cv::cudacodec::createVideoReader I got an error terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.3.0) /opencv-4.3.0/modules/core/include/opencv2/core/private.cuda.hpp:115: error: ...
New issue Jump to bottom cudacodec::VideoReader: force output frame resolution to be display not coded size #3470 Merged asmorkalov merged 1 commit into opencv:4.x from cudawarped:cudacodec_fix_display_size Apr 17, 2023 +41 −4 ...
cv2.cudacodec.createVideoReader(url).next_frame() get opencv_contrib/modules/cudacodec/src/video_reader.cpp:128: error: (-210:Unsupported format or combination of formats) Unsupported video source in function 'nextFrame' but if the url is a video file ...
reader->set(cudacodec::ColorFormat::GRAY); ASSERT_TRUE(reader->nextFrame(frame)); const cudacodec::FormatInfo format = reader->format(); ASSERT_TRUE(format.displayArea == displayArea); ASSERT_TRUE(frame.size() == displayArea.size() && frame.size() == format.targetSz); ...