Unauthorized (401) error when trying to connect to DVR

Hi,
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:

rtsp://admin:password@192.168.1.6:554/cam/realmonitor?channel=1/subtype=0

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,
Thanks

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.

Thanks.