How to structure pipeline to be able to record individual feeds

Currently my pipeline is set up as follows:

Currently, when an object is detected a recording is started that records the output of the tiler. I would like to be able to only record the feed that the event occurred in as opposed to the output from the tiler (all the feeds), while still sending the output of the tiler to the rtsp server. However, due to being new to Deepstream, I am not sure where to put the recording tee an whether or not I will need a demuxer. Any assistance would be greatly appreciated.

• Jeston Xavier
• DeepStream 5.1
• JetPack 4.5.1 GA

Sorry for the late response, we will do the investigation soon.

Are you using smart recording in deepstream?

Hello, yes, I am using NvDs Smart Record.

With deepstream-app sample, the smart recoding bin is put after rtsp source. Smart recording can record some previous video before you trigger NvDsSRStart(). So you can put your smart recording bin to similar place.