API to get dynamic properties of a camera

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

API to get dynamic properties of a camera

Astarag Chattopadhyay
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.

Thanks in advance,
Astarag

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: API to get dynamic properties of a camera

Nicolas Dufresne-5


Le sam. 16 nov. 2019 05 h 55, Astarag Chattopadhyay <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel