Friday, April 18, 2025

How to Compile the Latest wf‑recorder on Raspberry Pi 5 (Debian 12 Wayland)

Debian 12 on Raspberry Pi 5 uses Wayland, so x11grab won’t work for screen capture. You can switch to wf-recorder, but the stock v0.3 in Debian’s repositories lacks newer flags like --overwrite

To get the latest wf-recorder with full feature support, you’ll need to build it from source. Here’s how:


# Install dependencies

sudo apt install g++ meson libavutil-dev libavcodec-dev libavformat-dev libswscale-dev libpulse-dev wayland-protocols libpipewire-0.3-dev

mkdir ~/src

cd ~/src

https://github.com/ammen99/wf-recorder/releases

wget https://github.com/ammen99/wf-recorder/releases/download/v0.5.0/wf-recorder-0.5.0.tar.xz

tar -xf wf-recorder-0.5.0.tar.xz

cd wf-recorder-0.5.0

meson setup build --prefix=/usr --buildtype=release --reconfigure

ninja -C build

# Install

cp ~/src/wf-recorder-0.5.0/build/wf-recorder /usr/local/bin


Now you can record the screen including audio using the following command:


wf-recorder --overwrite -a default -f file.mp4

How to Stream RTSP / Webcam / IP Camera Over the Web

I had a Hikvision IPC-B120 that provides a simple RTSP stream, which I could view in VLC. I also wanted to see my Logitech BRIO’s feed in a ...