<br><br><div class="gmail_quote">2009/8/26 Miquel Àngel Farré <span dir="ltr">&lt;<a href="mailto:miquel.farre@gmail.com">miquel.farre@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;">
Hi Tristan,<br><br>It is not in the same thread, so I will use the appsink as you said.</blockquote><div>But this is the same process right ? <br></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 problem is that I want to draw the ouput of mpeg2dec, it is yuv-raw, I wonder if it is possible to convert it to rgb to make it easier generate a texture.<br>
<br>Thanks for your contribution,<br><br>Miquel<br><br><div class="gmail_quote">2009/8/26 Tristan Matthews <span dir="ltr">&lt;<a href="mailto:tristan@sat.qc.ca" target="_blank">tristan@sat.qc.ca</a>&gt;</span><div><div>
</div><div class="h5"><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>
<div><br>
Florent wrote:<br>
&gt;&gt; I would like to obtain video from a stream and send it to my openGL based<br>
&gt;&gt; application, and draw the frames there.<br>
&gt;&gt;<br>
</div>Would your application be in the same process as your gstreamer<br>
pipeline? If not, you won&#39;t be able to share gl contexts if you&#39;re using<br>
direct rendering. From<br>
<a href="http://www.opengl.org/sdk/docs/man/xhtml/glXCreateNewContext.xml" target="_blank">http://www.opengl.org/sdk/docs/man/xhtml/glXCreateNewContext.xml</a>:<br>
<br>
            .... direct-rendering contexts cannot be shared outside a<br>
single process,<br>
            and they may be unable to render to GLX pixmaps.<br>
<br>
If you don&#39;t want it in the same process, you could use appsink, pass<br>
the buffers to some shared memory and in your GL process upload these<br>
buffers to GL textures.<br>
<br>
Sorry if this is an aside, I&#39;ve been working on something similar so I<br>
thought I would pass the information along.<br>
<br>
Best,<br>
<br>
Tristan<br>
<div><div></div><div><br>
&gt;&gt; My idea is use glupload to obtain openGL textures and then load these into<br>
&gt;&gt; the application through appsink.<br>
&gt;&gt;<br>
&gt;<br>
&gt; You won&#39;t need any gl-based stuff if you use appsink, because it will<br>
&gt; pass raw buffers in memory.<br>
&gt;<br>
&gt;<br>
&gt;&gt; * Question: there is a better way to pass the textures to my app instead of<br>
&gt;&gt; appsink ?<br>
&gt;&gt;<br>
&gt;<br>
&gt; You can, however share the openGL context between glimagesink and your<br>
&gt; application so that you don&#39;t need to upload frames manually. See<br>
&gt; tests/examples/clutter/cluttershare as example.<br>
&gt;<br>
&gt;<br>
&gt;&gt;  * Question: what glupload ! glimagesink do?<br>
&gt;&gt;<br>
&gt;<br>
&gt; glimagesink uses glupload internally, so you don&#39;t need it for using<br>
&gt; glimagesink. You need glupload only if you want to filter the frames<br>
&gt; using opengl (ex: glupload ! gleffects effect=2 ! glimagesink)<br>
&gt;<br>
&gt; Florent<br>
&gt;<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
&gt; trial. Simplify your report design, integration and deployment - and focus on<br>
&gt; what you do best, core application coding. Discover what&#39;s new with<br>
&gt; Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Tristan Matthews<br>
Société des arts technologiques [SAT]<br>
email: <a href="mailto:tristan@sat.qc.ca" target="_blank">tristan@sat.qc.ca</a><br>
web: <a href="http://www.music.mcgill.ca/%7Etmatthews" target="_blank">http://www.music.mcgill.ca/~tmatthews</a><br>
</font><div><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>
</div></div></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">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>