Error with cuda::VideoWriter

asked 2017-06-28 03:26:50 -0500

Hi, friends.

Last week, I'm trying to use CUDA::VideoWriter function, so I use CMake to rebuild the opencv lib. I choose With_Cuda/With_OpenGL/With_TBB/With_CUBLAS/With_NVCUVID, and others are using the default config.

I'm successful build these files, and then add them to the qtCreator, then this error happend when I was trying to run the samples located at /sources/samples/gpu/video_writer. It says

Device 0:  "GeForce GTX 1070"  8192Mb, sm_61, Driver/Runtime ver.8.0/8.0
Read 1 frame
Frame Size : 960x540
Open CPU Writer
Open CUDA Writer
OpenCV Error: The function/feature is not implemented (The called functionality is disabled for current build or platform) in throw_no_cuda, file E:\ASE\opencv-3.2.0\modules\core\include\opencv2/core/private.cuda.hpp, line 101

I try to google this problems, I find its related to NVCUVID moudle, and I'm pretty sure that I have been choose that moudle during cmake.

My graphics card is GTX 1070, Win 10, VS2015, CMAKE 3.9.0-rc3. Bellow is the Cmake infomartion, because I cant upload .txt.

Thanks.

CMake Deprecation Warning at CMakeLists.txt:76 (cmake_policy):
  The OLD behavior for policy CMP0022 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:81 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


FP16: Compiler support is available
Found TBB: E:/ASE/tbb2017_20170604oss/lib/intel64/vc14/tbb.lib
found IPP (ICV version): 9.0.1 [9.0.1]
at: E:/ASE/opencv-3.2-cuda/3rdparty/ippicv/ippicv_win
CUDA detected: 8.0
CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-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;-D_FORCE_INLINES
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.6")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.4")
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "3.2")
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
VTK is not found ...
(more)
edit retag flag offensive close merge delete

Comments

I try to rebuild opencv with cmake3.1, this error still heppend

scobbing gravatar imagescobbing ( 2017-06-30 01:13:59 -0500 )edit

Hi, did you perhaps find a solution?

Alocin gravatar imageAlocin ( 2018-06-02 05:36:31 -0500 )edit

any updates on this issue? same here with OpenCV 3.4.1 (WITH_NVCUVID=ON). cuda::VideoReader works fine, but cuda::VideoWriter throws the same exception

nazikus gravatar imagenazikus ( 2018-07-09 03:06:47 -0500 )edit