glcolorconvert

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

glcolorconvert

Hamdi
Hi,

Can someone gives me an example of a pipeline which converts between any colorspace to another with the opengl element glcolorconvert.

Thanks.
Best Regards.

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

Re: glcolorconvert

Nicolas Dufresne-3
Le jeudi 25 juin 2015 à 13:37 +0100, Hamdi Rakkez a écrit :
> Can someone gives me an example of a pipeline which converts between
> any colorspace to another with the opengl element glcolorconvert.

There was a API change in these unstable elements between 1.4 and 1.5
(dev). Which version are you using ? That answer would be totally
different.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: glcolorconvert

Hamdi
I am using gstreamer-1.5.1

On Thu, Jun 25, 2015 at 3:16 PM, Nicolas Dufresne <[hidden email]> wrote:
Le jeudi 25 juin 2015 à 13:37 +0100, Hamdi Rakkez a écrit :
> Can someone gives me an example of a pipeline which converts between
> any colorspace to another with the opengl element glcolorconvert.

There was a API change in these unstable elements between 1.4 and 1.5
(dev). Which version are you using ? That answer would be totally
different.

Nicolas

_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: glcolorconvert

Nicolas Dufresne-3
Le jeudi 25 juin 2015 à 15:22 +0100, Hamdi Rakkez a écrit :
> I am using gstreamer-1.5.1

So in this case, you need the glupload/gldownload elements in your
pipeline (this first pipeline is just so you understand, see next one):

gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12 \
  ! glupload ! glcolorconvert ! gldownload \
    ! video/x-raw,format=BGRx ! ximagesink

Or, as a convenience, you can use glfilterbin:

gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12 \
  ! glfilterbin filter=glcolorconvert \
  ! video/x-raw,format=BGRx ! ximagesink

In some cases, you want to manually use upload/download so you control
when the data moves from memory to GL space (this transition can be
expensive). But if you want to use a filter as if it was doing normal
memory IO, glfilterbin is best.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: glcolorconvert

Jtis
Hi,

Sorry but would that be possible to have the answer for the same question but for gstreamer version 1.4.4?

Thanks you by advance,

Jérôme.