Source ID is always 0 for multi camera streaming

My application streamed 4 video cameras.
I am using deepstream-app.
Inside deepstream_app_main.c, all_bbox_generated function is used to get camera source id for each frame.

static void
all_bbox_generated (AppCtx * appCtx, GstBuffer * buf, NvDsBatchMeta * batch_meta, guint index)
{

}
static void
all_bbox_generated (AppCtx * appCtx, GstBuffer * buf, NvDsBatchMeta * batch_meta, guint index)
{  
  guint num_male = 0;
  guint num_female = 0;  
  for (NvDsMetaList * l_frame = batch_meta->frame_meta_list; l_frame != NULL; l_frame = l_frame->next) {
    NvDsFrameMeta *frame_meta = l_frame->data;
    guint stream_id = frame_meta->pad_index;
    for (NvDsMetaList * l_obj = frame_meta->obj_meta_list; l_obj != NULL; l_obj = l_obj->next) {
       
    }    
 }
}

Tested
guint stream_id = frame_meta->pad_index;
and
guint stream_id = frame_meta->source_id;

Both gives 0.
Why I can’t have different camera id there?

Device infos are as follow.

• Hardware Platform (Jetson / GPU)
Xavier
• DeepStream Version
5.1 (;atest)
• JetPack Version (valid for Jetson only)
R32 (release), REVISION: 4.3, GCID: 21589087, BOARD: t186ref, EABI: aarch64, DATE: Fri Jun 26 04:34:27 UTC 2020
• TensorRT Version
latest
• NVIDIA GPU Driver Version (valid for GPU only)
10.2

Hi,
Currently the latest release is r32.6.1(Jetpack 4.6) + DeepStream SDK 6.0. If there is no strong reason to stay on r32.4.3 + DeepStream SDK 5.1, we would suggest upgrade to latest release and try again.

Ok let me update and I’ll update again. Thanks

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