[gst-devel] glupload, glimagesink openGL question

Tristan Matthews tristan at sat.qc.ca
Wed Aug 26 19:09:41 CEST 2009


It's it's in separate threads but still in the same process than you're 
probably better off just sharing the opengl context (i.e. not using 
appsink) as per the cluttershare example. I just wanted to mention the 
alternative in case you were using separate processes. Sorry for the 
confusion.

-Tristan

Miquel Àngel Farré wrote:
> Yes, the same process
>
> 2009/8/26 Julien Isorce <julien.isorce at gmail.com 
> <mailto:julien.isorce at gmail.com>>
>
>
>
>     2009/8/26 Miquel Àngel Farré <miquel.farre at gmail.com
>     <mailto:miquel.farre at gmail.com>>
>
>         Hi Tristan,
>
>
>         It is not in the same thread, so I will use the appsink as you
>         said.
>
>     But this is the same process right ?
>
>
>
>         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
>         <mailto: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
>             <mailto: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 <mailto: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
>             <mailto:gstreamer-devel at lists.sourceforge.net>
>             https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>         ------------------------------------------------------------------------------
>         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
>         <mailto:gstreamer-devel at lists.sourceforge.net>
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>     ------------------------------------------------------------------------------
>     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
>     <mailto:gstreamer-devel at lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> 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





More information about the gstreamer-devel mailing list