Deepstream 6.1
I am looking at the code of deepstream-rtsp-in-rtsp-out and compared with deepstream-test1 code
deepstream-test1
- 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
deepstream-rtsp-in-rtsp-out
- 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?