<div dir="ltr"><div>Hello,<br><br>I think when you say Gtk3 you mean GStreamer 1.0 with PyGObject.<br><br>Do you have gst-python installed? It is necessary to be able to create GstElement subclasses.<br><br></div><div><div class="gmail_extra">
You can have a look at that example: <a href="http://cgit.freedesktop.org/gstreamer/gst-python/tree/examples/plugins/python/sinkelement.py">http://cgit.freedesktop.org/gstreamer/gst-python/tree/examples/plugins/python/sinkelement.py</a><br>
<br></div><div class="gmail_extra">Regards,<br><br></div><div class="gmail_extra">Thibault Saunier<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 17, 2014 at 12:07 AM, Manuel <span dir="ltr"><<a href="mailto:manuel@wenns-um-email-geht.de" target="_blank">manuel@wenns-um-email-geht.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Custom Gst.Element in GTK3<br>
--------------------------<br>
Hi all,<br>
<br>
I wrote a gst.Element (GTK2), which is a simple filter that just<br>
forwards all buffers it receives on the sink-pad to the src-pad. Later I<br>
will grab some information from the buffer before forwarding it. (More<br>
precisely I will grab the timestamps and show some text based on the<br>
time, like subtitles). The GTK2-version works fine.<br>
<br>
Today I tried to change my code so that it uses the GTK3<br>
gi.repository-package.<br>
Although the new class looks almost the same it doesn't work.<br>
<br>
This is the error printed on the console:<br>
Error: Internal error: can't allocate images xvimagesink.c(979):<br>
gst_xvimagesink_show_frame ():<br>
/GstPlayBin:MultimediaPlayer/GstPlaySink:playsink/GstBin:vbin/GstBin:timed-video-bin/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:<br>
We don't have a bufferpool negotiated<br>
<br>
Here is my GTK2-version: <a href="http://pastebin.com/J2gHfvS4" target="_blank">http://pastebin.com/J2gHfvS4</a><br>
And here the GTK3-version: <a href="http://pastebin.com/9u8zzcTk" target="_blank">http://pastebin.com/9u8zzcTk</a><br>
<br>
This is a scenario:<br>
A video-file is played using playbin. The playbin's video-sink is set to<br>
a Gtk.Bin that combines my own Gst.Element with textoverlay and an<br>
autovideosink.<br>
<br>
NOTE: If you remove the textoverlay from the GTK3 example then at least<br>
the audio is playing ;)<br>
<br>
I would be very grateful for your help. :)<br>
<br>
Best Regards<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div></div></div>