Dahua camera rtsp Streaming over KVS Webrtc SDK

Hi NVIDIA Team,

I am using a Jetson Orin with the Amazon KVS WebRTC SDK (C) and GStreamer to stream from a Dahua IP camera. I am facing an issue where the stream does not work when the RTSP URL contains query parameters with an ampersand (&).Other cameras without ‘&’ in their RTSP URLs (Hikvision /Streaming/Channels/1) stream successfully on the same setup

Dahua RTSP URL format:
rtsp://admin:admin@192.168.xx.xx:554/cam/realmonitor?channel=1&subtype=1

kvsWebrtcClientMasterGstSample.c

GStreamer pipeline being used:

case RTSP_SOURCE:
uridecodebin source::latency=0 uri=“<RTSP_URL>” ! nvvidconv ! video/x-raw(memory:NVMM),format=I420,width=1280,height=720 ! nvvidconv ! x264enc bitrate=512 key-int-max=10 insert-vui=1 tune=zerolatency pass=17 qos=true ! video/x-h264,stream-format=byte-stream,alignment=au,profile=baseline ! queue ! appsink sync=1 emit-signals=1 name=appsink-video

System info:

  • Platform: Jetson Orin nano
  • GStreamer version: 1.20.3
  • SDK: amazon-kinesis-video-streams-webrtc-sdk-c

Hello @parthm,

Can you please test launching the sample with the Dahua RTSP URL quoted using plain ASCII quotes, "<RTSP_URL>", instead of smart quotes, “<RTSP_URL>”? Since the URL contains &, which is a special character in shells, the sample may receive an incomplete URL if it is not quoted. Quoting the URI also helps when it is inserted into a gst_parse_launch() pipeline string.

Felipe Solano
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com