Cat not get the CSI camera working: erroneous pipeline: no element "nvcamerasrc"

After I have built the OpenCV-3.4.0 (have trouble to get OpenCV-4.0 to build) with my Jetson Nano, I try to test the CSI camera but I got following error while no view window shows.

Could somebody give me the suggestions how to solve the problem?

Thanks so much
Jimmy

WARNING: erroneous pipeline: no element “nvcamerasrc”

  1. Rspberry Pi Camera Module V2 - Supported by Jetson Nano

  2. gst_launch command to get the CSI camera on

gst-launch-1.0 nvcamerasrc ! ‘video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)60/1’ ! nvvidconv ! ‘video/x-raw(memory:NVMM), format=(string)I420’ ! nvoverlaysink -e

  1. Currently built the OpenCV-3.4-0 with following options

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_BUILD_TYPE=RELEASE -D WITH_CUDA=ON -D CUDA_ARCH_BIN=“5.3” -D CUDA_ARCH_PTX="" -D WITH_CUBLAS=ON -D ENABLE_FAST_MATH=ON -D ENABLE_NEON=ON -D WITH_LIBV4L=ON -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D OPENCV_EXTRA_MODULES_PATH=…/…/opencv_contrib-3.4.0/modules -D WITH_QT=ON -D WITH_OPENGL=OFF -D WITH_GSTREAMER=ON -D WITH_V4L=ON …

nvcamerasrc plugin is deprecated. Use nvarguscamerasrc instead, for example:

gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! xvimagesink
2 Likes

Thanks so much, Honey. It works now per your information.

what is the equivalent of the nvcamerasrc “auto-exposition=1 exposition-time=0.xxx” in nvarguscamerasrc?

I test your command & this message responded to me

WARNING: erroneous pipeline: no element "nvarguscamerasrc"

Whats happened and how could I resolve this problem?

Thanks in advance.

Hi. I could see videos by sdk mvviewer but I couldn’t see any input video using other tools such as cheese, vlc gucviewer ,… also by running your command I got this message:

ERROR: pipeline could not be constructed: no element "nvcamerasrc".