RedSoxFan
RedSoxFan

Reputation: 634

Jython Gstreamer

Does anyone know where I can find a tutorial on how to use GStreamer with Jython? I have tried searching but with no luck. Using the Gstreamer-Python bindings I can get a python file to run with python but jython gives me ImportError: No module named pygst.

Upvotes: 3

Views: 313

Answers (2)

stewori
stewori

Reputation: 576

Keep an eye on JyNI (http://www.jyni.org). It is currently not able to use the GStreamer-bindings but hopefully will be in near future.

Until then you can use JEP (https://github.com/mrj0/jep) or JPY (https://github.com/bcdev/jpy) to leverage the Python gstreamer-bindings in Java and thus also in Jython.

Also consider that JavaFX (included in Java as of Java8) has support for a number of streaming media formats. This would be the cleanest solution if you just want to play a video I suppose (because it adds no further dependencies, at least not in Java8-case).

Finally, consider to compile the Java-bindings for your system in 64 bit mode. Usually this is not too complicated via autotools etc.

Upvotes: 1

Cem Güler
Cem Güler

Reputation: 635

I suspect that it uses c bindings so you can not use in jython, sorry.

Upvotes: 0

Related Questions