Jetson nano camera streaming with rstp problem

Hello,

I try to get an rstp stream :camera= jetson.utils.videoSource(“rstp://192.168.2.102/webcam/?action=streamq”)
And i got :[video] videoSource – unsupported protocol (rstp)

When i use cv2 all work fine :cam= cv2.VideoCapture(“http://192.168.2.102/webcam/?action=streamq”)

The Stream i from a raspberry pi with pi cam 1.3 640x480 mjpeg

Might just be a typo: rstp → rtsp
Also note that in your opencv capture you are not connecting to rtsp server but http server.

Thanks work better with good typo :p )
and my stream is http not rstp i think i need to use cv2 instead of jetson.utils.videoSource ?

If jetson-utils cannot handle http server, yes it may be easier to run from opencv, but your current capture uses FFMPEG backend for decoding. If the ffmpeg version that opencv uses doesn’t have HW acceleration, it may be better to use a gstreamer pipeline such as:

cv2.VideoCapture("uridecodebin uri=http://192.168.2.102/webcam/?action=streamq ! nvvidconv ! video/x-raw,format=BGRx ! videoconvert ! video/x-raw,format=BGR ! appsink drop=1 ", cv2.CAP_GSTREAMER)

Thanks i will do that ))