質問

I'd like to see some examples that uses PyGObject and GStreamer, but I could not find anything on web.

The only information available in the official website is the link to the source code for the Python binding: http://gstreamer.freedesktop.org/modules/gst-python.html

As you can see in the page on the link above:

GStreamer python overrides for the gobject-introspection-based pygst bindings.

PyGObject is used, but the examples on the web are out dated and could not convert them to use it.

I'd like also to ask about the documentation, there is any documentation for the Python binding of GStreamer?

Thanks.

役に立ちましたか?

解決

A good way to turn up examples using the introspected bindings offered by pygobject 3 (in contrast to the "old" static bindings offered by pygobject 2 and pygtk) is to use "gi.repository" as a search keyword. For example, searching for "gi.repository gst" quickly leads to a simple media player and the examples listed in the Novacut porting guide, amongst other goodies.

On documentation, best to follow the C API reference and/or consult the relevant .gir files. API references for other languages able to use introspected binding are generally not yet available, although tools to create them from the intermediate .gir files created by gobject-introspection's g-ir-scanner are being worked on.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top