gtksink and gtkglsink issue

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

gtksink and gtkglsink issue

Russel Winder
Hi,

Me TV uses either a gtksink or a gtkglsink (in a playbin) as the final sink
for the video/x-raw stream. It seems that when the stream stops, the
gtk::DrawingArea or gtk::GLArea retain the last frame. This is fine if the
stream restarts as the new stream quickly changes the image. However not all
channels have video streams, some are audio only. In this case that last frame
of the old channel is retained.

Is there an easy way of clearing the image?

Once I get the MPEG-TS stuff working, I will need to write the radio station
data to the GTK display area as a real television does. I guess this will mean
writing to the DrawingArea/GLArea directly as the gtksink and gtkglsink
elements seem only to have video/x-raw pads.
 
--
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: gtksink and gtkglsink issue

Matthew Waters
Hi,

gtksink/gtkglsink in theory should probably invalidate their contents when changing state down to READY.  You may be able to remove the GtkWidget from the UI but I don't think readding it back again works in all cases.

It is perfectly workable to use GtkOverlay to render things over the top of the gtk(gl)sink output.

Cheers
-Matt

On 1/6/20 8:32 pm, Russel Winder wrote:
Hi,

Me TV uses either a gtksink or a gtkglsink (in a playbin) as the final sink
for the video/x-raw stream. It seems that when the stream stops, the
gtk::DrawingArea or gtk::GLArea retain the last frame. This is fine if the
stream restarts as the new stream quickly changes the image. However not all
channels have video streams, some are audio only. In this case that last frame
of the old channel is retained.

Is there an easy way of clearing the image?

Once I get the MPEG-TS stuff working, I will need to write the radio station
data to the GTK display area as a real television does. I guess this will mean
writing to the DrawingArea/GLArea directly as the gtksink and gtkglsink
elements seem only to have video/x-raw pads.
 

_______________________________________________
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

signature.asc (499 bytes) Download Attachment