I am facing a problem with opencv to display a simple video from my usb cam using videoCapture.
I have built opencv 3.4.2 from source with the opencv contrib and by setting the cmake as below:
cmake -D WITH_CUDA=ON -D CUDA_ARCH_BIN="5.3" -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUBLAS=ON -D ENABLE_FAST_MATH=ON -D CUDA_FAST_MATH=ON -D ENABLE_NEON=ON -D WITH_GSTREAMER=ON -D WITH_LIBV4L=ON -D BUILD_opencv_python2=ON -D BUILD_opencv_python3=ON -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D WITH_QT=ON -D WITH_OPENGL=ON -D CUDA_ARCH_PTX="" -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.4.2/modules ..
here is my output when i run my program:
GStreamer-CRITICAL **: 12:14:29:538: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
here is the output of cv2.getBuildInformation() | grep -iP “v4l|ffmpeg”
FFMPEG YES libv4l/libv4l: 1.14.2 / 1.14.2 v4l/v4l2: linux/videodev2.h
Does someone have already experienced this error on jetson nano?
Thank you in advance