pygobject / pgi-docgen

API Documentation Generator for PyGObject
https://lazka.github.io/pgi-docs/
GNU Lesser General Public License v2.1
127 stars 36 forks source link

Document GStreamer plugins #149

Open sbstp opened 7 years ago

sbstp commented 7 years ago

This is part of a gstreamer plugin for the opus codec. I need access to this enum to set the plugin's property to a value from this enum.

It's not documented on the website and I don't know how to access it.

lazka commented 7 years ago

Hm, producing any documentation for GStreamer codecs would be vastly different to anything currently implemented. We should be able to list properties and new types which have GType at least through introspection...

You can just use integers in the mean time:

BITRATE_TYPE_CBR = 0
BITRATE_TYPE_VBR = 1
BITRATE_TYPE_CONSTRAINED_VBR = 2
sbstp commented 7 years ago

Someone on the gstreamer irc suggested using Gst.util_set_object_arg(oenc, 'bitrate_type', 'constrained-vbr'), and indeed, it works well.