[Bug 780053] rawvideoparse: Stride/Offset no longer usable from gst-launch

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Mar 20 21:02:05 UTC 2017


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

Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |753754

--- Comment #13 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
In bug 753754, I'm proposing some new APIs that would allow having a single
property. As of today, we could already set the property:

  Gst.util_set_object_arg (e, "plane-strides", "<320,160,160>")

Or if you have a Python list:
  Gst.util_set_object_arg(e, "plane-strides", '<{}>'.format(','.join(map(str,
a))))

But you could not set that. You also could not get/set from GstStructure, but
that's a different subject. I also added the ability to transform
GST_TYPE_ARRAY/LIST to/from G_TYPE_VALUE_ARRAY. I then added to helpers to
get/set those property using GValueArray. I know GValueArray is deprecated, but
it's the only matching type in GLib for our list/array (even though we
generally have the same type for the entire list). So the other way to get/set
those property would be:

  a = GObject.ValueArray()
  a.append(320)
  a.append(160)
  a.append(160)
  Gst.util_set_object_arrray (e, "plane-strides", a)
  ret, b = Gst.util_get_object_array (e, "plane-strides")
  b.get_nth(0)
  ...

If that sound acceptable to you, we can then stay with a single property, and
probably remove the second property in audiomixmatrix before 1.12 release.

-- 
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