How to get the capture timestamp from camera

Hi, guys:
I want get capture timestamp from /dev/video0,any idea?


One option to get the frame/buffer timestamps is using GStreamer. The quick way would be a pipeline like this one, please note the usage of silent=false and the -v option

gst-launch-1.0 v4l2src device=/dev/video0 !  "video/x-raw, format=(string)UYVY, width=(int)1280, height=(int)800, framerate=(fraction)30/1" ! fakesink silent=false -v