How to use Gst.Fraction in python

Arjen Veenhuizen arjen.veenhuizen at tno.nl
Wed Aug 24 13:20:50 UTC 2016


I want to set the "framerate" and "pixel-aspect-ratio" properties in the
videoparse element. These properties are of the type "Fraction" according to
gst-inspect-1.0.

Unfortunately, I cannot get this to work with Gst.Fraction.

The following attempts all fail:


I came across this  Gst.py
<https://cgit.freedesktop.org/gstreamer/gst-python/tree/gi/overrides/Gst.py>  
file in gst-python, but I am unsure how to use it.

Any thoughts?

Ps. using git head of a couple of weeks ago





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-use-Gst-Fraction-in-python-tp4679228.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list