Hi Miquel,<br><br>Take a look at gst-plugins-gl/tests/examples/sdl/sdlshare.c example.<br><br>(note that I have currently only tested it on win32, but I did the stuffs for GLX, so it should work on linux too)<br><br>I think your use case is a little bit more complex because you was talking about threads,<br>
maybe because of sdl main loop and glib main loop.<br>So if you succeed then I would like to put your example in gst gl git.<br><br>Regards<br>Julien<br><br><div class="gmail_quote">2009/8/26 Julien Isorce <span dir="ltr">&lt;<a href="mailto:julien.isorce@gmail.com">julien.isorce@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello Miquel,<br><br>First, the fact to be able to use the texture from gstgl and use them into
your own opengl scene (through your favorite GL framework: clutter,
SDL, Qt etc..) is possible (see cluttershare example), interesting and
a need for a lot of people.<br><br>Actually, I was waitting for someone that uses SDL. I would like to have an example like (cluttershare.c example that uses the framework clutter) but I want one example with SDL.<br>So this is you <img goomoji="gtalk.328" style="margin: 0pt 0.2ex; vertical-align: middle;" src="cid:gtalk.328@goomoji.gmail"><br>

<br>We will try to make it works<br><br><div class="gmail_quote"><div class="im">2009/8/26 Miquel Àngel Farré <span dir="ltr">&lt;<a href="mailto:miquel.farre@gmail.com" target="_blank">miquel.farre@gmail.com</a>&gt;</span><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Julien,<div class="im"><br><br>I am managing my openGL scene under linux, using SDL.<br><br>I have tryed xoverlay: glimagesink sending video to my openGL context through his windowID.<br><br>I was able to see the video on my openGL context screen, the problem is flickering, in my application I am doing something like:</div>
</blockquote>
<div>Flickering is often due to background redraw.<br>You have to desactivate it trough SDL API.<br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
<br>while(true)<br>{<br> <br>  glClear();  <br>  for (all textures)<br>  {<br>    draw();<br>  }<br>  glSwapBuffers();<br> }<br><br> Another (secundary) problem is that sometimes I need the video in a little quad instead of fullscreen..<br>


</blockquote></div><div><br>In this case you have to do the same thing as cluttershare example, but using SDL.<br> </div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>What do you think is the best way to implement it?<div><div></div><div><br><br>Thanks,<br><br><br>Miquel<br><br><br><div class="gmail_quote">2009/8/26 Julien Isorce <span dir="ltr">&lt;<a href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div class="gmail_quote">2009/8/26 Miquel Àngel Farré <span dir="ltr">&lt;<a href="mailto:miquel.farre@gmail.com" target="_blank">miquel.farre@gmail.com</a>&gt;</span><div>


<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bug is submitted!<br><br>Putting the bug apart, if I do something like mpegtsdemux ! queue ! glupload ! appsink, what I have at the output are opengl textures right? So I can draw it directly into a quad ?  </blockquote>


<div>
 </div></div><div>This is not exact.<br><br>If you are making an OpenGL scene, and you want to put gstgl textures into this scene.<br>(then it means that you are managing your opengl context and your are also familiar with OpenGL API)<br>



Then gst-plugins-gl/tests/examples/clutter/cluttershare.c is the example you need.<br>(But it&#39;s not so easy. you have to share your OpenGL context with the one inside gl elements)<br><br>If you are not familiar with opengl and you just want to display the video on a quad, then you should consider to look into gst-plugins-gl/tests/examples/generic/cube and gst-plugins-gl/tests/examples/qt/qglwidgetxoverlay<br>



<br></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>The bigger reason of use glupload is avoid the raw-yuv to rgb conversion..</blockquote>



</div><div><br>So if your are not managing your own opengl scene, then just look into<br>gst-plugins-gl/tests/examples/gtk/gtkxoverlay<br>This example shows how to use the xoverlay interface.<br><br><br>Just a question in case your are familiar with OpenGL and if you are already managing your own OpenGL scene,  which framework are you using ? on which OS ?<br>



<br>Regards<br><font color="#888888">Julien<br> </font></div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>Thanks,<br><br><br>Miquel<br><br><div class="gmail_quote">2009/8/26 Julien Isorce <span dir="ltr">&lt;<a href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;</span><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>
<br><br><div class="gmail_quote">2009/8/26 Florent <span dir="ltr">&lt;<a href="mailto:fthiery@gmail.com" target="_blank">fthiery@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div>Hi<br>
<br>
</div><div>&gt;  * Question: what glupload ! glimagesink do?<br><div>
<br>
</div>glimagesink uses glupload internally, so you don&#39;t need it for using<br>
glimagesink. You need glupload only if you want to filter the frames<br>
using opengl (ex: glupload ! gleffects effect=2 ! glimagesink)<br>
<br>
Florent<br>
<br>
</div></blockquote><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><div> Doesen&#39;t work:<br><br>  
gst-launch -v -m filesrc location=../dumps/itv.ts !  mpegtsdemux
program-number=&quot;8442&quot; ! queue ! mpeg2dec ! glupload ! glimagesink <br><br>   gst-launch -v -m filesrc location=../dumps/itv.ts !  mpegtsdemux
program-number=&quot;8442&quot; ! queue ! mpeg2dec ! glupload ! gldownload ! glimagesink<br><br></div><div> * Question: what glupload ! glimagesink do?<br><br><br></div>Thanks,<br><font color="#888888"><br><br>
 Miquel</font></blockquote>
<div> </div>Hi,<br><br>Both should work, <br>Please file a bug and attach the console log of:<br><br> GST_DEBUG=gldisplay:3 gst-launch -v -m filesrc location=../dumps/itv.ts !  mpegtsdemux
program-number=&quot;8442&quot; ! queue ! mpeg2dec ! glupload ! glimagesink<br><br>and:<br><br>GST_DEBUG=gldisplay:3 videotestsrc ! &quot;video/x-raw-yuv, format=(fourcc)I420&quot; ! glupload ! glimagesink<br><br>Julien<br>





<br><br></div></div><br>
<br></div></div><div>------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what&#39;s new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></div></blockquote></div><br>
<br>------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what&#39;s new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div></div></div><br>
<br>------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what&#39;s new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div><br>------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what&#39;s new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div></div></div><br>
</blockquote></div><br>