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