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".

Hi!
I’m working on running yolo on Tx2 Dev kit. I have installed all of requirements for yolo, OpenCV, CUDA, Cudnn.
I’ve tested if the onboard camera’s working via gstreamer : gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! xvimagesink
It works properly.
Then, I tried to run yolo by your code ./darknet detector demo cfg/coco.data cfg/yolo.cfg yolo.weights “nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720,format=(string)I420, framerate=(fraction)30/1 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink”
The result is “Video-stream stopped!”
How could i track the issue?
Thanks

As said above, nvcamerasrc was for old L4T releases (I think up to R28.2.0).
For newer releases, replace with nvarguscamerasrc and use NV12 instead of I420 as received format into NVMM memory.
Also note that tiny-yolo may be faster on Nano.