deepstream 4.0 run failed with rtsp source on TX2, the camera is HIKVISION.

Hi,
It is a known issue in DS4.0. Please upgrade to DS4.0.1

Hi,
I used it DS4.0.1,but still the same mistake.

zz@zz-desktop:~/deepstream_sdk_v4.0.1_jetson/sources/apps/sample_apps/deepstream-app$ ./deepstream-app -c /home/zz/deepstream_sdk_v4.0.1_jetson/samples/configs/deepstream-app/source1_csi_dec_infer_resnet_int8.txt 
Creating LL OSD context new
0:00:01.117435883  7512   0x5580076cc0 WARN                 nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:useEngineFile(): Failed to read from model engine file
0:00:01.117578634  7512   0x5580076cc0 INFO                 nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:initialize(): Trying to create engine from model files
0:00:01.117996838  7512   0x5580076cc0 WARN                 nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:generateTRTModel(): INT8 not supported by platform. Trying FP16 mode.
0:00:28.508126214  7512   0x5580076cc0 INFO                 nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:generateTRTModel(): Storing the serialized cuda engine to file at /home/zz/deepstream_sdk_v4.0.1_jetson/samples/models/Primary_Detector/resnet10.caffemodel_b1_fp16.engine

Runtime commands:
	h: Print this help
	q: Quit

	p: Pause
	r: Resume

NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
      To go back to the tiled display, right-click anywhere on the window.


**PERF: FPS 0 (Avg)	
**PERF: 0.00 (0.00)	
** INFO: <bus_callback:189>: Pipeline ready

Opening in BLOCKING MODE 
NvMMLiteOpen : Block : BlockType = 261 
NVMEDIA: Reading vendor.tegra.display-size : status: 6 
NvMMLiteBlockCreate : Block : BlockType = 261 
** INFO: <bus_callback:175>: Pipeline running

Creating LL OSD context new
**PERF: 0.00 (0.00)	
**PERF: 0.00 (0.00)	
**PERF: 0.00 (0.00)	
**PERF: 0.00 (0.00)	
**PERF: 0.00 (0.00)	
q
Quitting
App run successful
zz@zz-desktop:~/deepstream_sdk_v4.0.1_jetson/sources/apps/sample_apps/deepstream-app$

Here is the config file:

zz@zz-desktop:~/deepstream_sdk_v4.0.1_jetson/samples/configs/deepstream-app$ vim source1_csi_dec_infer_resnet_int8.txt

# Copyright (c) 2018 NVIDIA Corporation.  All rights reserved.
#
# NVIDIA Corporation and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto.  Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA Corporation is strictly prohibited.

[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#gie-kitti-output-dir=streamscl

[tiled-display]
enable=1
rows=1
columns=1
width=1280
height=720

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP 5=CSI
type=4
camera-width=1280
camera-height=720
camera-fps-n=30
camera-fps-d=1
uri=rtsp://admin:nvidia123@192.168.10.66:554/stream

[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming 5=Overlay
type=5
sync=0
display-id=0
offset-x=0
offset-y=0
width=0
height=0
overlay-id=1
source-id=0

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

[sink2]
enable=0
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming 5=Overlay
type=4
#1=h264 2=h265
codec=1
sync=0
bitrate=4000000
# set below properties in case of RTSPStreaming
rtsp-port=8554
udp-port=5400

[osd]
enable=1
border-width=2
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;0

[streammux]
##Boolean property to inform muxer that sources are live
live-source=1
batch-size=1
##time out in usec, to wait after the first buffer is available
##to push the batch even if the complete batch is not formed
batched-push-timeout=40000
## Set muxer output width and height
width=1280
height=720

# config-file property is mandatory for any gie section.
# Other properties are optional and if set will override the properties set in
# the infer config file.
[primary-gie]
enable=1
model-engine-file=../../models/Primary_Detector/resnet10.caffemodel_b30_int8.engine
#Required to display the PGIE labels, should be added even when using config-file
#property
batch-size=1
#Required by the app for OSD, not a plugin property
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=0
#Required by the app for SGIE, when used along with config-file property
gie-unique-id=1
config-file=config_infer_primary.txt

[tests]
file-loop=0

please help!

[/quote]

Hi,
Could you make a clean re-flash through sdkmanager? DS4.0.1 has to be run with r32.2.1.

Also please modify to one source based on source12_1080p_dec_infer-resnet_tracker_tiled_display_fp16_tx2.txt. Since int8 is not supported on TX2, resnet10.caffemodel_b30_int8.engine is not invalid. It should be resnet10.caffemodel_b1_fp16.engine

Hi,
Direct DS4.0.1 loading will have problems?
Upgrade DS must be renewed brush machine?

Since int8 is not supported on TX2, why the usb configuration file can run successfully?

Here is the profile name:source1_usb_dec_infer_resnet_int8.txt.

Hi,
r32.2.1 is L4T Jetson Driver Package?

Hi,
The package is r32.2.1 + DS4.0.1. You can check

$ head -1 /etc/nv_tegra_release

If it is r32.2.1, you may check if cleaning gstreamer cache can work. If it still does not work, suggest you do clean re-flash via sdkmanager.

Hi,
You need to upgrade to

$ head -1 /etc/nv_tegra_release
# R32 (release), REVISION: 2.1, GCID: 16294929, BOARD: t186ref, EABI: aarch64, DATE: Tue Aug 13 04:45:36 UTC 2019

Hi,
Is R32.2.1 what?
What is the relationship with jetpack?
How should the r32.2.1 upgrade?

Hi super_lian2010,

Please download SDK Manager
And following below document guide to install sdkmanager and install JetPack on your device:
http://docs.nvidia.com/sdk-manager/download-run-sdkm/index.html
http://docs.nvidia.com/sdk-manager/install-with-sdkm-jetson/index.html