[Bug 768195] v4l2: Add support for device capability
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Fri Jul 8 17:38:45 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=768195
--- Comment #9 from Luis de Bethencourt <luis at debethencourt.com> ---
Created attachment 331105
--> https://bugzilla.gnome.org/attachment.cgi?id=331105&action=edit
Fix capture of multiplanar devices
This can be tested by doing:
$ sudo modprobe vivid node_types=0x101 output_types=0x1 input_types=0x3
num_inputs=1 num_outputs=1 multiplanar=2
$ gst-launch-1.0 v4l2src device=/dev/video2 io-mode=dmabuf ! fakesink
Before the patch:
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to
enumerate possible video formats device '/dev/video2' can work with
After the patch:
Playback \o/
This happened because in
sys/v4l2/gstv4l2object.c:gst_v4l2_object_fill_format_list():
if (v4l2_ioctl (v4l2object->video_fd, VIDIOC_ENUM_FMT, format) < 0) {
Would send the wrong format, and the vivid driver would return ENOTTY since you
can't do VIDIO_ENUM_FMT with single-planer on a multiplanar device, or
viceversa.
--
You are receiving this mail because:
You are the QA Contact for the bug.
More information about the gstreamer-bugs
mailing list