Deepstream-app latency increasing

Hi,
Please check my reply here.
In summary, you can expect to see a growing latency if nvinfer takes longer to process that the time of one frame. There are several ways to optimize your pipeline in order to avoid this:

  1. Adding is-live=true to your source
  2. Adding sync=false to your sink
  3. Adding leaky queues before the bottleneck elements: queue leaky=2 max-size-buffers=1
  4. Set interval=n in nvinfer to skip inference in some buffers