Unauthorized (401) error when trying to connect to DVR

I’m using the following:

• Jetson nano
• DeepStream 5.0.1
• JetPack 4.4
• Dahua DVR

I’m having the following error when I try to connect to a DVR:

ERROR from src_elem0: Unauthorized
Debug info: gstrtspsrc.c(6116): gst_rtspsrc_send (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstRTSPSrc:src_elem0:
Unauthorized (401)

The URI that I’m using is:


It works fine in VLC and with:

$ gst-launch-1.0 uridecodebin uri=rtsp://_ADDRESS_OF_IP_CAMERA_ ! nvoverlaysink

but get those logs when running the DeepStream IoT container: deepstream-l4t:5.0.1-20.09-iot

Any suggestion is appreciate,

Do you mean vlc and the gst-launch command work in container?

No, the VLC and gst-launch command outside the container; the VLC on my laptop and the gst-launch command on the jetson.

But It’s working now,
I’m not sure how, I think I changed something in the DVR settings to let other device connect.