Reduce G2G latency in Jetson Orin AGX

Hi team,
In Jetson Orin AGX with L4t35.2.1,

I am getting a glass to glass latency of ‘120ms’ with the below command,

gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! nvvidconv ! "video/x-raw(memory:NVMM), format=(string)I420, widht=(int)1920, height=(int)1080" ! nv3dsink

Is there anything that i can try to reduce this?

Let me know if you need any information
Thanks in advance,
Ashik

hello ashik.p1,

may I know what’s the sensor output frame-rate?
please see-also these two discussion threads for reference, Topic 263805 and Topic 273184.

Hi @JerryChang ,
Thanks for the suggestion. I will check them out and respond.

My sensor output frame rate is 30fps.

Tried this, but still observing a delay of 120ms.

hello p.ashik,

increasing ISP clock may not effect your results as you’re using nvv4l2camerasrc.

as you can see in the VI driver, it has dropped first two capture buffers, and it’s 3rd capture frame release to user space.
please try update the VI driver for your use-case to reduce G2G latency.
for instance,
$public_sources/kernel_src/kernel/nvidia/drivers/media/platform/tegra/camera/vi/channel.c

void release_buffer()
{
...
        if (chan->capture_state != CAPTURE_GOOD || vbuf->sequence < 2) 
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)
                buf->state = VB2_BUF_STATE_REQUEUEING;
#else
                buf->state = VB2_BUF_STATE_ERROR;
#endif

    vb2_buffer_done(&vbuf->vb2_buf, buf->state);

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.