Deepstream 5.1 SDK Segmentation fault (core dumped) with add-del + rtsp-out

• DeepStream Version = 5.1
• NVIDIA GPU Driver Version - CUDA = 11.1

I am using the following add_del_multisources with 4 rtsp sources and have set streamdemux to sink 4 individual rtsp-out servers.

This custom pipeline:

This used to working in docker = 5.1-21.02-devel but now I get an error:

Please suggest any solutions!

What do you mean? Do you mean c/c++ sample works but python sample failed?

I’m running c/c++ compiler based on c/c++ samples add_del_sources. I’ve customized it.

Do you think the failure is caused by deepstream by not what you changed?

I run successful without streamdemux but not with added streamdemux .

There is nvstreammux in the sample. Please check your code to find out what is the difference and why the error happens.

Yes, I did.
Can you check my pipeline?
deepstream_muxe.c (5.3 KB)

I solved the error "Segmentation fault (core dumped). But I’m now facing to unable read rtsp-out server. In this pipeline, I enter source_id and uri value from keyboard.

main-pipeline:
streammux → nvvidconv → nvosd → streamdemux → udpsink_bin

udpsink-bin:
queue → nvvidconv → cap-filter(“video/x-raw, format=I420”) —> encoder(nvv4l2h264enc) → rtppay → sink (“udpsink”)

This my code
deepstream_custom_add_del_2.c (18.5 KB)

While processing add_del

Please suggest any solution!