Installing OBS Studio 64 on an Ubuntu Mate arm64 12.10 powered PI 4

I installed a fresh copy of Ubuntu Mate arm64 of Groovy Gorilla 12.10 on my 2gig PI 4. Do your normal update to ensure all code is up to date.

sudo apt-get update

sudo apt-get upgrade

Once the system ready, you need to install a huge list of packages before starting the compilation.
Here is the command to copy and paste in a terminal:

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

FFmpeg AAC
Another prerequisite is the FDK AAC package, but there is no full version available on Raspbian.
So, we will download it from the Debian repository and install it manually

FDK AAC is the FFmpeg encoder for the AAC format
It’s the successor from MP3, often use in MP4 streams, and required for OBS Studio

Here is how to install it:

Download these two files:

Install them with:
sudo dpkg -i libfdk-aac2_2.0.1-1_armhf.deb
sudo dpkg -i libfdk-aac-dev_2.0.1-1_armhf.deb

You are now ready to download and compile the source code

Build the source code
As I told you in introduction, we will download the source code from the GitHub project.
Follow these steps to download and install everything:

Download the source code with git:
sudo git clone --recursive

You can move to a specific folder if you want (like /opt), personally I have done this in the home folder.

Move to the new folder:
cd obs-studio

Create a build folder and move into this one:
sudo mkdir build
cd build

Run cmake

And finally start the compilation:
sudo make -j4

During the compile on my 2gig Raspi 4, I had it fail around 85%. So I did a :

sudo make clean

then repeated the

sudo make j4

command again. The second time was a charm.

Compilation time can take a while, so start it up and go for a bike ride!

And here is the last step is to install OBS Studio:

sudo make install

Firing OBS up on the Raspberry PI 4 will require an override on the Video card selection.

On the Pi 4 you have to use the command


When she’s up and running, CPU idles around 5% at 30 fps. If you choose software rendering your CPU will idle around 64% and will end up overheating your system. Make sure you use the above command to enable hardware rendering.