API to get dynamic properties of a camera

Nicolas Dufresne nicolas at ndufresne.ca
Sat Nov 16 13:25:49 UTC 2019


Le sam. 16 nov. 2019 05 h 55, Astarag Chattopadhyay <astarag2008 at gmail.com>
a écrit :

> I want to get the dynamic properties of camera like white balance, exposure,
> contrast etc. Is there any API that would get this for me?
> I know it can be done using v4l2src but I want some higher level API.
>

Not that I know of. I believe that after the kernel ioctl, you have a
command line called v4l2-ctl. Note that on most cameras (uvc) these values
are just firmware configuration. To get the per image applied metadata, you
need to open and grab these using the second video device expose by recent
kernel.

We don't yet have GStreamer support for that. The metadata will be in HW
specific form and needs to be parsed. UVC has a shared format across
cameras.

Overall, it seems something that should be abstracted by libcamera in the
future.


> Thanks in advance,
> Astarag
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191116/2bb98b7a/attachment.html>


More information about the gstreamer-devel mailing list