v4l2


Timestamp for v4l2 image capture


I have a Linux application that processes camera images. Currently I provide buffers to the v4l2 kernel subsystem that are filled with image data.
However I need to know, as exact as possible, when this frame was captured (by the camera). With buffers, I may not know precisely when this happened as I may not be able to process all frames in a timely manner (i.e. I may request an image at a time when it is already available for a few milliseconds).
What I am looking for is a way to determine (or estimate) the time an image was captured (or the age of it), e.g. by having the kernel record it somehow, or in worst case by not having images streamed to me but rather only sent upon my explicit request.
Environment: UVC web camera, Linux kernel 2.6.3x, V4L2 API
The v4l2_buffer structure has a timestamp field. But see also this question: Where does v4l2_buffer->timestamp value starts counting?

Related Links

V4L2 frame rate maxes out at ~10FPS… why?
Any known-to-work example in C using VIDIOC_S_CROP in V4L2?
Getting framesize in V4L2 with VIDIOC_ENUM_FRAMESIZES
A4Tech webcam and avconv (ffmpeg) captures same frame all the time
yavta cause kernel panic (ov5640 with DM3730)
V4L2 preview with callback instead of polling-loop
Function call ioctl with VIDIOC_QUERYCAP request doesn't return
V4L2 difference between JPEG and MJPEG pixel formats
v4l2-ctl not changing from default webcam
Where I can find example in using v4l2 codec driver
Timestamp for v4l2 image capture
Where does v4l2_buffer->timestamp value starts counting?

Categories

HOME
internet-explorer
stanford-nlp
sql-server-2014
cors
pelican
webvr
watson-iot
where
artifactory
aggregation-framework
collision-detection
sitemap
soap-client
angularjs-ng-repeat
coding-style
normals
aspectj
jinja2
dompdf
jquery-easyui
printf
aiml
gpo
openoffice-basic
webgl-earth
gomobile
minimagick
quality-center
pixels
dynamic-memory-allocation
typeclass
ocl
apm
imageprocessor
bootcamp
mootools
aweber
maven-2
abide
strategy-pattern
mapquest
word-wrap
observer-pattern
keychain
definition
irr
scrapinghub
gridgain
ocpjp
spring-ide
noise
beanshell
visualizer
sharpdevelop
nservicebus6
grib
copy-constructor
firebase-job-dispatcher
alfred
eclipse-mars
virtualenvwrapper
rowname
jigsaw
sprockets
android-xmlpullparser
weblogic-maven-plugin
php-java-bridge
system-integration
jde
jmap
code-translation
skscene
php-gd
joomla3.3
callfire
wingdb
pymol
qxorm
vundle
redmine-plugins
sqldatasource
nativequery
xtify
xcode5.1
dylan
objectdatasource
listpicker
symbian3
inflate
teamsystem
netzke
waveout
bash4
pinchzoom
mscorlib
execjs
mismatch
http-response-codes
conditional-operator
p4.net
versions
atmega16

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile