[Bug 753754] Add GstValueList and GstValueArray support to gst-python

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Mar 17 07:35:40 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=753754

--- Comment #6 from Arne Caspari <arne at unicap-imaging.org> ---
(In reply to Nicolas Dufresne (stormer) from comment #5)
> How does this affect v4l2src ?

It affects any caps that may contain a value list, for example:


>>> from gi.repository import Gst
>>> Gst.init(())
[]
>>> src = Gst.ElementFactory.make("v4l2src")
>>> src.set_property("device", "/dev/video1")
>>> src.set_state(Gst.State.READY)
<enum GST_STATE_CHANGE_SUCCESS of type Gst.StateChangeReturn>
>>> caps = src.pads[0].query_caps()
>>> s = caps.get_structure(0)
>>> s.to_string()
'video/x-bayer, format=(string)gbrg, width=(int)744, height=(int)480,
pixel-aspect-ratio=(fraction)1/1, framerate=(fraction){ 20000/263, 60/1, 30/1,
25/1, 15/1, 15/2, 5/1 };'
>>> s.get_value("framerate")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unknown type GstValueList
>>>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list