Saving individual sources to individual .mp4 video file

I am playing around DeepStream SDK. I have compiled and run the deepstream-app successfully on Xavier with

source30_1080p_dec_infer-resnet_tiled_display_int8.txt

. When I wanted to sink the individual video sources to .mp4 file, I have modified the config to

[sink1]
enable=1
type=3
#1=mp4 2=mkv
container=1
#1=h264 2=h265
codec=1
sync=0
#iframeinterval=10
bitrate=2000000
output-file=sink_1.mp4
source-id=0

But the output video shows the Tiled Screen split video instead of individual source videos. How can I use this sink as one individual source video set by the ‘source-id’ ?

Hi,
Please refer to
https://devtalk.nvidia.com/default/topic/1065137/deepstream-sdk/pipeline-to-send-multiple-sources-to-multiple-sinks-/post/5393858/#5393858
https://devtalk.nvidia.com/default/topic/1065536/deepstream-sdk/how-to-save-output-videos-deepstream-app-to-individual-files-and-what-is-need-to-change-in-congif-f-/post/5396000/#5396000