Deep stream cpp increasing latency when using 2 cameras

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

For live source like RTSP, camera,…, etc, you need to set “live-source” property of nvstreammux to 1. And there are several other errors in your code for live source and multiple sources. Please refer to deepstream-test3 for how to enable multiple sources and live source in one pipeline.

Please read the documents before you start to customize your own application.
https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvstreammux.html#
DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums
https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_FAQ.html#what-is-the-difference-between-batch-size-of-nvstreammux-and-nvinfer-what-are-the-recommended-values-for-nvstreammux-batch-size