Gstreamer RTSP Missing authentication protocol

Hello Experts,

I’m trying to use gstreamer for reading the RTSP streaming. I am facing an authentication plugin missing issue. Any Fix ?

Not Working:

gst-launch-1.0 rtspsrc location=rtspt://user:psw@192.168.1.2 ! decodebin ! nvvidconv ! video/x-raw, format=BGRx ! videoconvert ! xvimagsink

ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading.
Additional debug info:
gstrtspsrc.c(5829): gst_rtspsrc_setup_auth (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
No supported authentication protocol was found

Simple capture using CPU is Working but it consumes CPU load.

cv2.VideoCapture('rtsp://test:test@192.168.1.2:554')

Hi,
Looks like the URI is invalid. Please try

gst-launch-1.0 rtspsrc location=rtsp://test:test@192.168.1.2:554 ! fakesink

Hi @DaneLLL

Still, the pipeline doesn’t work as expected, and the same error.

gst-launch-1.0 rtspsrc location=rtsp://test:test@192.168.1.2:554 ! fakesink

But the following works

cv2.VideoCapture('rtsp://test:test@192.168.1.2:554')

Hi,
Maybe you need RTSP_ADDRESS like

location='rtsp://test:test@192.168.1.2:554'

Hey the plugin rtspsrc seems to have parameters ‘user-id’ and ‘user-pw’.
But how to stream and authenticate using uridecodebin.

The method proposed to add username and password in the stream uri DOES NOT seem to work.
location=‘rtsp://{USERNAME}:{PASSWORD}@192.168.1.2:554’

Please help, with the same.
Thank you :)

Hi,
You would need to check with the vendor. See if there is manual for using it. For certain IP cameras, the URI is like:

uri='rtsp://192.168.1.114:554/user=admin&password=&channel=1&stream=0.sdp?real_stream'