Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document a GStreamer plugin workaround #27047

Merged
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Document a workaround for the failure to find a GL context by the GSt…

…reamer plugin.
  • Loading branch information
TrevorFSmith committed Jun 23, 2020
commit 85548c0bf3087219f78bcf62cd915386e207763b
@@ -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
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.