Added support for specifying a region to capture
dmabuf should be auto-disabled if dependencies can't be met
settings was being used

heads

default
browse log

clone

read-only
https://hg.sr.ht/~scoopta/wlrobs
read/write
ssh://hg@hg.sr.ht/~scoopta/wlrobs

wlrobs

wlrobs is an obs-studio plugin that allows you to screen capture on wlroots based wayland compositors

dmabuf backend

Please note that in order to use the dmabuf backend you have to use a fork of OBS which has an EGL backend such as https://github.com/cyclopsian/obs-studio/tree/wayland

This backend is also not perfect and there are some known minor issues such as the preview in the settings window being upside down as well as being unable to resize the source, please report all other bugs to the bug tracker

Dependencies

libwayland-dev
libobs-dev
pkg-config
meson

The dmabuf backend additionally requires

libdrm-dev
libegl-dev

Building

hg clone https://hg.sr.ht/~scoopta/wlrobs
cd wlrobs
meson build
ninja -C build

The screencopy backend can be disabled with the -Duse_scpy=false meson option, likewise dmabuf can be disabled with -Duse_dmabuf=false

Installing

mkdir -p ~/.config/obs-studio/plugins/wlrobs/bin/64bit
cp build/libwlrobs.so ~/.config/obs-studio/plugins/wlrobs/bin/64bit

Uninstalling

rm -rf ~/.config/obs-studio/plugins/wlrobs

Bug Reports

Please file bug reports at https://todo.sr.ht/~scoopta/wlrobs

Contributing

Please submit patches to https://lists.sr.ht/~scoopta/wlrobs

You can find documentation here https://man.sr.ht/hg.sr.ht/email.md