Adding pads to nvstreamdemux

Building off of this example

We add sources to the streammux, the data is then batch for infer and then we use a demux to get the individual streams again.

Currently the pipeline is just this


We have a g_connect that is supposed to detect when pads are available. But it is not gettting triggered unless we manually request an src pad. Is this the correct way to go about this?

Secondly, if it is, what would be the shortest pipeline in we could create in the g_connect to get the buffer from a demux srcpad to an appsink?

We do not set the pipeline to play until after all sources have been added

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

Not very clear of your question, Would you mind to share your code with us?