There are discussions here from @ cclaunch and a few others. They also discussed how to get source id for frames in multiple sources processing a few days ago.
For me I used deepstream-test3 program and I can have source id from probing in that program.
When I have time I’ll go back to deepstream-app as it has a lot stuffs to understand more about deepstream plugins.