Document a workaround for the failure to find a GL context by the GStreamer plugin.

This commit is contained in:
Trevor F Smith 2020-06-22 18:41:47 -07:00
parent 0916ae3b3a
commit 85548c0bf3

View file

@ -111,6 +111,18 @@ You may need to include other directories on the plugin search path, e.g. Servo'
GST_PLUGIN_PATH=$PWD/target/gstplugins/:$PWD/support/linux/gstreamer/gst/lib
```
If you get complaints `could not get/set settings from/on resource.` right after finding a GL context then try `tee`-ing to `glimagesink` and `gldownload`:
```
LD_PRELOAD=$PWD/target/gstplugins/libgstservoplugin.so \
GST_PLUGIN_PATH=target/gstplugins \
gst-launch-1.0 servowebsrc \
! video/x-raw\(memory:GLMemory\),framerate=50/1,width=512,height=256 \
! tee name=t \
t. ! queue ! glimagesink
t. ! queue ! glcolorconvert ! gldownload ! theoraenc ! oggmux ! filesink location=test.ogg
```
Under X11 you may get complaints about X11 threads not being initialized:
```
GST_GL_XINITTHREADS=1