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 649849 - v4l2src: missing some controls for V4L2_CID_*
v4l2src: missing some controls for V4L2_CID_*
Status: RESOLVED DUPLICATE of bug 545519
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.28
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 622482
Blocks:
 
 
Reported: 2011-05-10 04:33 UTC by Aaron VanDevender
Modified: 2013-07-18 09:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Aaron VanDevender 2011-05-10 04:33:05 UTC
The v4l2src element probes the device to decide which controls to expose via it's GstColorBalance interface. There are a lot of V4L2 parameters that would be nice to control via GStreamer that we do not expose. Adding them to the switch statement in gst_v4l2_fill_lists() in sys/v4l2/v4l2_calls.c would expose them to GStreamer and make the underlying V4L2 control parameters useful. Good ones to add include:

V4L2_CID_EXPOSURE_AUTO
V4L2_CID_EXPOSURE_ABSOLUTE
V4L2_CID_EXPOSURE_AUTO_PRIORITY
V4L2_CID_FOCUS_ABSOLUTE
V4L2_CID_FOCUS_RELATIVE
V4L2_CID_FOCUS_AUTO
V4L2_CID_ZOOM_ABSOLUTE
V4L2_CID_ZOOM_RELATIVE
V4L2_CID_ZOOM_CONTINUOUS
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2011-05-12 11:01:49 UTC
Totally agree. Those should be exposed via GstPhotoGraphy interface which we would need to get moved to base then.
Comment 2 Edward Hervey 2013-07-18 06:02:47 UTC
Duplicate of bug #545519 ?
Comment 3 Sebastian Dröge (slomo) 2013-07-18 09:14:58 UTC
Also there's generic support for arbitrary CIDs now:

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



Still a nicer interface would be great, and that's bug #545519

*** This bug has been marked as a duplicate of bug 545519 ***