Installing OBS on Raspberry Pi (bullseye)

How to install OBS on a Raspberry Pi?

Since OBS is not supported on the Raspberry Pi, there are no official binaries available and you're left with 3 options. 

  1. You decide not to use a Raspberry Pi in combination with OBS
  2. You try to see if anyone has unofficial packages available and install those
  3. You compile it from source code . 

Various arcticles on the internet have stories on how to do this, but I found them outdated or not complete. Likely since OBS is still in active development and requirements change over time. These steps were applied in January 2023 and do not use any special branches.

 

Installation build tools and development libraries

sudo apt install build-essential checkinstall cmake git libmbedtls-dev libasound2-dev libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfontconfig1-dev libfreetype6-dev libgl1-mesa-dev libjack-jackd2-dev libjansson-dev libluajit-5.1-dev libpulse-dev libqt5x11extras5-dev libspeexdsp-dev libswresample-dev libswscale-dev libudev-dev libv4l-dev libvlc-dev libx11-dev libx11-xcb1 libx11-xcb-dev libxcb-xinput0 libxcb-xinput-dev libxcb-randr0 libxcb-randr0-dev libxcb-xfixes0 libxcb-xfixes0-dev libx264-dev libxcb-shm0-dev libxcb-xinerama0-dev libxcomposite-dev libxinerama-dev pkg-config python3-dev qtbase5-dev libqt5svg5-dev swig libwayland-dev qtbase5-private-dev libpci-dev tclsh libssl-dev libxcb-composite0-dev libva-dev mesa-common-dev v4l2loopback-dkms

 

Install SRT
git clone https://github.com/Haivision/srt.git
cd srt
./configure
sudo make install

 

Install RIST
git clone https://github.com/tsduck/rist-installer.git
cd rist-installer
cd deb
./install-prerequisites.sh
./build.sh
sudo make install

 

Install OBS
git clone --recursive https://github.com/obsproject/obs-studio.git

Open up obs-studio/CMakeLists.txt and add the following line at the top (line 2 or around there): add_definitions(-w)
This will configure the make files to ignore compiler warnings, otherwise they are treated as errors resulting in a failed compilation.

cd obs-studio
mkdir build && cd build
cmake -DUNIX_STRUCTURE=1 -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_PIPEWIRE=OFF -DBUILD_BROWSER=OFF ..
make -j4
sudo make install


Starting OBS

When launching OBS from the start menu, you might see a message about unsupported video drivers, you can get around this by starting OBS from a terminal window.

MESA_GL_VERSION_OVERRIDE=3.3 obs



Profile picture
Gideon Bakx
Updated on: Friday, October 6, 2023 8:24:55 PM
C# certified software engineer living in Calgary, Canada.
OBS streaming Raspberry Pi