How to retrieve source uri in sgie_src_pad_buffer_probe for multi rtsp

• Hardware Platform : GPU
• DeepStream Version: 6.2
Language : C++

which sample are testing? do you mean the RTSP url address about “source uri”?

yes, the RTSP addresses. There are multiple RTSP sources. I am not testing any sample. I am developing an application.

For example, if a red car is detected, can we know which RTSP camera streaming it, in sgie_source_pad_buffer_probe ?

you can get NvDsFrameMeta’s source_id, which is related to a camera. here is the comment:
/** Holds the source IDof the frame in the batch, e.g. the camera ID.
It need not be in sequential order. */
guint source_id;
please refer to osd_sink_pad_buffer_probe in deeptream-test1 for how to access NvDsFrameMeta.

How will I set the source_id when creating sources?

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

if using deepstream-app, the sourceid is [sourceX] in the configuration file, please refer to \opt\nvidia\deepstream\deepstream-6.2\samples\configs\deepstream-app\source2_1080p_dec_infer-resnet_demux_int8.txt
if using custom app, the sourceid is the sequence of url, please refer to deepstream-test3, for example, ./deepstream-test3-app rtsp:// rtsp://

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