Deepstream gst-resource-error-quark

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• 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 do the same things that eepstream_test_3.py do but i have gotten this error can you help me ?
my pipeline :
Gst-uridecodebin(RTSP) ->Gst-nvstreammux->Gst-nvvideoconvert->Gst-nvdsosd
linking and adding in uridecode
def link_source_bin(self ,src_element : Gst.Element, dst_element : Gst.Element, sink_id : int):
# Iterate through each input source
uri_name=src_element.get_property(“uri”) # Retrieve input file URI
if uri_name.find(“rtsp://”) == 0 :
is_live = True
source_bin=create_source_bin( src_element,sink_id) # Call helper to create source bin
if not source_bin:
raise RuntimeError(“Unable to create source bin \n”)
self.pipeline.add(source_bin) # Add source bin to pipeline
padname=“sink_%u” %sink_id
sinkpad= dst_element.request_pad_simple(padname) # Retrieve a sink pad from the streammux element
if not sinkpad:
raise RuntimeError(“Unable to create sink pad bin \n”)
srcpad=source_bin.get_static_pad(“src”) # Retrieve the source pad of the source bin
if not srcpad:
raise RuntimeError(“Unable to create src pad bin \n”)
srcpad.link(sinkpad) # Link the source pad of the source bin to the sink pad of the streammux

ef create_source_bin(src_element:Gst.Element,index):
# Create a source GstBin to abstract this bin’s content from the rest of the
# pipeline
bin_name=“source-bin-%02d” %index
print(“Creating source bin”+ bin_name)
nbin=Gst.Bin.new(bin_name)
if not nbin:
sys.stderr.write(" Unable to create source bin \n")

# Connect to the "pad-added" signal of the decodebin which generates a
# callback once a new pad for raw data has been created by the decodebin
src_element.connect("pad-added",cb_newpad,nbin)
src_element.connect("child-added",decodebin_child_added,nbin)

# We need to create a ghost pad for the source bin which will act as a proxy
# for the video decoder src pad. The ghost pad will not have a target right
# now. Once the decode bin creates the video decoder and generates the
# cb_newpad callback, we will set the ghost pad target to the video decoder
# src pad.
Gst.Bin.add(nbin,src_element)
bin_pad=nbin.add_pad(Gst.GhostPad.new_no_target("src",Gst.PadDirection.SRC))
if not bin_pad:
    sys.stderr.write(" Failed to add ghost pad in source bin \n")
    return None
return nbin

error:
Creating uridecode
Creating streammux
Creating nvvideoconvert
Creating nvdsosd
Creating source binsource-bin-00
Decodebin child added: source
Error: gst-resource-error-quark: Could not read from resource. (9): …/gst/rtsp/gstrtspsrc.c(6523): gst_rtsp_src_receive_response (): /GstPipeline:deepstream-pipeline-mohammad/GstBin:source-bin-00/GstURIDecodeBin:uridecodebin-1001/GstRTSPSrc:source:
Could not receive message. (Timeout while waiting for server response)

if this error is not about this section pls tell me to know where should i start debuging .Thanks alot

There is no sink plugin in your pipeline. Could you try to add a fakesink at the end of your pipeline?

Ty i will try it but It said can’t read from resource so isn’t it related to rtsp and uridecode?

i do it but i still have the same problem as before

Error: gst-resource-error-quark: Could not read from resource. (9): …/gst/rtsp/gstrtspsrc.c(6523): gst_rtsp_src_receive_response (): /GstPipeline:deepstream-pipeline-mohammad/GstBin:source-bin-00/GstURIDecodeBin:uridecodebin-1001/GstRTSPSrc:source:
Could not receive message. (Timeout while waiting for server response)
192.168.11.96 - - [27/Jul/2024 09:04:55] “POST /runpipeline HTTP/1.1” 200 -

i have gotten this error when using nvurisrcbin instead of that too:
Warning: gst-stream-error-quark: No data from source since last 10 sec. Trying reconnection (1): gstdsnvurisrcbin.cpp(1412): watch_source_status (): /GstPipeline:deepstream-pipeline-mohammad/GstBin:source-bin-00/GstDsNvUriSrcBin:uridecodebin-1001
Resetting source -1, attempts: 1
Warning: gst-stream-error-quark: No data from source since last 10 sec. Trying reconnection (1): gstdsnvurisrcbin.cpp(1412): watch_source_status (): /GstPipeline:deepstream-pipeline-mohammad/GstBin:source-bin-00/GstDsNvUriSrcBin:uridecodebin-1001

i even use deepstream_test_3.py with fileloop=True and i have gotten same error
Error: gst-resource-error-quark: Could not read from resource. (9): …/gst/rtsp/gstrtspsrc.c(6523): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Could not receive message. (Timeout while waiting for server response)
i use [vlc → media → network stream ->network] to check my rtsp and it works fine

Looks like a problem with your rtsp source, can you confirm the codec format of your source, and the I-frame interval?

The problem solved ! My vpn was run😥

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