How to use Gst.Fraction in python

Thibault Saunier tsaunier at gnome.org
Thu Aug 25 02:04:40 UTC 2016


Hello,

You should make sure gst-python is installed and you will then be able
to use it (it basically adds overrides to the PyGObject runtime
generated bindings).

Once you get it working you can use it simple like
doing`Gst.Fraction(1, 2)` and such.

Br,

Thibault

On Wed, Aug 24, 2016 at 10:20 AM, Arjen Veenhuizen
<arjen.veenhuizen at tno.nl> wrote:
> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list