Deepstream python sample rtsp in , rtsp out , why tiler_src_pad_buffer_probe is not consumed in code?

Deepstream 6.1

I am looking at the code of deepstream-rtsp-in-rtsp-out and compared with deepstream-test1 code


  • Has function and used in other part d code.
def osd_sink_pad_buffer_probe(pad,info,u_data): 
 osdsinkpad = nvosd.get_static_pad("sink")
    if not osdsinkpad:
        sys.stderr.write(" Unable to get sink pad of nvosd \n")

    osdsinkpad.add_probe(Gst.PadProbeType.BUFFER, osd_sink_pad_buffer_probe, 0)

While we Iook into


  • Has the below function but the comment shows sink pad while function name shows src pad and is not consumed in other parts of the code.
# tiler_sink_pad_buffer_probe  will extract metadata received on OSD sink pad
# and update params for drawing rectangle, object information etc.

def tiler_src_pad_buffer_probe(pad, info, u_data):
should i use for tiler sink pad or src pad ? to get metadata by probe function?

can i use like this in code.

tilersinkpad =  tiler.get_static_pad("sink")
    if not tilersinkpad:
        sys.stderr.write(" Unable to get sink pad of  tiler \n")

    tilersinkpad.add_probe(Gst.PadProbeType.BUFFER, tiler_src_pad_buffer_probe, 0)

or like this

tilersrcpad =  tiler.get_static_pad("src")
    if not tilersrcpad:
        sys.stderr.write(" Unable to get src pad of  tiler \n")

    tilersrcpad.add_probe(Gst.PadProbeType.BUFFER, tiler_src_pad_buffer_probe, 0)

and there could be multiple source so how set src and sink with number?

You can use tilersinkpad to get the batch info. There is some confusion in the definition here. We will modify it next version.
The src and sink number will be set by default in the plugin.

1 Like

Thank you for your reply @yuweiw

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