How to get SOF and EOF timepstamps - Orin NX jp5.1.2

Hi,

I am using Orin NX JP5.1.2 R -35.4.1.
I am using basic ov5693 driver for my camera.
I want to find the timestamp between SOF and EOF of one of my cameras , how do i do it?

Thanks

hello san1998,

I assume you’re capturing through libargus pipeline.
please refer to Argus::Ext::ISensorTimestampTsc class, you may using getSensorSofTimestampTsc(), and getSensorEofTimestampTsc() to obtain VI HW (SOF/EOF) timestamp based on tegra wide timestamp system counter (TSC).

@JerryChang

I am capturing using v4l2src

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, width=1920, height=1080, ! videoconvert ! fpsdisplaysink text-overlay=false sync=false -v

hello san1998,

please dig into VI driver to obtain SOF/EOF timestamps.
for instance,
$public_sources/kernel_src/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi5_fops.c

static void vi5_capture_dequeue()
{
        ts = ns_to_timespec64((s64)descr->status.sof_timestamp);
        ts = ns_to_timespec64((s64)descr->status.eof_timestamp);
1 Like

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