I want to use deepstream-app example to save different videos for each cameras, and this is my config:
[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
[sink0]
enable=0
type=2
sync=0
source-id=0
gpu-id=0
qos=1
nvbuf-memory-type=0
overlay-id=1
[osd]
enable=0
gpu-id=0
border-width=1
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Serif
show-clock=1
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;0
nvbuf-memory-type=0
[streammux]
gpu-id=0
live-source=1
batch-size=2
batched-push-timeout=40000
width=1280
height=720
enable-padding=0
nvbuf-memory-type=0
[primary-gie]
enable=0
gpu-id=0
model-engine-file=../../models/Primary_Detector/resnet10.caffemodel.engine
batch-size=2
bbox-border-color0=1;0;0;1
bbox-border-color1=0;1;1;1
bbox-border-color2=0;0;1;1
bbox-border-color3=0;1;0;1
interval=4
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary.txt
[tracker]
enable=0
tracker-width=480
tracker-height=272
ll-lib-file=/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_mot_klt.so
gpu-id=0
[tests]
file-loop=0
[source0]
enable=1
type=4
uri=rtspt://admin:admin@192.168.168.228:554/media/video1
num-sources=1
rtsp-reconnect-interval-sec=1
latency=0
gpu-id=0
cudadec-memtype=0
[source1]
enable=1
type=4
uri=rtspt://admin:admin@192.168.168.224:554/media/video1
num-sources=1
rtsp-reconnect-interval-sec=1
latency=0
gpu-id=0
cudadec-memtype=0
[source2]
enable=1
type=4
uri=rtspt://admin:admin@192.168.168.230:554/media/video1
num-sources=1
rtsp-reconnect-interval-sec=1
latency=0
gpu-id=0
cudadec-memtype=0
[source3]
enable=1
type=4
uri=rtspt://admin:admin@192.168.168.233:554/media/video1
num-sources=1
rtsp-reconnect-interval-sec=1
latency=0
gpu-id=0
cudadec-memtype=0
[tiled-display]
enable=0
rows=2
columns=2
width=1280
height=720
gpu-id=0
nvbuf-memory-type=0
[sink1]
enable=1
type=3
container=1
codec=1
sync=0
bitrate=2000000
output-file=/home/user/NVR-record/camera_0/03-12-2020-(14:45:20).mp4
source-id=0
[sink2]
enable=1
type=3
container=1
codec=1
sync=0
bitrate=2000000
output-file=/home/user/NVR-record/camera_1/03-12-2020-(14:45:20).mp4
source-id=1
[sink3]
enable=1
type=3
container=1
codec=1
sync=0
bitrate=2000000
output-file=/home/user/NVR-record/camera_2/03-12-2020-(14:45:20).mp4
source-id=2
[sink4]
enable=1
type=3
container=1
codec=1
sync=0
bitrate=2000000
output-file=/home/user/NVR-record/camera_3/03-12-2020-(14:45:20).mp4
source-id=3
and recorded video will have frame from other camera sometimes (e.g. video is for camera 1 but it contains frame of camera 3 for few frame.), but most of frame is from correct camera, can solve this problem?