Error while running Deepstream 5.0 Python apps - Multiple RTSP stream (deepstream-test3)

Hi
I am having issue running the Python app for “deepstream-test3” using multiple rtsp with credentials and need some directions.

• Hardware Platform (Jetson / GPU)
Jetson Nano 4gb

• DeepStream Version
DeepStream 5.0

• JetPack Version (valid for Jetson only)
Jetpack: 4.5 [l4T 32.5.0]

• TensorRT Version
7.1.3.0

• NVIDIA GPU Driver Version (valid for GPU only)

• Issue Type( questions, new requirements, bugs)
Questions: How to run deepstream-test3 using multiple rtsp, when the cameras has user credentials

• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

      I attempted using web IP cam and also publicly available rtsp stream as well.

Part 1: Using 2 IP cams
Following are the cmds I use and I get this

$ cd /opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-test3
$ python3 deepstream_test_3.py rtsp://user1:pwd2@777:123:2:10/videoMain rtsp://user2:pwd2@777:123:2:11/videoMain

I get the error:
bash: @777.123.2.10/videoMain: event not found

Part 2: Using publicly available RTSP stream & following is the msg I get

hostXYZ:/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-test3$ python3 deepstream_test_3.py rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
Creating Pipeline

Creating streamux

Creating source_bin 0

Creating source bin
source-bin-00
Creating source_bin 1

Creating source bin
source-bin-01
Creating Pgie

Creating tiler

Creating nvvidconv

Creating nvosd

Creating transform

Creating EGLSink

Atleast one of the sources is live
WARNING: Overriding infer-config batch-size 1 with number of sources 2

Adding elements to Pipeline

Linking elements in the Pipeline

Now playing…
1 : rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
2 : rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
Starting pipeline

Using winsys: x11
ERROR: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-test3/…/…/…/…/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine open error
0:00:45.014473193 22311 0x7f2c002330 WARN nvinfer gstnvinfer.cpp:616:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1690> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-test3/…/…/…/…/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine failed
0:00:45.014621324 22311 0x7f2c002330 WARN nvinfer gstnvinfer.cpp:616:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1797> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-test3/…/…/…/…/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine failed, try rebuild
0:00:45.014706171 22311 0x7f2c002330 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1715> [UID = 1]: Trying to create engine from model files
WARNING: INT8 not supported by platform. Trying FP16 mode.
INFO: [TRT]: Some tactics do not have sufficient workspace memory to run. Increasing workspace size may increase performance, please check verbose output.
INFO: [TRT]: Detected 1 inputs and 2 output network tensors.
0:03:37.691846419 22311 0x7f2c002330 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1748> [UID = 1]: serialize cuda engine to file: /opt/nvidia/deepstream/deepstream-5.0/samples/models/Primary_Detector/resnet10.caffemodel_b2_gpu0_fp16.engine successfully
INFO: [Implicit Engine Info]: layers num: 3
0 INPUT kFLOAT input_1 3x368x640
1 OUTPUT kFLOAT conv2d_bbox 16x23x40
2 OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40

0:03:38.638367603 22311 0x7f2c002330 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus: [UID 1]: Load new model:dstest3_pgie_config.txt sucessfully
Decodebin child added: source

Decodebin child added: source

Error: gst-resource-error-quark: Could not get/set settings from/on resource. (13): gstrtspsrc.c(7014): gst_rtspsrc_setup_streams_start (): /GstPipeline:pipeline0/GstBin:source-bin-01/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Could not setup transport.
Exiting app

Need some help please.

Thanks

Hi,
You may try to put URI in quotes like:

"rtsp://user1:pwd2@777:123:2:10/videoMain"

Thanks, it worked but with single Quotes.

python3 deepstream_test_3.py ‘rtsp://user1:pwd2@777:123:2:10/videoMain’ ‘rtsp://user2:pwd2@777:123:2:11/videoMain’

1 Like