Is gltestsrc supposed to work ?

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

Is gltestsrc supposed to work ?

Stuart Axon
I was playing with this example


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
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++

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

Re: Is gltestsrc supposed to work ?

Matthew Waters
On 28/10/16 03:11, Stuart Axon wrote:
I was playing with this example


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++


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

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

Re: Is gltestsrc supposed to work ?

Stuart Axon
It does indeed work on raspberry pi - I was launching it incorrectly (using system gst-launch, not the one from gst-uninstalled).
 
S++


On Friday, October 28, 2016 3:04 AM, Matthew Waters <[hidden email]> wrote:


On 28/10/16 03:11, Stuart Axon wrote:
I was playing with this example


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++


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




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