Building Handbrake on Ubuntu 19.04

This short and terse guide lists the steps I took a while back to build Handbrake on my Ubuntu 19.04 system.

Install Dependencies

sudo apt update
sudo apt install -y autoconf automake build-essential cmake git libass-dev libbz2-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libharfbuzz-dev libjansson-dev liblzma-dev libmp3lame-dev libnuma-dev libogg-dev libopus-dev libsamplerate-dev libspeex-dev libtheora-dev libtool libtool-bin libvorbis-dev libx264-dev libxml2-dev libvpx-dev m4 make nasm patch pkg-config python tar yasm zlib1g-dev
sudo apt install -y gstreamer1.0-libav intltool libappindicator-dev libdbus-glib-1-dev libglib2.0-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgtk-3-dev libgudev-1.0-dev libnotify-dev libwebkitgtk-3.0-dev
sudo apt install -y libva-dev libdrm-dev

Create Project Folder

mkdir -p ~/Projects
cd ~/Projects

Grab the Source

git clone https://github.com/HandBrake/HandBrake.git

Configure and Build

cd Handbrake
./configure --prefix=/opt/handbrake --launch-jobs=$(nproc) --launch

Install Handbrake

sudo make -j$(nproc) --directory=build install