Something wrong the rstp stream deepstream analysis

deepstream-app version 6.2.0
DeepStreamSDK 6.2.0
CUDA Driver Version: 11.4
CUDA Runtime Version: 11.4
TensorRT Version: 8.4
cuDNN Version: 8.4
libNVWarp360 Version: 2.0.1d3

deepstream was used for multi-channel rtsp stream analysis and two-stage inference was carried out. In the first stage, mutli-classes object detection inference was carried out, and in the second stage, features were extracted from the detected “person” class. If the second stage inference is disabled, 30 rtsp streams run normally. If the second stage inference is enabled, an exception occurs when only 15 rtsp streams run. The program prompts “No data from source 0 since last 5 sec. Trying reconnection”, And the analysis is blocked.using “jtop” comand to see the resource status, found that GPU/CPU/NVDEC are not working. And there is no frame statistics for the perf_cb () function.

the deepstream_config like this:
[application]
enable-perf-measurement = 1
perf-measurement-interval-sec = 5

[tiled-display]
enable = 0
rows = 1
columns = 1
width = 1280
height = 720
gpu-id = 0
nvbuf-memory-type = 0

[streammux]
gpu-id = 0
live-source = 1
batch-size = 16
batched-push-timeout = 40000
width = 1280
height = 720

#width=640
#height=360
enable-padding = 0
nvbuf-memory-type = 0

[primary-gie]
enable = 1
gpu-id = 0
gie-unique-id = 1
nvbuf-memory-type = 0
config-file = config_infer_primary_yoloV8_9c.txt

[tracker]
enable = 1

For NvDCF and DeepSORT tracker, tracker-width and tracker-height must be a multiple of 32, respectively

tracker-width = 1280
tracker-height = 720
ll-lib-file = /opt/nvidia/deepstream/deepstream-6.2/lib/libnvds_nvmultiobjecttracker.so

ll-config-file required to set different tracker types

ll-config-file = config_tracker_IOU.yml

ll-config-file=config_tracker_NvDCF_perf.yml

ll-config-file=config_tracker_NvDCF_accuracy.yml

ll-config-file=config_tracker_DeepSORT.yml

gpu-id = 0
enable-batch-process = 1
enable-past-frame = 1
display-tracking-id = 1
compute-hw = 2

[secondary-gie0]
enable = 0
onnx-file = sleep.onnx
model-engine-file = sleep.onnx_b1_dla0_fp16.engine
gpu-id = 0
batch-size = 1

#interval=4
gie-unique-id = 2
operate-on-gie-id = 1
operate-on-class-ids = 0
config-file = config_infer_secondary_sleep.txt

[secondary-gie1]
enable = 1
onnx-file = reid256.onnx
model-engine-file = reid256.onnx_b1_gpu0_fp16.engine
gpu-id = 0
batch-size = 1

#output-tensor-meta=1
#interval=4
gie-unique-id = 3
operate-on-gie-id = 1
operate-on-class-ids = 0
config-file = config_infer_secondary_reid.txt

[img-save]
enable = 1
gpu-id = 0
output-folder-path = ./output
save-img-cropped-obj = 0
save-img-full-frame = 1
frame-to-skip-rules-path = capture_time_rules.csv
second-to-skip-interval = 600
min-confidence = 0.3
max-confidence = 1.0
min-box-width = 5
min-box-height = 5

[tests]
file-loop = 0

[source0]
enable = 1
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c1.mp4
num-sources = 1
gpu-id = 0
drop-frame-interval = 2
cudadec-memtype = 0
camera-id = 8
latency = 100
rtsp-reconnect-interval-sec = 5
rtsp-reconnect-attempts = 3
select-rtp-protocol = 4
camera-width = 1280
camera-height = 720
video-format = RGBA

[sink0]
enable = 1
type = 1
sync = 0
gpu-id = 0
nvbuf-memory-type = 0
source-id = 0

[source1]
camera-height = 720
camera-id = 9
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c2.mp4
video-format = RGBA

[sink1]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 1

[source2]
camera-height = 720
camera-id = 10
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c3.mp4
video-format = RGBA

[sink2]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 2

[source3]
camera-height = 720
camera-id = 11
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c4.mp4
video-format = RGBA

[sink3]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 3

[source4]
camera-height = 720
camera-id = 12
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c5.mp4
video-format = RGBA

[sink4]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 4

[source5]
camera-height = 720
camera-id = 13
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c6.mp4
video-format = RGBA

[sink5]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 5

[source6]
camera-height = 720
camera-id = 14
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c7.mp4
video-format = RGBA

[sink6]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 6

[source7]
camera-height = 720
camera-id = 15
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c8.mp4
video-format = RGBA

[sink7]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 7

[source8]
camera-height = 720
camera-id = 18
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c9.mp4
video-format = RGBA

[sink8]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 8

[source9]
camera-height = 720
camera-id = 19
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c10.mp4
video-format = RGBA

[sink9]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 9

[source10]
camera-height = 720
camera-id = 20
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c11.mp4
video-format = RGBA

[sink10]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 10

[source11]
camera-height = 720
camera-id = 21
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c12.mp4
video-format = RGBA

[sink11]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 11

[source12]
camera-height = 720
camera-id = 22
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c13.mp4
video-format = RGBA

[sink12]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 12

[source13]
camera-height = 720
camera-id = 23
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c14.mp4
video-format = RGBA

[sink13]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 13

[source14]
camera-height = 720
camera-id = 24
camera-width = 1280
cudadec-memtype = 0
drop-frame-interval = 2
enable = 1
gpu-id = 0
latency = 100
num-sources = 1
rtsp-reconnect-attempts = 3
rtsp-reconnect-interval-sec = 5
select-rtp-protocol = 4
type = 4
uri = rtsp://192.168.1.47:8554/stream/work_c15.mp4
video-format = RGBA

[sink14]
enable = 1
gpu-id = 0
nvbuf-memory-type = 0
sync = 0
type = 1
source-id = 14

The source 0 rtsp stream is normal, and the source is played normally with VLC player.

After running these five RTSP streams:
rtsp://192.168.1.47:8554/stream/work_c11.mp4
rtsp://192.168.1.47:8554/stream/work_c12.mp4
rtsp://192.168.1.47:8554/stream/work_c13.mp4
rtsp://192.168.1.47:8554/stream/work_c14.mp4
rtsp://192.168.1.47:8554/stream/work_c15.mp4

the debug log with a level of 4 is as follows
debug4.log (4.6 MB)
,and it looks like it’s stuck on the ‘rtpjitterbuffer’ component.