Open JanetSe opened 3 years ago
Hi JanetSe,
how did you add the 3 cameras? please share the config file.
change you file which is dstest_occupancy_analytics.txt with below code
################################################################################
# Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
################################################################################
[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#gie-kitti-output-dir=streamscl
[tiled-display]
enable=1
rows=1
columns=2
width=1280
height=720
gpu-id=0
nvbuf-memory-type=0
[source0]
enable=1
type=4
uri=stream1
num-sources=1
gpu-id=0
nvbuf-memory-type=0
smart-record=2
smart-rec-start-time=1
smart-rec-file-prefix=smart_record
smart-rec-cache=10
[source1]
enable=1
type=4
uri=stream2
num-sources=1
gpu-id=0
nvbuf-memory-type=0
smart-record=2
smart-rec-start-time=1
smart-rec-file-prefix=smart_record
smart-rec-cache=10
[sink0]
enable=1
type=2
msg-conv-config=msgconv_sample_config.txt
msg-conv-msg2p-lib=/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-occupancy-analytics/bin/jetson/libnvds_msgconv.so
msg-conv-payload-type=0
msg-broker-proto-lib=/opt/nvidia/deepstream/deepstream-6.0/lib/libnvds_kafka_proto.so
msg-broker-conn-str=localhost;9092;quickstart-events
source-id=0
[sink1]
enable=1
type=2
msg-conv-config=msgconv_sample_config.txt
msg-conv-msg2p-lib=/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-occupancy-analytics/bin/jetson/libnvds_msgconv.so
msg-conv-payload-type=0
msg-broker-proto-lib=/opt/nvidia/deepstream/deepstream-6.0/lib/libnvds_kafka_proto.so
msg-broker-conn-str=localhost;9092;quickstart-events
source-id=1
[osd]
enable=1
gpu-id=0
border-width=1
text-size=10
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Arial
show-clock=0
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=1920
height=1080
enable-padding=0
nvbuf-memory-type=0
[primary-gie]
enable=1
gpu-id=0
batch-size=2
bbox-border-color0=1;0;0;1
nvbuf-memory-type=0
interval=0
config-file=pgie_peoplenet_tao_config.txt
[tracker]
enable=1
tracker-width=640
tracker-height=384
gpu-id=0
ll-lib-file=/opt/nvidia/deepstream/deepstream-6.0/lib/libnvds_nvmultiobjecttracker.so
ll-config-file=../../../../samples/configs/deepstream-app/config_tracker_NvDCF_perf.yml
enable-batch-process=0
[nvds-analytics]
enable=1
config-file=nvdsanalytics_config.txt
[tests]
file-loop=0
Hi I am using this application and I would like to use more than one camera live stream from our office, so I changed the source for Multiple URI and added the 3 cameras rtsp addresses but in the end, I only got one frame and kafka messages from the frame only. Any recommendation to display the 3 frames and get messages regarding the different livestreams? Thanks