Hi,<br><br>I have found a way to implement the gstxoverlay interface and this is a link that demonstrates it : <a href="http://vulvteam.free.fr/gstreamer/gstreamer_opengl.zip" target="_blank">http://vulvteam.free.fr/gstreamer/gstreamer_opengl_3.zip</a> is a zip file (9 MO) that contains 3 avi example files:<br>
<br>videoxoverlay.avi: The Id of a QWidget is passed to the glimagesink through the gstxoverlay interface<br>cubexoverlay.avi: The Id of a QGLWidget is passed to the glimagesink through the gstxoverlay interface, the video is played over a &quot;rotating&quot; cube<br>
mousexoverlay.avi:The Id of a QWidget is passed to the glimagesink through the gstxoverlay interface, the video is played over a &quot;static&quot; cube. The mouse moves the cube.<br><br>I give again the previous links : <br>
<a href="http://vulvteam.free.fr/gstreamer/gstreamer_opengl.zip" target="_blank">http://vulvteam.free.fr/gstreamer/gstreamer_opengl_2.zip</a> <br><a href="http://vulvteam.free.fr/gstreamer/gstreamer_opengl.zip" target="_blank">http://vulvteam.free.fr/gstreamer/gstreamer_opengl.zip</a><br>
<br><br>Next step is to make a linux build in order to test this plugin on a Kunbutu for example. (it should work but I need to verify it)<br><br>But for now the plugin is finished and works fine on win32.<br><br>Sincerely<br>
<br>Julien I.<br><br><div class="gmail_quote">2008/5/6 Julien Isorce &lt;<a href="mailto:julien.isorce@gmail.com">julien.isorce@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>The third element, glvideomaker is now complete. It handles every
RGB-like. It also handles I420, YV12, YUY2, UYVY and AYUV, trough FBO
and GLSL. (GL flux to video flux). It must be connected to the
glgraphicmaker (symetric element).<br><br>To exposes the capabilities of the plugin I am working on, especially about colorspace conversion., I made other showcases : <a href="http://vulvteam.free.fr/gstreamer/gstreamer_opengl.zip" target="_blank">http://vulvteam.free.fr/gstreamer/gstreamer_opengl_2.zip</a> is a zip file (15.6 MO) that contains 3 avi example files.<br>

<br>It was not easy to manage multiple FBO and one FBO with multiple attached textures, especially correclty switching between them. Then shader programs for &quot;from GL to video conversion&quot;(glvideomaler) were much complex than &quot;from video to GL conversion&quot;(glgraphicmaker).<br>

But now I think it&#39;s ok.<br>And shader programs could be optimzed by everyone who want help, after I share the code.<br><br>So before to share the code I want to implement the gstxoverlay
interface. But I have to get ride of freeglut that is not an easy task.<br>If someone want to help me in this last task, it will be appreciated.<br><br>Other thing, I never tested my plugin on linux but I plan to do it. I
should work thank&#39;s to freeglut, I hope :P. But I am not really aware
with automake and autoconf. Help about this would be appreciated too.<br><br>I am sorry, when I started the plugin I would just make a &quot;patch&quot; for the existing one. But the now I see that the mecanism is completely different (some parts are similar and the existing code helped me a lot at start). Also the existing code was less commented and it was quite impossible to enter. But I understand that it&#39;s a project made on spare time. Anyway, I could not start without the existing one.<br>

<br>So, what the best way to proceed. Patch the existing one ? (impossible as I said), Fusion with the existing one ? (we can try), an other plugin ? (name?), an indepent plugin ?<br>I would be happy to integrate the plugin to the gstreamer repository, but if you think (after looking the code) that the plugin is not that the gstreamer ommunity want, I can make an independent plugin.<br>

<br>Sincerely<br><br>Julien<br><br><br><div class="gmail_quote">2008/4/21 Julien Isorce &lt;<a href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">
Hi,<br><br>Some news about the plugin I am working on my spare time:<br><br>The plugin uses the opengl API. It uses also glew to automatically manage extensions.<br>For now there is two elements (implementation is finished)<br>


The first one is named glimagesink (as the current plugin-gl from David A. Schleef). It handles every RGB-like. It also handles I420, YV12, YUY2, UYVY and AYUV, trough GLSL (OpenGL shading language). (this is done and tested on an ATI 9800 pro, an ATI X800 GTO and an recent NVIDIA card (I can search the exact name if needed) )<br>


The second element is named glgraphicmaker, it handles the same video format inputs as the glimagesink. The output has the type video/x-raw-gl (as in the current plugin-gl from David A. Schleef). I prefer to name it &quot;glgraphicmaker&quot; instead of &quot;glupload&quot; because it is possible to define reshape and draw callback from a gstreamer client code (usefull when someone want to have a complex opengl scene without making an other filter). <span style="text-decoration: underline;">The most important thing is that the graphic FPS can be synchronised or bigger (I mean as fast as your graphic card can)</span> than the input video framerate (the client code can to turn on or off it). The glimagesink can be connected to the glgraphicmaker in order to see the opengl scene.<br>


<br>Now I am currently working on the symectric element that it is named &quot;glvideomaker&quot;. I prefer this name instead of &quot;gldownload&quot; for the same reasons.<br><br>The other thing that I want to talk about is the &quot;freeglut&quot; part in this plugin. I use it to create the windows easily but there is a limitation. It&#39;s not possible to implement the gstxoverlay interface because freeglut cannot receive winId from an existing window. So, there is two solutions to resolve this problem. The first one is to extract the small part I used in freeglut and just put it into the plugin. The second solution is to use an other opengl toolkit (glut-like) that could permit to implement the gstxoverlay interface.<br>


The second solution is possible because the deep mecanism of this plugin will be the same (just by replacing freeglut fucntions by the identicals functions from an other library)<br>What solution do you expect to be the best? If it&#39;s the second one, which library are you thinking ?<br>


<br>Sincerely<br><br>Julien I.<br><br><br><br></div></div><div class="gmail_quote">2008/4/12 Julien Isorce &lt;<a href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br><br>Link : <a href="http://vulvteam.free.fr/gstreamer/gstreamer_opengl.zip" target="_blank">http://vulvteam.free.fr/gstreamer/gstreamer_opengl.zip</a> is a zip file (5 MO) that contains 4 avi example file.<br>The videos show capabilities of the plugin I am working on.<br>


<br>It uses freeglut API but it could use an other glut-like
multiplatform toolkit. The mecanism should be the same. I&#39;ill make the
plugin able to use any of them.<br>Some work has to be done before sharing the code.<br>
<br>I could say more about the plugin capabilities but examples are explicits. And I do not want overload this email.<br>I am waiting remarks, requirements, advises etc ...<br><br>Julien I.<br><br>ps: Thanks to C.C. for a lot of discusions and advises.<br>


<br>
</blockquote></div><br><br><br><br><br><br><br><br>
</blockquote></div><br>
</blockquote></div><br>