Hello,
I try to run my Deepstream app with mp4 input file and it’s oke, but when I run with IP camera (rtsp), I got error like bellow image:
This’s my deepstream config file:
[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#gie-kitti-output-dir=streamscl
[tiled-display]
enable=1
rows=2
columns=2
width=1280
height=720
gpu-id=0
nvbuf-memory-type=0
[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
#uri=file://../vids/sample_%d.mp4
uri=rtsp://admin:Vanimut@123.@192.168.1.108:554
num-sources=4
drop-frame-interval=1
gpu-id=0
cudadec-memtype=0
[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=2
sync=0
source-id=0
gpu-id=0
nvbuf-memory-type=0
[sink1]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4
#1=h264 2=h265
codec=1
sync=0
bitrate=4000000
# set below properties in case of RTSPStreaming
rtsp-port=554
udp-port=37778
[sink2]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=3
#1=h264 2=h265
codec=1
sync=0
bitrate=4000000
container=1
output-file=./output.mp4
[osd]
enable=1
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=0
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;1
nvbuf-memory-type=0
[streammux]
gpu-id=0
live-source=0
batch-size=1
batched-push-timeout=40000
## Set muxer output width and height
width=1200
height=1200
enable-padding=0
nvbuf-memory-type=0
[primary-gie]
enable=1
gpu-id=0
batch-size=1
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
gie-unique-id=1
nvbuf-memory-type=0
labelfile-path=models/Primary_Detector/class_labels_aThanh.txt
model-engine-file=models/Primary_Detector/mrcnn_nchw_aThanh.uff_b1_fp32.engine
config-file=config_infer_primary_maskRCNN_debug.txt
[tests]
file-loop=0
and here is config infer primary:
[property]
gpu-id=0
net-scale-factor=1.0
offsets=103.939;116.779;123.68
model-color-format=1
labelfile-path=models/Primary_Detector/class_labels_aThanh.txt
uff-file=models/Primary_Detector/mrcnn_nchw_aThanh.uff
model-engine-file=models/Primary_Detector/mrcnn_nchw_aThanh.uff_b1_fp32.engine
uff-input-dims=3;1024;1024;0
uff-input-blob-name=input_image
batch-size=1
## 0=FP32, 1=INT8, 2=FP16 mode
network-mode=0
num-detected-classes=2
interval=0
gie-unique-id=1
is-classifier=0
#network-type=0
output-blob-names=mrcnn_detection;mrcnn_mask/Sigmoid
parse-bbox-func-name=NvDsInferParseCustomMrcnnUff
custom-lib-path=libnvds_infercustomparser_mrcnn_uff_new.so
[class-attrs-all]
roi-top-offset=0
roi-bottom-offset=0
detected-min-w=0
detected-min-h=0
detected-max-w=0
detected-max-h=0
## Per class configuration
#[class-attrs-2]
#threshold=0.6
#roi-top-offset=20
#roi-bottom-offset=10
#detected-min-w=40
#detected-min-h=40
#detected-max-w=400
#detected-max-h=800
How can I fix it?
Thanks!