Jetson nx use opencv get rstp camera streaming problem

Hi everybody, I use opencv to get network camera rtsp video data .example

cv2.::VideoCapture(“rtsp://admin:123456@192.168.1.65/h264/ch1/main/av_stream”)

or

cv2.::VideoCapture(“rtsp://admin:123456@192.168.1.65/h264/ch1/main/av_stream”, cv::CAP_FFMPEG)

result all use video software decode

and find method :use cv::CAP_GSTREAMER
but in opencv can not use

cameraaddr = "uridecodebin uri=" + cameraaddr+"?action=streamq ! nvvidconv ! video/x-raw,"
                                                      "format=BGRx ! videoconvert ! video/x-raw,format=BGR ! appsink drop=1 ";
        capture.open(cameraaddr.toStdString(), cv::CAP_GSTREAMER);

please help!

Hi,
Please check if you can run this first:
Doesn't work nvv4l2decoder for decoding RTSP in gstreamer + opencv - #3 by DaneLLL

If it works, please apply the string to your code and give it a try.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.