In this post: Getting source stream ID from nvosd plugin
ChrisDing provided a solution to set source_id in streammux. I just don’t know where I should put this piece of code:
In streammux,
sscanf (name, "sink_%u", &stream_index);
pad_data->pad_id = stream_index;
frame_meta->source_id = pad_data->pad_id;
Please help