[gst-devel] gdk_pixbuf output sink?
Thomas Vander Stichele
thomas at apestaart.org
Wed Aug 20 10:13:03 CEST 2003
> I'm new to the list, and I have an output sink question. I've
> reconstructed the example from the gstreamer talk at GUADEC this summer,
> and have modified it to read video data (mpeg1, using the mpeg2dec
> decoder). I'm currently using the xvideosink output sink, but it's not
> _quite_ meeting my needs.
What is it about xvideosink that doesn't meet your needs ?
I believe gst-player contains some sort of gtk-ish abstraction for the
videosink that allows it to embed it in other apps, maybe that is more
to your taste.
Julien, David, maybe you can comment here ?
> I'm developing a GTK2 application that plays back mpeg1 video, and I
> want to composite the video data into a GdkPixbuf, display metadata on
> top of the imagery, and then render that frame to a GtkDrawingArea.
That would probably work, but I have a feeling that this would be very
slow and, if you want full FPS, will probably not succeed :)
> Does anybody have hints on how I can get towards this goal? Adding
> another input source is not the answer here, since I do not have a 1:1
> correspondence between the video data and my custom metadata.
I don't know how gdkpixbuf itself works. But basically, you would write
a plugin that accepts the colorspace/video format that gdkpixbuf handles
(which I assume would be some raw format). The plugin would encode to
the pixbuf format (if this takes any encoding at all). You could
connect it to fakesink, and connect a signal to the handoff signal on
fakesink, which would give you pointers to the buffer data each time it
As a source you would take whatever source you need, and inbetween
source and your plugin you'd put a colorspace convertor, either
colorspace or the new lcs one (depending on what gst version you use).
Be advised that we are generally against "plugins that feed data to apps
through the fakesink hack". We promote that everything be done through
a complete gstreamer pipeline. Even overlaying your metadata would be
better done in a pipeline, and already works (though I need to sync back
some hacking I did on Gustavo's overlaying plugin). Doing your work
that way benefits all of GStreamer too.
So let us know what doesn't work for you with xvideosink, and we can
take it from there :)
Dave/Dina : future TV today ! - http://davedina.apestaart.org/
<-*- thomas (dot) apestaart (dot) org -*->
Please put me somewhere near the sea
With one carrion angel waiting for me
who'll be holding my heart in it's hand
But most of all I'd like to go with a friend
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.rug.ac.be/
More information about the gstreamer-devel