Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
Orin AGX • DeepStream Version
6.2 • 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)
Run attached code with 2 or more sources • Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
I want to get the source iD from the the probe buffer. I dont get the frame number or the source ID.
I would assume it has to do with my pipeline but please assist. I get the image, and the box info as well as class, but frame_meta.frame_num does not produce anything, nor will I see the source ID in the per_print_callback
Any idea why?
Previous thread and ref. to how I set the pipeline. main.zip (4.0 KB)
I think so too. Do I need to create three muxes and pgie for each source?
I am not sure if I create the pipeline correctly since I dont use the example source_decode_bins
#creating srcpads and sinkpads per camera source
srcpads = 
sinkpads = 
for s in range(number_sources):
srcpad = caps_vidconvsrcs[s].get_static_pad("src")
sinkpad = streammux.get_request_pad("sink_"+str(s))
#Linking all the elements until streammux
for i in range(number_sources):
#Rest of the pipeline
# create an event loop and feed gstreamer bus mesages to it
loop = GLib.MainLoop()
bus = pipeline.get_bus()
bus.connect ("message", bus_call, loop)
#This is where I add get the src pad from pgie to use when adding the probe.
pgie_src_pad = pgie.get_static_pad("src")
if not pgie_src_pad:
sys.stderr.write(" Unable to get sink pad of nvosd \n")
#Adding the probe
pgie_src_pad.add_probe(Gst.PadProbeType.BUFFER, pgie_src_pad_buffer_probe, 0)
Should I create three muxers and three pgie (one per source), merge them to the tiler element and add the probe to nvosd instead?
Thank you. I did get the answer from Yuweiw and I have the code (if you looked at the source attached).
The code is as you see. I could not get it to work, but finally now I have changed something that must have been wrong and I get the meta and image. I don’t know why all of a sudden I got the source data but it works. I also found that I was missing a color conversion in the caps filer which is also added to the code so that the image extraction works from the gst_buffer.
For others who want this including XML (Pascal/VOC) output please see attached code. Perhaps I bring value to someone else.