How to extract timestamp associated with every frame in USB3 Vision Camera in Deepstream

Jetpack 4.2.1

I work with USB3 Vision cameras .I want to get correct timestamp of each frame. But by calculating buf->pts for each frame, I get difference time 33ms between two successive frames, and I know it’s impossible. It means that we don’t have any frame loss!!! Because my project could not run on 33 frame per second . Also I think industrial cameras could gives correct time of each frame.

But how could I get correct timestamp for each frame in GenICam cameras in deepstream ?

Hi,
It looks reasonable to see 33ms if the source runs in 30fps. For reference, please share information about the source:

$ v4l2-ctl -d /dev/videoX --list-formats-ext

But, I want to get correct timestamp for usb carmera, not video.

Hi,
DeepStream SDK is based on gstreamer and uses v4l2src plugin for USB cameras. It is open source:
gst-plugins-good/gstv4l2src.c at master · GStreamer/gst-plugins-good · GitHub
Looks like there is certain logic about timestamp calculation. Probably it is not suitable in your usecase. You may try to customize it and rebuild v4l2src plugin.