Some obscure features might still be broken or unavailable through PyGI, so if you end up digging into the C code, you'll want to read about how the introspection annotations work. Although from a C perspective, you can usually figure out the equivalent Python API fairly easily once you get the hang of PyGI. To whet your appetite, here's a simple (less than 100 lines) PyGST video player, and here's the PyGI + GStreamer1.0 + Gtk3 port of that same simple video player.Īlso see porting-to-1.0.txt. This is a guide to porting your PyGST app to GStreamer1.0 + PyGI. ![]() However, there are also API changes in GStreamer itself, although these changes are generally more subtle. The biggest change for Python users will be using the introspected API rather than the static python-gst bindings. You can use GStreamer 1.0 from Python (2 or 3) using PyGI like this:Īlthough currently the default will be Gst 1.0 if available, it's still a good idea to gi.require_version('Gst', '1.0') so that the code will clearly fail if Gst 1.0 isn't available. ![]() sudo apt-get install python-gi python3-gi \.This should give you all the packages you likely want: sudo apt-add-repository ppa:gstreamer-developers/ppa.To use the back-ported packages for Ubuntu 12.04 LTS, add the GStreamer developers PPA like this:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |