PbUtils with GStreamer 1.0 in Python

Thibault Saunier tsaunier at gnome.org
Thu Jun 11 01:20:46 PDT 2015


Hello seb,

You can do:

  In [7]: from gi.repository import Gst
  In [8]: Gst.init(None)
  In [9]: from gi.repository import GstPbutils
  In [10]: GstPbutils.EncodingContainerProfile ("ogg", None ,
Gst.Caps("application/ogg"), None)
  Out[10]: <EncodingContainerProfile object at 0x7f576bd4cea0
(GstEncodingContainerProfile at 0x7f577d30e760)>

You should have a look at the documentation:
https://lazka.github.io/pgi-docs/#Gst-1.0

Regards,

Thibault Saunier


On Thu, Jun 11, 2015 at 9:57 AM, S├ębastien FENET
<sebastien.fenet at yahoo.fr> wrote:
> Hi,
>
> I'm trying to port some Python code from Gstreamer 0.10 to Gstreamer 1.0.
>
> In this code, I was using an "encodebin" element. To this end, I had to
> create some EncodingProfiles. They were created with something like that:
>
> [...]
> import gst.pbutils
> [...]
> profile = gst.pbutils.EncodingContainerProfile ("ogg", None ,
> gst.Caps("application/ogg"), None)
>
> I can't find a way to reconduct this with Gstreamer 1.0. In fact, I didn't
> find Pbutils... Could anyone help with that?
>
> Thanks!
> Seb.
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


More information about the gstreamer-devel mailing list