pgi-docgen icon indicating copy to clipboard operation
pgi-docgen copied to clipboard

Document GStreamer plugins

Open sbstp opened this issue 7 years ago • 2 comments

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.

sbstp avatar Jun 26 '17 02:06 sbstp

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

lazka avatar Jun 26 '17 06:06 lazka

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

sbstp avatar Jun 26 '17 21:06 sbstp