New Streammux removing and adding same channel, doesnt work

This is my configuration, I am using USE_NEW_NVSTREAMMUX=yes
• DeepStream Version : deepstream-6.3

• JetPack Version (valid for Jetson only)

• TensorRT Version: 8.6.1.

• NVIDIA GPU Driver Version (valid for GPU only) : Driver Version: 535.86.10 CUDA Version: 12.2

• Issue Type( questions, new requirements, bugs): questions

• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

deepstream_rt_src_add_del.py with slight changes.

I am using newstreammux in the runtime_source_add_delete example. I want to add and remove the channels, to simulate the recovery of channels, like rtsp drops/ EOS. Also I am forced to use the new streammux, because it helps to keep the order of frames within batch.
But in the newstreammux, I am facing issues, like frozen output screen, hanged channels, and [ERROR push 353] push failed [-5].
I am attaching deepstream_rt_src_add_del.py. Here the small changes I made on the deepstream_rt_src_add_del is to simulate the adding and removing the same src_{id} and sink_{id} which is happening in the original code. Essentially after addition of 3rd channel, system should remove existing channel and replace them with new bins. But I am having difficulties in achieving that. Please advice on how to fix the issue.
deepstream_rt_src_add_del.zip (5.2 KB)

1 Like

Checked the same code with Deepstream 7 as well, it doesnt work. Please help.

Please make sure you have set the new nvstreammux parameters correctly. DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums

These are the values I use

[property]

algorithm-type=1

batch-size=2

max-fps-control=1

overall-max-fps-n=30

overall-max-fps-d=1

overall-min-fps-n=25

overall-min-fps-d=1

max-same-source-frames=1