Trying to dispose element pipeline0, but it is in PAUSED instead of the NULL state. You need to explicitly set elements to the NULL state before

Please provide complete information as applicable to your setup.

• Hardware Platform (GPU)
• DeepStream Version(6.4)
• TensorRT Version( 8.6.1)
• NVIDIA GPU Driver Version ( 545.29.02)
• Issue Type( questions)
• How to reproduce the issue ? (Refer to apps/deepstream-nvdsanalytics, modify uridecodebin to nvurisrcbin, and input to rtsp protocol stream)

Question:

Log:
gst_debug_eq4.log (472.1 KB)

Looking forward to your reply!

What else did you modify?
This error means that you are trying to destroy an element that is not in the NULL state.
There is the following error in your log file. Did you enter the ipv6 address?

Error: gst-resource-error-quark: Could not get/set settings from/on resource. (13): ../gst/udp/gstmultiudpsink.c(1228): gst_multiudpsink_configure_client (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source/GstUDPSink:udpsink0:
Invalid address family (got 10)

Thank you for you reply!

  1. I changed source_bin and everything ran normally after the change, but this problem occurred when I changed the data source. The data source uses the rtsp protocol, and there is no problem with VLC playback.
  2. No, rtsp ipv4

How do you change the data source? I don’t understand what this means.
Can you provide a way to reproduce the problem and sample code?

def create_source_bin(index,uri):
    print("Creating source bin")

    # Create a source GstBin to abstract this bin's content from the rest of the
    # pipeline
    bin_name="source-bin-%02d" %index
    print(bin_name)
    nbin=Gst.Bin.new(bin_name)
    if not nbin:
        sys.stderr.write(" Unable to create source bin \n")

    # Source element for reading from the uri.
    # We will use decodebin and let it figure out the container format of the
    # stream and the codec and plug the appropriate demux and decode plugins.
    uri_decode_bin=Gst.ElementFactory.make("nvurisrcbin", "uri-decode-bin")
    uri_decode_bin.set_property("rtsp-reconnect-interval", 2)
    if not uri_decode_bin:
        sys.stderr.write(" Unable to create uri decode bin \n")
    # We set the input uri to the source element
    uri_decode_bin.set_property("uri",uri)
    # Connect to the "pad-added" signal of the decodebin which generates a
    # callback once a new pad for raw data has beed created by the decodebin
    uri_decode_bin.connect("pad-added",cb_newpad,nbin)
    uri_decode_bin.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,uri_decode_bin)
    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

When I take the stream directly from the camera through rtsp and use nvurisrcbin as the source, it can run normally. When I convert the stream taken through rtsp locally, the above problem occurs. This should be a problem of data format conversion.
Sorry for late replay, thank you.

Glad to hear that.

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