Dear All,
I am having the following error:
"EGL: Warning: No default display support on wayland" and gst error message "Debug deails: ../../../../git/gst-libs/gst/gl/gstglbasefilter.c(490): gst_gl_base_filter_find_gl_context (): /GstPipeline:rtsp_gst_pipeline/GstGLUploadElement:glupload
Error: Failed to initialize egl: EGL_BAD_DISPLAY"
I am initializing:
this->eglDisplay = eglGetCurrentDisplay ();
this->eglSurface = eglGetCurrentSurface (0);
this->eglContext = eglGetCurrentContext ();
eglMakeCurrent(this->eglDisplay, this->eglSurface, this->eglSurface, this->eglContext);
and then;
GstGLContext *context;
GstGLDisplayEGL *display;
display = gst_gl_display_egl_new();
context = gst_gl_context_new_wrapped(GST_GL_DISPLAY(display), (guintptr) this->eglContext , GST_GL_PLATFORM_EGL, GST_GL_API_GLES2);
gst_object_unref (display);
Any suggestions how to solve EGL error?
Dear Bio_TICFSL,
Compositor is Weston using Wayland protocol. Actually there was a different error, when I apply the commands you mentioned above, I started to get the error I mentioned. Seems like the problem is with my code.
I will also check the pdf.
Thanks
Hello spear_kor,
Which compositor you use? check that for the display it created & export like below.
export WAYLAND_DISPLAY=wayland-0 // Compositor created display
export XDG_RUNTIME_DIR=/tmp // can be some temporary dir
Try to use the
export DISPLAY:=0.0
Try to use "i.MX_Linux_User's_Guide.pdf" from Linux doc package for some details.
Regards
Hello
I am trying to render video on wayland-EGLSurface using gstreamer on imx8 platform, any inputs ?