How to Split DeepStream Pipeline into Real-Time and Online (Delayed) Branches Without Backpressure

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) t4
• DeepStream Version 7.0
• JetPack Version (valid for Jetson only)
• TensorRT Version 7.0
• NVIDIA GPU Driver Version (valid for GPU only) 535
• Issue Type( questions, new requirements, bugs)
• 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
Hi everyone,

I’m working on a DeepStream application where I need to split a single pipeline into two processing paths:

  1. Real-time branch: This should process the input stream with minimal latency and no delays.

  2. Online branch: This can process the same stream with delay, slower processing, or even offline analytics.

I’ve tried using a tee element to branch the pipeline and added separate queue elements for both paths. However, I’ve noticed that if the online branch becomes slow or stalls (e.g., due to heavier models or processing), it causes back-pressure that affects the real-time branch as well — which I want to avoid.

Is there any proper or recommended way to handle this in DeepStream

Please separated your real-time and offline processings by separated pipelines if you don’t want them to impact each other. “tee” will not help you.

Can I achieve this by using two independent pipelines within a single pipeline object, ensuring they don’t link to each other? Will this approach help in this case, or might they still affect each other?

Do you mean to run two separated pipelines within one loop?

I mean i only have one Gst.Pipeline() in my code and want to add both the real-time and offline pipelines to it, but without linking them together. (They have different sources and different streammux and …)
Will this work, or could they still affect each other?"

Forget about it! this makes it double usage of everything even Gpu for inferencing!
Is there any way for this problem?
Because I want to add a sub-branch to my pipeline that performs tasks which can be done later, potentially taking up to a minute for each frame. How can I achieve this without affecting the main pipeline’s real-time processing?

No. The Gst.Pipeline () is one pipeline. You can’t do it.

No. It is hard to work. The one minutes frames buffering is very huge. E.G. If it is 1080p@30fps frames, the buffering should be larger than 1920x1080x1.5x30x60 bytes.

What did you multiply it by 1.5

Because the video decoder output NV12 format video. Suppose the video format is NV12, please refer to NV12 yuv pixel format. If you use RGBA format, you need to multiple 4.

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks