Using gstreamer on the jetson nano board, I display rtsp stream, My pipe on terminal is as follows:
gst-launch-1.0 rtspsrc location='rtsp://user:password...' sync=false latency=5 ! decodebin ! nvvidconv ! xvimagesink
And everything is fine.
I installed opencv from source and compiled it with cuda nad gstreamer capabilities, but when I run it in the following code snippet, the camera does not load:
cv::VideoCapture cap("rtspsrc location=rtsp://user:password... sync=false latency=5 ! decodebin ! nvvidconv ! xvimagesink",cv::CAP_GSTREAMER);
error is :
[WARN:0] global /home/kamiz/opencv/modules/videoio/src/cap_gstreamer.cpp (944)
open OpenCV | GStreamer warning: cannot find appsink in manual pipeline
[WARN:0] global /home/kamiz/opencv/modules/videoio/src/cap_gstreamer.cpp (597)
isPiplelinePlaying Opencv | GStreamer warning: pipeline have not been created
ERROR: unable to open camera
nvdc: start nvdcEventThread
nvdc: exit nvdcEventThread
This is while I display the usb camera in opencv with gstreamer without any problems. Thank you in advance for your help