After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 545519 - [v4l2src] only exposes a limited set of properties
[v4l2src] only exposes a limited set of properties
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: 1.1.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 649849 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-07-30 14:02 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2014-12-09 21:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Sauer (gstreamer, gtkdoc dev) 2008-07-30 14:02:51 UTC
v4l2src currently exposes mandatory properties as gobject properties and uses three interfaces for optional things:
  GstTuner
  GstColorBalance
  GstVideoOrientation
It also implements GstPropertyProbe (for probing device-names?)

The v4l2 standard defines many custom controls that would be useful to be controlled from applications. drivers can also register own custom controls.

How to get the to the apps?
1.) Expose the fd. Ugly.
2.) For known properties define more interfaces. E.g. a PhotoCaptureInterface for AutoWhiteBalance,AutoExposure,... . There are new control commin all the time, so it needs constant maintenance.
3.) Create a control class on-the-fly and use it via ChildProxy
4.) <your idea here>
Comment 1 Sebastian Dröge (slomo) 2011-05-19 07:56:21 UTC
I think 3) might be the best solution
Comment 2 Sebastian Dröge (slomo) 2013-07-18 09:14:58 UTC
*** Bug 649849 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Dröge (slomo) 2013-07-18 09:16:08 UTC
There's generic support for arbitrary CIDs now, still a interface for making this more usable would be great ;) We should probably also implement the GstPhotography interface (no it isn't yet!).

commit 0fb59275b0e6d264fa971b077cdee11362f819e1
Author: Michael Olbrich <m.olbrich@pengutronix.de>
Date:   Mon May 20 16:45:37 2013 +0200

    v4l2: add a property for arbitrary v4l2 controls

    This makes it possible to set any controls that can be set with
    VIDIOC_S_CTRL.
    The controls are set when the property is set (if the device is open)
    and when the device is opened.

    https://bugzilla.gnome.org/show_bug.cgi?id=698837
Comment 4 Nicolas Dufresne (ndufresne) 2014-03-29 20:16:41 UTC
I wonder how such a interface would work, any idea ? Shall I create another bug for the Photo interface ? (also would that depends on having renegotiation support, or is photo interface no changing the settings ?)
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2014-03-30 09:47:23 UTC
The photo iface mostly sets properties that won't require renegotiation. The main idea of the photo iface is to map the features to hardware or plug software elements. It might be so that the iface is too broad though (e.g. one has Auto-Whitebalance in hardware but not Auto-Focus).
Comment 6 Nicolas Dufresne (ndufresne) 2014-03-30 14:26:47 UTC
Thanks Stefan, that reminds me that this interface is in -bad, while v4l2 stack is in good. We would have to fixate the API in order to do that, and has you said add maybe some capabilities flags if not yet there. Definatly worst a separate bug.
Comment 7 Nicolas Dufresne (ndufresne) 2014-12-09 21:09:42 UTC
Let's considered this solved, since it is through what Micheal added. If someone want photo, he will need to get photo interface in -base first anyway.