Gst-resource-error-quark: Could not write to resource

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Tesla4
• DeepStream Version 6.0-Triton
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I can open the RTSP(HikVision Cameras) link in my laptop’s VLC properly (In Windows) and aslo python-opencv cap. However, If I try to use this RTSP camera link in pythonAPI Deepstream-test3 I am getting the following error.

Error: gst-resource-error-quark: Could not write to resource. (10): gstrtspsrc.c(7671): gst_rtspsrc_close (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Could not send message. (Received end-of-file)

Please Help, Thanks!!!

Can you provide the full log when executing the command? Please also use gst-discover-1.0 to read the stream meta, thanks.

there is no gst-discover-1.0 command in system, how to install?

i found the rtsp uri will change after open or read, so the same rtsp uri can not open twice. is this problem cause the Error " Could not write to resource"? it will connect the rtsp server twice when Deepstream-test3 start running? opencv cap the rtsp is work well

gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
gstnvtracker: Batch processing is ON
gstnvtracker: Past frame output is OFF
[NvMultiObjectTracker] Initialized
0:00:00.315772876 4257 0x2b92a90 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:02.007077002 4257 0x2b92a90 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_b6_gpu0_int8.engine
INFO: …/nvdsinfer/nvdsinfer_model_builder.cpp:610 [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:02.007179743 4257 0x2b92a90 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_b6_gpu0_int8.engine
0:00:02.008113862 4257 0x2b92a90 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus: [UID 1]: Load new model:dstest3_pgie_config.txt sucessfully
**Decodebin child added: source **

0:00:02.375942087 4257 0x1b83a30 FIXME default gstutils.c:3981:gst_pad_create_stream_id_internal:fakesrc0:src Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:02.376064731 4257 0x1b839e0 FIXME default gstutils.c:3981:gst_pad_create_stream_id_internal:fakesrc1:src Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:07.497113517 4257 0x1b82770 WARN rtspsrc gstrtspsrc.c:5978:gst_rtspsrc_try_send: server closed connection
0:00:07.606238097 4257 0x1b82770 WARN rtspsrc gstrtspsrc.c:5978:gst_rtspsrc_try_send: server closed connection
0:00:07.606259419 4257 0x1b82770 WARN rtspsrc gstrtspsrc.c:7671:gst_rtspsrc_close: error: Could not send message. (Received end-of-file)
Error: gst-resource-error-quark: Could not write to resource. (10): gstrtspsrc.c(7671): gst_rtspsrc_close (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Could not send message. (Received end-of-file)
post exception
0:00:07.606831373 4257 0x1b82770 WARN rtspsrc gstrtspsrc.c:5628:gst_rtspsrc_loop: we are not connected
Exiting app

1 Like

There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Can you run GST_DEBUG=rtspsrc:5 gst-launch-1.0 rtspsrc location=“rtsp uri” ! fakesink to get more log?

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