Installing dependencies on Ubuntu

The following instructions are for Ubuntu 24.04 Noble Numbat and 26.04 Resolute Racoon.

Basic requirements to run commands:

Dependencies:

Dolby Vision dependencies (optional):

Intel Quick Sync Video and VAAPI dependencies (optional):

Nvidia NVENC/NVDEC dependencies (optional):

Graphical interface dependencies:

Install dependencies.

sudo apt-get update
sudo apt-get install autoconf automake build-essential cmake git libass-dev libbz2-dev libfontconfig-dev libfreetype-dev libfribidi-dev libharfbuzz-dev libjansson-dev liblzma-dev libmp3lame-dev libnuma-dev libogg-dev libopus-dev libsamplerate0-dev libspeex-dev libssl-dev libtheora-dev libtool libtool-bin libturbojpeg0-dev libvorbis-dev libvpx-dev libx11-dev libx264-dev libxml2-dev m4 make meson nasm ninja-build patch pkg-config zlib1g-dev

To build with Dolby Vision support, install the Rust dependencies.

sudo apt-get install rustup
rustup toolchain install "stable-$(uname -m)-unknown-linux-gnu"
rustup default "stable-$(uname -m)-unknown-linux-gnu"
cargo install cargo-c

To build with Intel Quick Sync Video and VAAPI support, install the VAAPI dependencies.

sudo apt-get install libva-dev libdrm-dev

To build with Nvidia NVENC/NVDEC support, install the CUDA LLVM toolchain dependencies.

sudo apt-get install clang llvm

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

sudo apt-get install appstream desktop-file-utils gettext gstreamer1.0-libav gstreamer1.0-plugins-good libgstreamer-plugins-base1.0-dev libgtk-4-dev

Ubuntu is now prepared to build HandBrake. See Building HandBrake for Linux for further instructions, or if you intend to cross-compile HandBrake for Windows, see Building HandBrake for Windows.