wpesrc questions and issues

Philippe Normand phil at base-art.net
Mon Jun 1 08:29:18 UTC 2020


Hi Frederic,

On Sun, 2020-05-31 at 13:20 -0700, Frederic Turmel wrote:
> Hi, I wanted to play with wpesrc element. Having issues and have some
> questions. Build seems to be broken for 1.16.x
> 
> Questions: 
> 1-Do you need wayland to use GL or we need to use weston. Any hint?

Yes, in 1.16 Wayland is required.
What's your GPU brand and driver being used?

> 2-Hitting issue compiling for stable 1.16 branch. Master can compile
> with the same env See below.
> 3-When running with master and in software only mode, it works 1 out
> of 5. There seems to be a race condition.
> 
> Got context from element 'wpesrc0': gst.gl.GLDisplay=context,
> gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
> 0:00:00.433971380 23250 0x55db8aebacf0 WARN                 basesrc
> gstbasesrc.c:3075:gst_base_src_loop:<wpesrc0> error: Internal data
> stream error.
> 0:00:00.434279847 23250 0x55db8aebacf0 WARN                 basesrc
> gstbasesrc.c:3075:gst_base_src_loop:<wpesrc0> error: streaming
> stopped, reason error (-5)
> ERROR: from element /GstPipeline:pipeline0/GstWpeSrc:wpesrc0:
> Internal data stream error
> With more debugging seems to be related to:
> GST_MESSAGE
> gstelement.c:2191:gst_element_message_full_with_details:<wpesrc0>
> start
> 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.
> 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'
> 

What's the pipeline for this error? ^^^

> More details
> Using ubuntu 18.04
> I installed the latest stable dependency from webkit.org
> 
> Using gst-build with 1.16: I'm unable to build. getting this error:
> git/gst-build/build/../subprojects/gst-plugins-
> bad/ext/wpe/gstwpesrc.cpp:502: undefined reference to
> `gst_gl_display_wayland_get_type'
> 

This symbol should be in libgst-gl (AFAIK). Did you disable Wayland?

> Using gst-build master: 
> Failing when running gl:
> Got context from element 'wpesrc0': gst.gl.GLDisplay=context,
> gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
> ** (gst-launch-1.0:22754): CRITICAL **: 13:08:05.161:
> gst_egl_image_new_wrapped: assertion 'context != NULL' failed
> 

WPE currently doesn't work on X11 environments. There's some on-going
work in that direction though.

Philippe

> I'm able to run software only mode:
> LIBGL_ALWAYS_SOFTWARE=true GST_DEBUG=3,wpesrc=7,wpe=7 gst-launch-1.0
> -v wpesrc location="http://cnn.com" ! video/x-
> raw,width=1280,height=720,format=BGRA,framerate=\(fraction\)30/1 !
> videoconvert ! queue ! ximagesink sync=false async=false
> 
> 
> FULL ERROR BLOB for 1.16 branch:
> FAILED: subprojects/gst-plugins-bad/ext/wpe/libgstwpe.so 
> c++  -o subprojects/gst-plugins-bad/ext/wpe/libgstwpe.so
> 'subprojects/gst-plugins-bad/ext/wpe/9fb9286@@gstwpe at sha/WPEThreadedV
> iew.cpp.o' 'subprojects/gst-plugins-bad/ext/wpe/9fb9286@@gstwpe at sha/g
> stwpesrc.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/libWPEWebKit-1.0.so /usr/lib/x86_64-
> linux-gnu/libsoup-2.4.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so
> /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-
> gnu/libglib-2.0.so /usr/local/lib/libwpe-1.0.so /usr/lib/x86_64-
> linux-gnu/libxkbcommon.so /usr/local/lib/libWPEBackend-fdo-1.0.so
> -Wl,--export-dynamic /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so
> -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
> subprojects/gst-plugins-bad/ext/wpe/9fb9286@@gstwpe at sha/gstwpesrc.cpp
> .o: In function `gst_wpe_src_change_state(_GstElement*,
> GstStateChange)':
> /home/fturmel/git/gst-build/build/../subprojects/gst-plugins-
> bad/ext/wpe/gstwpesrc.cpp:502: undefined reference to
> `gst_gl_display_wayland_get_type'
> collect2: error: ld returned 1 exit status
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200601/f4e8b7a4/attachment-0001.sig>


More information about the gstreamer-devel mailing list