Two nvstreammux elements in pipeline

In fact, what you want are actually two separated pipelines.

The way you use pgie , sgie, nvstreammux and nvstreamdemux does not match our design.

It is not reasonable to put them in one pipeline.