Added support for format modifiers in DMA-BUF source
Update usage of gs_texture_create_from_dmabuf
Moved the screencopy includes into scpy_source.c

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

builds.sr.ht status

This plugin only records wayland desktops, it does not make OBS run wayland native. If you're not using a version of OBS with an EGL backend you need to set QT_QPA_PLATFORM=xcb or else OBS does not work.

#dmabuf backend

Please note that in order to use the dmabuf backend you have to update to OBS master commit 705a47b0e439f649af8a81d0a68d03f3b83ea314 or later

As of wlrobs 5f1c794e4614 the dmabuf backend will not work on older OBS EGL forks which do not support gs_texture_create_from_dmabuf()

#Dependencies

libwayland-dev
libobs-dev
pkg-config
meson

#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