Hello,
We’re seeing unexpected latency (around 70ms) when doing a simple local preview (without any encoding and networking transport) of the video on our Jetson TX2 with three camera setup: Three Synchronized 4K Cameras for NVIDIA Jetson TX2. We have enabled the boost mode on Jetson already.
The issue seems to be related to previously mentioned number of buffer queues on V4L2 video driver: https://devtalk.nvidia.com/default/topic/934387/jetson-tx1/one-frame-latency-delay-in-tx1-v4l-stack/post/5241547/#5241547.
Here’s the code snippet:
$TOP/kernel/drivers/media/platform/tegra/camera/mc_common.h
#define QUEUED_BUFFERS 4
$TOP/kernel/drivers/media/platform/tegra/camera/channel.c
static void tegra_channel_ring_buffer(){
...
/* release buffer N at N+2 frame start event */
if (chan->num_buffers >= (QUEUED_BUFFERS - 1))
free_ring_buffers(chan, 1);
What would be the procedure to change QUEUED_BUFFERS (from 4 to 2), compile and deploy only the library touched by this change?
Any other suggestions on how to lower the capture latency are more than welcomed.
Thank you!
B.