How to save image from multi source after decode with nvdec in deepstream-app?Or where to add probe?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Jetson Xavier NX
• DeepStream Version
5.0
• JetPack Version (valid for Jetson only)
4.4
• TensorRT Version
7.1.3
• NVIDIA GPU Driver Version (valid for GPU only)
CUDA10.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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

For multiple sources, if you just want to save the decoded frames, you can add tee after decoder and save the decoded frames through filesink (and image encoder if you want compressed format).

Thanks for your reply.
I have another question, Is there any examples about how to use streamdemux in deepstream-5.0 or others?

There are sample pipelines in the document. Gst-nvstreamdemux — DeepStream 6.1.1 Release documentation

Yes.I found and test.Except commandline ,is there c/c++ codes?

Please make sure you are familiar with gstreamer basic knowledge and coding skills before you start with deepstream. GStreamer: open source multimedia framework

ok.Thank you.