Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyGObject or PyGtk

I need to write a program on my Raspberry Pi to get a video and audio stream with Gstreamer from network and play them.(I have two stream. one for video and one for audio) and i need a custom GUI. I followed the below link :

http://www.jonobacon.org/2006/08/28/getting-started-with-gstreamer-with-python/

It used PyGtk and I want to switch to PyGObject. my question is : does PyObject support Gstreamer as well as PyGTK? or I should stuck to PyGTK? Or do you have a better solution to do that on Raspberry Pi

like image 916
user3397145 Avatar asked Oct 16 '25 15:10

user3397145


1 Answers

Considering the age of the article you linked, you might already know that there are newer versions of the libraries around. PyGtk and PyGst don't provide bindings for these.

Python GObject Introspection supports the Gkt-3.0 and Gst-1.0 versions. So you're safe using PyGObject for your program.

There's a quite good documentation on lazka.github.io/pgi-docs/ covering a lot more bindings as well.

Besides if you're going to build an audio/video player have a look at the playbin element. It's a complete pipeline supporting an audio-, a video- and a text-sink at once.

like image 162
tynn Avatar answered Oct 18 '25 17:10

tynn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!