Fluendo decoder and OpenGl rendering

classic Classic list List threaded Threaded
3 messages Options
leo
Reply | Threaded
Open this post in threaded view
|

Fluendo decoder and OpenGl rendering

leo
Hi,

I'm trying to use gstreamer and a fluendo decoder (fluvadec) to play a video in an opengl texture.
How can I link the source pad of fluvadec and diplay the video in a texture without using the CPU?

Currently, I'm using gst-plugins-gl and this is my pipeline (video .mov):

filesrc -> qtdemux -> fluvadec -> glupload -> gleffects -> fakesink

I link the gleffects element with my openGl context but i loose the Hardware decoding speed with the link fluvadec->glupload. I'm a beginner with gstreamer, so any help or any idea will be useful  (and sorry for my bad english).

Thanks!

Léo
Reply | Threaded
Open this post in threaded view
|

Re: Fluendo decoder and OpenGl rendering

Julien Moutte
Hi Leo,

fluvadec is pushing out buffers of a specific type that the usual GStreamer elements won't understand.

There are 3 ways to render them :

1) Use fluvasink to render them in an XWindow
2) Use fluvaclutsink to render them in a Clutter Texture 
3) Obtain the Fluendo VA SDK which will provide you with a library, headers and a template sink element to handle those buffers and render them in your OpenGL application by calling the proper API for OpenGL bridging (VAAPI, XVBA, VDPAU).

Best regards,

Julien MOUTTE
C.T.O.

FLUENDO Influencing the Multimedia World

San Francisco, USA & Barcelona, SPAIN
Contact phone:
Spain:  +34 933 175 153
United States: +1 415 773 5353
www.fluendo.com

Please consider the environment before printing this e-mail.



On Wed, Jun 20, 2012 at 6:29 PM, leo yvin <[hidden email]> wrote:
Hi,

I'm trying to use gstreamer and a fluendo decoder (fluvadec) to play a video
in an opengl texture.
How can I link the source pad of fluvadec and diplay the video in a texture
without using the CPU?

Currently, I'm using gst-plugins-gl and this is my pipeline (video .mov):

filesrc -> qtdemux -> fluvadec -> glupload -> gleffects -> fakesink

I link the gleffects element with my openGl context but i loose the Hardware
decoding speed with the link fluvadec->glupload. I'm a beginner with
gstreamer, so any help or any idea will be useful  (and sorry for my bad
english).

Thanks!

Léo

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Fluendo-decoder-and-OpenGl-rendering-tp4655352.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
leo
Reply | Threaded
Open this post in threaded view
|

Re: Fluendo decoder and OpenGl rendering

leo
Thank you for your help, i will look at what is possible!

Léo