Installing dependencies on Ubuntu

The following instructions are for Ubuntu 18.04 LTS (Bionic Beaver).

Basic requirements to run commands:

Dependencies:

Graphical interface dependencies:

Quick Sync Video dependencies (configure –enable-qsv)

Install dependencies.

sudo apt-get update
sudo apt-get install autoconf automake build-essential cmake git libass-dev libbz2-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libharfbuzz-dev libjansson-dev liblzma-dev libmp3lame-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

To build the GTK GUI, install the graphical interface dependencies.

sudo apt-get install 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

To build with Quick Sync Video support, install QSV dependencies.

sudo apt-get install libva-dev libdrm-dev

Ubuntu is now prepared to build HandBrake. See Building HandBrake for Linux for further instructions.