<div dir="ltr">Hi, I wanted to play with wpesrc element. Having issues and have some questions. Build seems to be broken for 1.16.x<div><br></div><div>Questions: </div><div>1-Do you need wayland to use GL or we need to use weston. Any hint?<br><div>2-Hitting issue compiling for stable 1.16 branch. Master can compile with the same env See below.</div><div>3-When running with master and in software only mode, it works 1 out of 5. There seems to be a race condition.</div><div><br></div><div>Got context from element 'wpesrc0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";<br></div><div>0:00:00.433971380 23250 0x55db8aebacf0 WARN                 basesrc gstbasesrc.c:3075:gst_base_src_loop:<wpesrc0> error: Internal data stream error.<br>0:00:00.434279847 23250 0x55db8aebacf0 WARN                 basesrc gstbasesrc.c:3075:gst_base_src_loop:<wpesrc0> error: streaming stopped, reason error (-5)<br>ERROR: from element /GstPipeline:pipeline0/GstWpeSrc:wpesrc0: Internal data stream error<br></div><div><b>With more debugging seems to be related to:</b></div><div>GST_MESSAGE gstelement.c:2191:gst_element_message_full_with_details:<wpesrc0> start</div><div>0:00:01.310356869 23620 0x561a8f22e4a0 INFO        GST_ERROR_SYSTEM gstelement.c:2222:gst_element_message_full_with_details:<wpesrc0> posting message: Internal data stream error.<br>0:00:01.310396995 23620 0x561a8f22e4a0 WARN               structure gststructure.c:2006:priv_gst_structure_append_to_gstring: No value transform to serialize field 'gerror' of type 'GError'<br></div><div><br></div><div>More details</div><div>Using ubuntu 18.04<br></div><div>I installed the latest stable dependency from <a href="http://webkit.org">webkit.org</a></div><div><br></div><div>Using gst-build with 1.16: I'm unable to build. getting this error:</div><div>git/gst-build/build/../subprojects/gst-plugins-bad/ext/wpe/gstwpesrc.cpp:502: undefined reference to `gst_gl_display_wayland_get_type'<br></div><div><br></div><div>Using gst-build master: </div><div>Failing when running gl:</div><div>Got context from element 'wpesrc0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";<br>** (gst-launch-1.0:22754): CRITICAL **: 13:08:05.161: gst_egl_image_new_wrapped: assertion 'context != NULL' failed<br></div><div><br></div><div>I'm able to run software only mode:</div><div>LIBGL_ALWAYS_SOFTWARE=true GST_DEBUG=3,wpesrc=7,wpe=7 gst-launch-1.0 -v wpesrc location="<a href="http://cnn.com">http://cnn.com</a>" ! video/x-raw,width=1280,height=720,format=BGRA,framerate=\(fraction\)30/1 ! videoconvert ! queue ! ximagesink sync=false async=false<br></div><div><br></div><div><br></div><div>FULL ERROR BLOB for 1.16 branch:</div><div>FAILED: subprojects/gst-plugins-bad/ext/wpe/libgstwpe.so <br>c++  -o subprojects/gst-plugins-bad/ext/wpe/libgstwpe.so 'subprojects/gst-plugins-bad/ext/wpe/9fb9286@@gstwpe@sha/WPEThreadedView.cpp.o' 'subprojects/gst-plugins-bad/ext/wpe/9fb9286@@gstwpe@sha/gstwpesrc.cpp.o' -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libgstwpe.so subprojects/gst-plugins-base/gst-libs/gst/video/libgstvideo-1.0.so.0.1602.0 subprojects/gstreamer/libs/gst/base/libgstbase-1.0.so.0.1602.0 subprojects/gstreamer/gst/libgstreamer-1.0.so.0.1602.0 subprojects/orc/orc/liborc-0.4.so.0.29.0 subprojects/gst-plugins-base/gst-libs/gst/gl/libgstgl-1.0.so.0.1602.0 /usr/lib/x86_64-linux-gnu/libEGL.so /usr/local/lib/<a href="http://libWPEWebKit-1.0.so">libWPEWebKit-1.0.so</a> /usr/lib/x86_64-linux-gnu/<a href="http://libsoup-2.4.so">libsoup-2.4.so</a> /usr/lib/x86_64-linux-gnu/<a href="http://libgio-2.0.so">libgio-2.0.so</a> /usr/lib/x86_64-linux-gnu/<a href="http://libgobject-2.0.so">libgobject-2.0.so</a> /usr/lib/x86_64-linux-gnu/<a href="http://libglib-2.0.so">libglib-2.0.so</a> /usr/local/lib/<a href="http://libwpe-1.0.so">libwpe-1.0.so</a> /usr/lib/x86_64-linux-gnu/libxkbcommon.so /usr/local/lib/<a href="http://libWPEBackend-fdo-1.0.so">libWPEBackend-fdo-1.0.so</a> -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/<a href="http://libgmodule-2.0.so">libgmodule-2.0.so</a> -pthread -lm /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libX11-xcb.so /usr/lib/x86_64-linux-gnu/libxcb.so -Wl,--end-group '-Wl,-rpath,$ORIGIN/../../../gst-plugins-base/gst-libs/gst/video:$ORIGIN/../../../gstreamer/libs/gst/base:$ORIGIN/../../../gstreamer/gst:$ORIGIN/../../../orc/orc:$ORIGIN/../../../gst-plugins-base/gst-libs/gst/gl:$ORIGIN/../../../gst-plugins-base/gst-libs/gst/allocators' -Wl,-rpath-link,/home/fturmel/git/gst-build/build/subprojects/gst-plugins-base/gst-libs/gst/video -Wl,-rpath-link,/home/fturmel/git/gst-build/build/subprojects/gstreamer/libs/gst/base -Wl,-rpath-link,/home/fturmel/git/gst-build/build/subprojects/gstreamer/gst -Wl,-rpath-link,/home/fturmel/git/gst-build/build/subprojects/orc/orc -Wl,-rpath-link,/home/fturmel/git/gst-build/build/subprojects/gst-plugins-base/gst-libs/gst/gl -Wl,-rpath-link,/home/fturmel/git/gst-build/build/subprojects/gst-plugins-base/gst-libs/gst/allocators<br>subprojects/gst-plugins-bad/ext/wpe/9fb9286@@gstwpe@sha/gstwpesrc.cpp.o: In function `gst_wpe_src_change_state(_GstElement*, GstStateChange)':<br>/home/fturmel/git/gst-build/build/../subprojects/gst-plugins-bad/ext/wpe/gstwpesrc.cpp:502: undefined reference to `gst_gl_display_wayland_get_type'<br>collect2: error: ld returned 1 exit status<br></div></div></div>