Nvarguscamerasrc queue-size


I am working with nvarguscamerasrc element and I want to find out how to edit the queue-size or at least know if it is possible. I’m looking for the same thing as this post but for nvarguscamerasrc: reference

I want to edit it to test and see if I can reduce the latency in the camera capture.
I am using a Jetson Xavier AGX with Jetpack 5.0.2.

Thanks in advance for any help!

Best regards,

Current have public the source code of nvarguscamerasrc
Suppose you can modify it by yourself.

Hi ShaneCCC

Thanks for your support.

I found the MIN_BUFFERS and MAX_BUFFERS parameters in the “gstnvarguscamerasrc.cpp” file. But those parameters are not what I’m looking for. I don’t know, maybe it could be in the Libargus Camera API?

My question is if the queue-size property exists in nvarguscamerasrc. That property existed in the past for nvcamerasrc, so could you please tell me if it currently exists.

If it does exist, is it possible to modify it?


To provide more background, we are seeing huge latencies in the camera, around 4 frames of latency. In the past we fixed this with NVIDIA’s help, thanks to a custom nvcamerasrc binary provided, however, for the nvarguscamerasrc there is no way to control the camera latency.

So, our question is, is there a way to reduce the latency in Libargus? Can NVIDIA provide a new Libargus binary with latency improvement?

The nvcamerasrc was replaced by nvarguscamerasrc after r28 release and provide full source after r32 release.

What’s current latency and what’s your target?

Our current latency in the camera capture is in average 91 ms. Right now we are already using the jetson clocks and we are using a framerate of 120.

Our target is a latency smaller than 70 ms.

The camera we are using is a Omnivision OV5693.

91 ms is glass to glass latency? Do you verify by argus_camera if any different?