Is gltestsrc supposed to work ?

Stuart Axon stuaxo2 at yahoo.com
Fri Oct 28 09:31:57 UTC 2016


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 <ystreet00 at gmail.com> wrote:
 
 

  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++  
 
 
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


 
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161028/94e7e3cc/attachment-0001.html>


More information about the gstreamer-devel mailing list