<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Here are the debug logs:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><a href="https://pastebin.com/x610epZd">https://pastebin.com/x610epZd</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">No, I am running on a system with one GPU.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-26 13:25 GMT+03:00 Matthew Waters <span dir="ltr"><<a href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_-6362846790338359075moz-cite-prefix">Hmm, from your earlier log, it seems
the gldisplaygbm is not being used<br>
<br>
Step 1 is to figure out why.<br>
<br>
Try getting some more debug logs from the gbm detection with:<br>
<br>
GST_DEBUG=gldisplay:7,<wbr>gleglgbm:7,gl*:4,3 gst-launch-1.0
<pipeline><br>
<br>
This should show what's detected and what fails for you.<br>
<br>
Random side guess. Are you running on a dual-GPU system?<br>
<br>
Cheers<br>
-Matt<div><div class="h5"><br>
<br>
On 26/03/18 21:16, Alexander Yanin wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">It seems that
this flag is set:</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">$ cat <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">/usr/lib/gstreamer-1.0/<wbr>include/gst/gl/</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">gstglconfig.h
| grep GST_GL_HAVE_WINDOW_GBM</span></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br>
</span></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">#define
GST_GL_HAVE_WINDOW_GBM 1</span></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br>
</span></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">GBM
platform is supported by EGL. </span><span style="font-family:arial,sans-serif;font-size:12.8px">eglinfo
output:</span></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br>
</span></div>
<div class="gmail_default"><span style="text-align:start;text-indent:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">
<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">GBM
platform:</div>
<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">EGL
API version: 1.4</div>
<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">EGL
vendor string: Mesa Project</div>
<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">EGL
version string: 1.4 (DRI2)</div>
<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">EGL
client APIs: OpenGL OpenGL_ES </div>
<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br>
</div>
<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px">openglmixer
plugin is linked against GBM and EGL:</div>
<div class="gmail_default" style="color:rgb(34,34,34);font-family:arial,helvetica,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px"><br>
</div>
<div class="gmail_default"><font face="arial, helvetica,
sans-serif"><span style="font-size:12.8px">$ ldd
/usr/lib/gstreamer-1.0/<wbr>libgstopenglmixers.so</span></font><br>
</div>
<div class="gmail_default"><font face="arial, helvetica,
sans-serif"><span style="font-size:12.8px"><br>
</span></font></div>
<div class="gmail_default"><font face="arial, helvetica,
sans-serif"><span style="font-size:12.8px">
<div class="gmail_default">libEGL.so.1 =>
/usr/lib/libEGL.so.1 (0x00007f9b28daa000)</div>
<div class="gmail_default">libdrm.so.2 =>
/usr/lib/libdrm.so.2 (0x00007f9b28b98000)</div>
<div class="gmail_default">libgbm.so.1 =>
/usr/lib/libgbm.so.1 (0x00007f9b28989000)</div>
</span></font></div>
</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-03-26 12:53 GMT+03:00 Matthew
Waters <span dir="ltr"><<a href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_-6362846790338359075m_-8742474796148668001moz-cite-prefix">Arch
may be missing the GBM window system.<br>
<br>
Check if <br>
<br>
#define GST_GL_HAVE_WINDOW_GBM 1<br>
<br>
Is true inside /usr/lib/gstreamer-1.0/gst/gl/<wbr>gstglconfig.h<br>
<br>
Cheers<br>
-Matt
<div>
<div class="m_-6362846790338359075h5"><br>
<br>
On 26/03/18 19:45, Alexander Yanin wrote:<br>
</div>
</div>
</div>
<div>
<div class="m_-6362846790338359075h5">
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Unfortunately,
it doesn't work out of the box for me on Arch.
Here is the output^</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div class="gmail_default"><font face="arial,
helvetica, sans-serif">glcontext
gstglcontext.c:337:gst_gl_cont<wbr>ext_new:
creating a context for display
<gldisplayegl0>, user choice:(null)</font><br>
</div>
<div class="gmail_default"><font face="arial,
helvetica, sans-serif">glwindow
gstglwindow.c:251:gst_gl_windo<wbr>w_new:
creating a window, user choice:gbm<br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica, sans-serif">glwindow
gstglwindow.c:293:gst_gl_windo<wbr>w_new:
Could not create window. user specified gbm,
creating dummy window<br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica, sans-serif">glcontext
gstglcontext.c:1240:gst_gl_con<wbr>text_create_thread:<glcontexte<wbr>gl23>
Attempting to create opengl context. user
chosen api(s) (any), compiled api support
(opengl opengl3 gles2) display api (opengl
opengl3 gles2)<br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica, sans-serif">glcontext
gstglcontext.c:1244:gst_gl_con<wbr>text_create_thread:<glcontexte<wbr>gl23>
Failed to create context<br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica, sans-serif">glcontext
gstglcontext.c:1046:gst_gl_con<wbr>text_create:<glcontextegl23>
gl thread created<br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica, sans-serif">glmixer
gstglbasemixer.c:176:_get_gl_c<wbr>ontext:<mixer>
error: Failed to initialize egl:
EGL_NOT_INITIALIZED<br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica, sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica, sans-serif">Did Arch maintainers
miss some compile-time flags or have I done
something wrong?</font></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-03-23 15:30
GMT+03:00 Alexander Yanin <span dir="ltr"><<a href="mailto:sashayanin@gmail.com" target="_blank">sashayanin@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thank
you, Matt. I will try, hope this should
work with 1.14</div>
</div>
<div class="m_-6362846790338359075m_-8742474796148668001HOEnZb">
<div class="m_-6362846790338359075m_-8742474796148668001h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-03-23
15:25 GMT+03:00 Matthew Waters <span dir="ltr"><<a href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_-6362846790338359075m_-8742474796148668001m_-2593799522323158629m_-1315543994340869812moz-cite-prefix">It
should work out of the box if
you don't already have an
X11/Wayland display server
running. It's chosen after
X11/Wayland connections fail.<br>
<br>
You can also force it by setting
the environment variable
GST_GL_WINDOW=gbm<br>
<br>
e.g. GST_DEBUG=gl*:4
GST_GL_WINDOW=gbm gst-launch-1.0
videotestsrc ! glupload !
gleffects_squeeze !
glcolorconvert ! gldownload !
pngenc ! filesink
location=test.png<br>
<br>
Cheers<br>
-Matt
<div>
<div class="m_-6362846790338359075m_-8742474796148668001m_-2593799522323158629h5"><br>
<br>
On 23/03/18 22:57, Alexander
Yanin wrote:<br>
</div>
</div>
</div>
<div>
<div class="m_-6362846790338359075m_-8742474796148668001m_-2593799522323158629h5">
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks! Fine, what I
need to do to make it
work on Intel Kabylake
with Mesa and without
neither xorg nor
wayland? Would it work
right out of the box or
should I perform some
additional actions to
make it run?</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-03-23
14:50 GMT+03:00 Matthew
Waters <span dir="ltr"><<a href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_-6362846790338359075m_-8742474796148668001m_-2593799522323158629m_-1315543994340869812m_-6003119710050989387moz-cite-prefix">Accessing
the GPU without a
windowing system
is something that
is very specific
to every
driver/hardware
combination. We
support (with
1.14) one method
using kms and a
libgbm compatible
driver which are
used by all of the
Mesa drivers.
Some other
embedded systems
(rpi, imx6) have
other ways. That
nvidia blog post
you've linked
contains
references to <a href="https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_device_query.txt" target="_blank">EGL_EXT_device_query</a> which I guess is
nvidia's way of
performing a
similar thing and
such a method
could be added to
the GStreamer GL
library and
plugins.<br>
<br>
Cheers<br>
-Matt
<div>
<div class="m_-6362846790338359075m_-8742474796148668001m_-2593799522323158629m_-1315543994340869812h5"><br>
<br>
On 23/03/18
21:10,
Alexander
Yanin wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="m_-6362846790338359075m_-8742474796148668001m_-2593799522323158629m_-1315543994340869812h5">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi!</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Is it possible to use GL
elements (like
glvideomixer,
glupload,
gleffects,
etc) without
anything like
Wayland, Xorg,
etc? In
particular, I
want to use
glvideomixer
instead of
compositor on
a server
without any
display
attached. I
heard about a
possible
workaround
using frame
buffer, but I
didn't manage
to find a way
to use
glvideomixer
without xorg
or wayland. It
crushes on
context
initialization.</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Here is the output:</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br>
</div>
<div class="gmail_default"><font face="arial,
helvetica,
sans-serif">glmixer
gstglbasemixer.c:217:_get_gl_c<wbr>ontext:<mixer> error: Failed to
initialize
egl:
EGL_NOT_INITIALIZED</font><br>
</div>
<div class="gmail_default"><font face="arial,
helvetica,
sans-serif">glwindow
gstglwindow.c:285:gst_gl_windo<wbr>w_new: Could not create window. user
specified
(null),
creating dummy
window<br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica,
sans-serif">glcontext
gstglcontext.c:1235:gst_gl_con<wbr>text_create_thread:<glcontexte<wbr>gl48>
Failed to
create context</font></div>
<div class="gmail_default"><font face="arial,
helvetica,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica,
sans-serif">So,
is there a way
to bypass this
issue without
using xorg or
wayland? I
heard that it
is possible to
initialize EGL
without xorg
[1]. Is it
possible to
use this
approach
within gl
elements?</font></div>
<div class="gmail_default"><font face="arial,
helvetica,
sans-serif"><br>
</font></div>
<div class="gmail_default"><font face="arial,
helvetica,
sans-serif">[1]
- <a href="https://devblogs.nvidia.com/egl-eye-opengl-visualization-without-x-server/" target="_blank">https://devblogs.nvidia.com/<wbr>egl-eye-opengl-visualization-w<wbr>ithout-x-server/</a></font></div>
</div>
<br>
<fieldset class="m_-6362846790338359075m_-8742474796148668001m_-2593799522323158629m_-1315543994340869812m_-6003119710050989387mimeAttachmentHeader"></fieldset>
<br>
</div>
</div>
<pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a class="m_-6362846790338359075m_-8742474796148668001m_-2593799522323158629m_-1315543994340869812m_-6003119710050989387moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a>
<a class="m_-6362846790338359075m_-8742474796148668001m_-2593799522323158629m_-1315543994340869812m_-6003119710050989387moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div></div></div>
</blockquote></div><br></div>