[gst-devel] glupload, glimagesink openGL question

Miquel Àngel Farré miquel.farre at gmail.com
Wed Aug 26 18:25:49 CEST 2009


Hi Tristan,

It is not in the same thread, so I will use the appsink as you said.

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.

Thanks for your contribution,

Miquel

2009/8/26 Tristan Matthews <tristan at sat.qc.ca>

> Hi,
>
> Florent wrote:
> >> I would like to obtain video from a stream and send it to my openGL
> based
> >> application, and draw the frames there.
> >>
> Would your application be in the same process as your gstreamer
> pipeline? If not, you won't be able to share gl contexts if you're using
> direct rendering. From
> http://www.opengl.org/sdk/docs/man/xhtml/glXCreateNewContext.xml:
>
>            .... direct-rendering contexts cannot be shared outside a
> single process,
>            and they may be unable to render to GLX pixmaps.
>
> If you don't want it in the same process, you could use appsink, pass
> the buffers to some shared memory and in your GL process upload these
> buffers to GL textures.
>
> Sorry if this is an aside, I've been working on something similar so I
> thought I would pass the information along.
>
> Best,
>
> Tristan
>
> >> My idea is use glupload to obtain openGL textures and then load these
> into
> >> the application through appsink.
> >>
> >
> > You won't need any gl-based stuff if you use appsink, because it will
> > pass raw buffers in memory.
> >
> >
> >> * Question: there is a better way to pass the textures to my app instead
> of
> >> appsink ?
> >>
> >
> > You can, however share the openGL context between glimagesink and your
> > application so that you don't need to upload frames manually. See
> > tests/examples/clutter/cluttershare as example.
> >
> >
> >>  * Question: what glupload ! glimagesink do?
> >>
> >
> > glimagesink uses glupload internally, so you don't need it for using
> > glimagesink. You need glupload only if you want to filter the frames
> > using opengl (ex: glupload ! gleffects effect=2 ! glimagesink)
> >
> > Florent
> >
> >
> ------------------------------------------------------------------------------
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> > trial. Simplify your report design, integration and deployment - and
> focus on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
>
>
> --
> Tristan Matthews
> Société des arts technologiques [SAT]
> email: tristan at sat.qc.ca
> web: http://www.music.mcgill.ca/~tmatthews<http://www.music.mcgill.ca/%7Etmatthews>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090826/9583235a/attachment.htm>


More information about the gstreamer-devel mailing list