As @HurricanePootis mentioned, native pipewire recording was added to obs since version 27.0 (see https://github.com/obsproject/obs-studio/pull/4287). It seems to me however that this is not enabled by default. To enable this functionality you can add -DENABLE_PIPEWIRE=ON
to the build() step in the PKGBUILD (and run obs in wayland mode, see bottom of my post). For me this resolved the earlier requirement for obs-xdg-portal-git
on my wayland/pipewire machine for screen recording (a package which doesn't compile for this version anyway, i.e. see my issue @ https://gitlab.gnome.org/feaneron/obs-xdg-portal/-/issues/30):
build() {
cd $pkgname
mkdir -p build; cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_BROWSER=ON \
-DCEF_ROOT_DIR="/opt/cef" \
-DOBS_VERSION_OVERRIDE=$pkgver \
-DENABLE_PIPEWIRE=ON .. # <--------- add before '..'
make
}
After installing this way, to get obs to run in native wayland mode, you also need to install qt5-wayland
and finally run obs with the QT_QPA_PLATFORM=wayland
variable set.
Pinned Comments
thotypous commented on 2021-02-05 14:12 (UTC)
If you don't want to build this package yourself, hourly builds are available at https://aur.chaotic.cx
benklett commented on 2016-02-06 23:11 (UTC) (edited on 2016-08-10 14:01 (UTC) by benklett)