Error when deleting rtsp sources

• Hardware Platform (Jetson / GPU): GPU
• DeepStream Version: nvcr.io/nvidia/deepstream:5.1-21.02-samples
Hi, I modify deepstream_rt_src_add_del.py in deepstream_python_apps to add and delete rtsp input sources. However I meet this error when I delete the rtsp source:

Error: gst-resource-error-quark: Unhandled error (9): gstrtspsrc.c(6161): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstURIDecodeBin:source-bin-01/GstRTSPSrc:source:
Option not supported (551)

But when I use videos as input sources, it works fine. Could you guys help me with the mentioned issue? Thanks in advance !

Can you provide the modified code for us to reproduce the problem?

Sure.test_add_delete_analytic.py (29.4 KB)

Is this still be an issue? if yes, can you share all the config files you used in the script?

Sorry for late response. Yes, I still have this issue. Here are my config files: dstest_pgie_config.txt (3.8 KB)
dsnvanalytics_tracker_config.txt (1.8 KB)

If you guys need anything else, please just let me know. Thank you very much!

Please try with the script which modified based on your script if you can repro the issue mentioned, i just commented some code, for simple environments and run. i can not repro the issue with the modified script.
test_add_delete_analytic.py (29.5 KB)
below are the log:
nvidia@nvidia-desktop:/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/apps/deladd$ sudo python3 test_add_delete_analytic.py
Creating Pipeline

Enter the source id (int):
0
Enter the input source:
rtsp://10.19.225.198/media/video1
Source_id: 0 Input_source: rtsp://10.19.225.198/media/video1
Creating uridecodebin for [rtsp://10.19.225.198/media/video1]
source-bin-00
Creating H264 Encoder
Creating H264 rtppay
Creating H264 Encoder
Creating H264 rtppay
Playing file [‘rtsp://10.19.225.198/media/video1’, ‘’]
Adding elements to Pipeline

Linking elements in the Pipeline

demux source 0

demux source 1

*** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***

*** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***

Starting pipeline

Opening in BLOCKING MODE
Opening in BLOCKING MODE
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream-6.0/lib/libnvds_nvmultiobjecttracker.so
gstnvtracker: Batch processing is ON
gstnvtracker: Past frame output is ON
[NvMultiObjectTracker] Initialized
0:00:04.173735190 25036 0x1bf088c0 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1161> [UID = 1]: Warning, OpenCV has been deprecated. Using NMS for clustering instead of cv::groupRectangles with topK = 20 and NMS Threshold = 0.5
0:00:08.017361020 25036 0x1bf088c0 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1900> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.0/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine
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:00:08.017574656 25036 0x1bf088c0 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2004> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.0/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine
0:00:08.047093910 25036 0x1bf088c0 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus: [UID 1]: Load new model:dstest_pgie_config.txt sucessfully
Decodebin child added: source

Decodebin child added: decodebin0

Decodebin child added: rtph264depay0

Decodebin child added: h264parse0

Decodebin child added: capsfilter0

Decodebin child added: nvv4l2decoder0

Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
In cb_newpad

gstname= video/x-raw
sink_0
Decodebin linked to pipeline
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
New loop
Choose: a. Add | b. Delete
a
Enter new id:
1
Enter new source:
rtsp://10.19.225.198/media/video1
Calling Start 1
Creating uridecodebin for [rtsp://10.19.225.198/media/video1]
source-bin-01
Decodebin child added: source

STATE CHANGE NO PREROLL

In add_source: Added
New loop
Choose: a. Add | b. Delete
Decodebin child added: decodebin1

Decodebin child added: rtph264depay1

Decodebin child added: h264parse1

Decodebin child added: capsfilter1

reference in DPB was never decoded
Decodebin child added: nvv4l2decoder1

Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
In cb_newpad

gstname= video/x-raw
sink_1
Decodebin linked to pipeline
H264: Profile = 66, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE

In add_source: Skipped
New loop
Choose: a. Add | b. Delete
b
In add_source: Deleted
Enter id to delete:
0
Calling Stop 0
STATE CHANGE SUCCESS

sink_0
STATE CHANGE SUCCESS

In delete_source: Deleted

New loop
Choose: a. Add | b. Delete
In add_source: Skipped
New loop
Choose: a. Add | b. Delete
d
In add_source: Skipped
New loop
Choose: a. Add | b. Delete
b
In add_source: Deleted
Enter id to delete:
1
Calling Stop 1
STATE CHANGE SUCCESS

sink_1
STATE CHANGE SUCCESS

All sources stopped quitting
[NvMultiObjectTracker] De-initialized

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.