gtkglsink and gtksink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gtkglsink and gtksink

Russel Winder
The context is using a playbin using a gtkglsink or gtksink so as to allow for
overlay in a GTK+3 UI.

Creating instances of gtkglsink depends only on the appropriate software being
installed.  But it might still not work, it is only when getting the playbin
to process a stream is it discovered whether the gtkglsink will initialise –
which apparently it won't on a Lenovo ThinkPad T500, presumably because of the
dual graphics system.

Is there a way of knowing, or discovering, whether a gtkglsink will work
though it can be created? So as to avoid handling things when the playbin
starts?

Has anyone got a URL to a code that handles gtkglsink startup failure and
replace the gtkglsink with a gtksink and restart the playbin?  


--
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gtkglsink and gtksink

Nicolas Dufresne-5
Le jeudi 07 juin 2018 à 15:24 +0100, Russel Winder a écrit :

> The context is using a playbin using a gtkglsink or gtksink so as to allow for
> overlay in a GTK+3 UI.
>
> Creating instances of gtkglsink depends only on the appropriate software being
> installed.  But it might still not work, it is only when getting the playbin
> to process a stream is it discovered whether the gtkglsink will initialise –
> which apparently it won't on a Lenovo ThinkPad T500, presumably because of the
> dual graphics system.
>
> Is there a way of knowing, or discovering, whether a gtkglsink will work
> though it can be created? So as to avoid handling things when the playbin
> starts?
>
> Has anyone got a URL to a code that handles gtkglsink startup failure and
> replace the gtkglsink with a gtksink and restart the playbin?  

I don't, but I guess this could be an option. Just check the element
emitting the error (checking GST_MESSAGE_SRC(msg) or
GST_MESSAGE_SRC_NAME(msg)). What I would likely want to try, is to take
the sink, and set it's state to READY, normally it should be
sufficient, but because of GL is probably a bit complex. There is no
reason if GL works on your system with dual graphics for GStreamer GL
to fail, that seems like a bug.

>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel