[gst-devel] OpenGL context: GTK X overlay v/s SDL v/s Clutter v/s Wx

Alexandre Quessy alexandre at quessy.net
Tue Apr 20 09:34:02 CEST 2010


Hello,

2010/4/19 Stefan Kost <ensonic at hora-obscura.de>:
> Alexandre Quessy wrote:
>> Hello everyone,
>> I am still hesitating between SDL, GTK, WxWidgets and Clutter, (not
>> QT) for creating an OpenGL context for the Toonloop 2.x application.
>>
>> So far, I have a prototype in SDL, but I am still unsatisfied about
>> how SDL 1.2 handles the fullscreen mode on Ubuntu GNU/Linux. I have
>> done some very satisfying prototype with GtkGLExt regaring the
>> fullscreen mode, but I still didn't put any Gstreamer video in it. As
>> for the current GTK examples, they seem to crash very often on my
>> computers, so I gave them up. I don't want to write an unstable
>> application! (the error messages says that an X resource is not
>> available)
>>
> Please tell use which example is unstable for you and what is the exact
> error. As such gstreamer and gtk is a solid team.
>
> Stefan

As you can see in the shell log below, setting the X window ID
sometimes fails. It seems like sometimes the X resource is not
available. In some cases, the window appears to be grey, and nothing
happens until the application crashes. Sometimes it works, but
sometimes it doesn't. I am testing the gtkxoverlay example that is
shipped with the current Git version of gst-plugins-gl. I am running
an up-to-date Ubuntu Karmic 9.10 on an Intel Core 2 Duo 2.2 GHz with 2
Gb of RAM and the Nvidia driver.


aalex at plouf:~/src/gst-plugins-gl/tests/examples/gtk/gtkxoverlay$ ./gtkxoverlay
setting xwindow id
Close
aalex at plouf:~/src/gst-plugins-gl/tests/examples/gtk/gtkxoverlay$ ./gtkxoverlay
setting xwindow id
gtkxoverlay: ../../src/xcb_io.c:176: process_responses: Assertion
`!(req && current_request && !(((long) (req->sequence) - (long)
(current_request)) <= 0))' failed.
Aborted
aalex at plouf:~/src/gst-plugins-gl/tests/examples/gtk/gtkxoverlay$ ./gtkxoverlay
setting xwindow id
gtkxoverlay: Fatal IO error 11 (Resource temporarily unavailable) on X
server :0.0.
aalex at plouf:~/src/gst-plugins-gl/tests/examples/gtk/gtkxoverlay$ ./gtkxoverlay
setting xwindow id
Close
aalex at plouf:~/src/gst-plugins-gl/tests/examples/gtk/gtkxoverlay$ ./gtkxoverlay
setting xwindow id
Close
aalex at plouf:~/src/gst-plugins-gl/tests/examples/gtk/gtkxoverlay$ ./gtkxoverlay
setting xwindow id
Close
aalex at plouf:~/src/gst-plugins-gl/tests/examples/gtk/gtkxoverlay$ ./gtkxoverlay
setting xwindow id
gtkxoverlay: Fatal IO error 11 (Resource temporarily unavailable) on X
server :0.0.


Regards,
Alexandre



>> Before putting 1-2 days in porting the examples to GtkGLExt, I would
>> like to hear some success stories or advices regarding one of those
>> toolkits or another. So, does anyone has good reasons to recommend one
>> or another? Maybe Clutter would be to be considered? I draw my shapes
>> and textures using some low-level vertex manipulation, and I use GLSL
>> shaders and such.
>>
>> Thanks,
>>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Alexandre Quessy
http://alexandre.quessy.net/




More information about the gstreamer-devel mailing list