GStreamer Lagging

Hi everyone,
I’m using GStreamer with YOLO11n in an Intelligent Video Analytics setup on a VM (L4 GPU, 54 GB RAM, 8 cores / 16 threads).

When I run one stream, it lags and shows frame delays. But when I increase the number of streams, performance improves, and playback becomes smooth.

Is this expected behavior, or could it be related to a GStreamer/NVIDIA parameter like buffering, queue, or GPU scheduling?

Thanks!

This is not the expected behavior. Please first test RTSP stream with gst-launch-1.0 to see if playback is stuttering. Then check the parameters of the inference pipeline, mainly the nvstreammux/nvinfer/nvstreamdemux elements.

Try adjusting the parameters according to the descriptions in the documentation.