Playing a video in a GTK window example
Nicolas Dufresne
nicolas at ndufresne.ca
Wed Jun 12 14:22:07 UTC 2019
Le mercredi 12 juin 2019 à 09:42 -0400, pisymbol . a écrit :
>
>
> On Wed, Jun 12, 2019 at 9:20 AM pisymbol . <pisymbol at gmail.com> wrote:
> >
> > On Tue, Jun 11, 2019 at 11:19 PM Guillaume Desmottes <guillaume.desmottes at collabora.com> wrote:
> > > Hi there,
> > > The gtksink and gtkglsink in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/tree/master/tests/examples/gtk
> > > should be helpful to you.
> > >
> >
> > Great! I know them. Now an example that uses them? :-)
> >
> >
>
> Full disclosure: I have now gotten it to work from a tip by Mattias. My point though is that in order to link videoconvert to gtksink you need to expose videoconverts src as a ghost pad which is no where to be found in the documentation.
>
> What worked for me (the missing link - literally):
>
> ghostpad = Gst.Ghostpad.new("sink", videoconveter_element.get_static_pad('src'))
> bin.add_pad(ghotspad)
>
> And then I was able to link in gtksink and pack it using gtksink.props.widget. This stuff needs to be documented since the overwhelming majorities that turn up on Google simply do not work with the current API.
Ghosting is not specific to using gtksink. If you use custom bins with
pads, you have to learn how to ghost the pads.
>
> -aps
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190612/58adee50/attachment.sig>
More information about the gstreamer-devel
mailing list