DeepStream config file - Adding RTSP sources

I have 3 additional IP cameras running over RTSP that I’d like to add to a generic DeepStream sdk config file for use on a jetson nano, then eventually with 20 streams on a xavier NX. On the nano sample config file here, there is one group/section for source 0

source8_1080p_dec_infer-resnet_tracker_tiled_display_fp16_nano.txt

The first “source 0” in the config lets me add a URI: link

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_1080p_h264.mp4
num-sources=2
gpu-id=0
nvbuf-memory-type=0

But how and where do I add the additional stream sources in the config file?

Thanks!

Hello @jake.manning ,

The type should be 4 for rtsp sources. You can find further information in below link.

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_ref_app_deepstream.html

Regards.

1 Like

Hi,
Thank ozguryildiz for providing quick information.

For 20 independent sources, the config file should be like:

[tiled-display]
rows=4
columns=5
...
[source0]
...
num-sources=1
[source1]
...
num-sources=1
[source2]
...
num-sources=1

(...skip source3 ~ source17)

[source18]
...
num-sources=1
[source19]
...
num-sources=1

[streammux]
live-source=1
batch-size=20

[primary-gie]
batch-size=20

The 30-source config file can be reference:

/opt/nvidia/deepstream/deepstream-5.1/samples/configs/deepstream-app/source30_1080p_dec_infer-resnet_tiled_display_int8.txt
1 Like

Hi all, thanks for the quick turnaround and helpful tips! From what I gather, it’s a simple as copy/paste source groups into the script. All I did was increase the source num (0,1,2,3) and added the URI link to each group.

Works!!!

However, there is a noticeable lag time of approx 15sec. 3 x Hikvision IP cams are set to 25fps @ 1080p

  1. Is this a normal buffer time?
  2. Can the jetson nano and Xavier be clocked?
  3. How can we change the algorithm/plugin from resnet10.caffemodel to peoplenet?

Last question and I’m sorry to be so needy but I’m not sure where else to ask these questions :)

The GPU usage is no longer visible in my jetson system monitor… Is that normal?

Excellent, thank you. Are use this as a reference link from now on

Currently using deepstream 5.0

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.