Is gltestsrc supposed to work ?

Matthew Waters ystreet00 at gmail.com
Fri Oct 28 02:03:58 UTC 2016


On 28/10/16 03:11, Stuart Axon wrote:
> I was playing with this example
> https://lubosz.wordpress.com/2014/05/27/gstreamer-overlay-opengl-sink-example-in-python-3/comment-page-1/#comment-409
>
>
> And found that gltestsrc doesn't seem to work for me
>
> On a raspberry pi it is not available.
>
> On my PC, I get the error below.   Is it supposed to work, or has it
> been deprecated or something ?
>
> $ gst-launch-1.0 -v gltestsrc ! glimagesink
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Got context from element 'sink': gst.gl.GLDisplay=context,
> gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
> /GstPipeline:pipeline0/GstGLTestSrc:gltestsrc0.GstPad:src: caps =
> "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0.GstGhostPad:sink.GstProxyPad:proxypad0:
> caps = "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLUploadElement:gluploadelement0.GstPad:src:
> caps = "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLColorConvertElement:glcolorconvertelement0.GstPad:src:
> caps = "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLColorBalance:glcolorbalance0.GstPad:src:
> caps = "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink.GstPad:sink:
> caps = "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLColorBalance:glcolorbalance0.GstPad:sink:
> caps = "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLColorConvertElement:glcolorconvertelement0.GstPad:sink:
> caps = "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLUploadElement:gluploadelement0.GstPad:sink:
> caps = "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0.GstGhostPad:sink:
> caps = "video/x-raw\(memory:GLMemory\)\,\ format\=\(string\)RGBA\,\
> width\=\(int\)320\,\ height\=\(int\)240\,\
> framerate\=\(fraction\)30/1\,\ texture-target\=\(string\)2D"
> ERROR: from element /GstPipeline:pipeline0/GstGLTestSrc:gltestsrc0: GL
> API's not compatible context: opengl3 supported: opengl

This is probably because older version of gltestsrc only supported
legacy OpenGL where we attempt to create a core OpenGL contexts
(opengl3).  Newer versions have this fixed as well as being available on
the Raspberry Pi (or any other OpenGL|ES system).

Cheers
-Matt

> Additional debug info:
> gstgltestsrc.c(869): gst_gl_test_src_decide_allocation ():
> /GstPipeline:pipeline0/GstGLTestSrc:gltestsrc0
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink.GstPad:sink:
> caps = "NULL"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLColorBalance:glcolorbalance0.GstPad:src:
> caps = "NULL"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLColorBalance:glcolorbalance0.GstPad:sink:
> caps = "NULL"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLColorConvertElement:glcolorconvertelement0.GstPad:src:
> caps = "NULL"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLColorConvertElement:glcolorconvertelement0.GstPad:sink:
> caps = "NULL"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLUploadElement:gluploadelement0.GstPad:src:
> caps = "NULL"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLUploadElement:gluploadelement0.GstPad:sink:
> caps = "NULL"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0.GstGhostPad:sink.GstProxyPad:proxypad0:
> caps = "NULL"
> /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0.GstGhostPad:sink:
> caps = "NULL"
> /GstPipeline:pipeline0/GstGLTestSrc:gltestsrc0.GstPad:src: caps = "NULL"
> Freeing pipeline ...
>
>
>
>  
> S++

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161028/9f3e43ad/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 484 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161028/9f3e43ad/attachment.sig>


More information about the gstreamer-devel mailing list