/etc/apt/sources.list
:
deb http://archive.ubuntu.com/ubuntu/ focal-proposed main restricted universe multiverse
sudo apt-get update & sudo apt full-upgrade
*Also reinstall the libpulse-dev libsdl2-dev plasma-pa pulseaudio-module-gsettings
if removed from last upgrade.sudo apt-get install libdrm-dev
git clone https://github.com/intel/libva-utils
cd libva-utils
then:
sudo ./autogen.sh
sudo make -j$(nproc)
sudo make install
Then get llbva by:
https://github.com/intel/libva
cd libva
./autogen.sh
make -j$(nproc)
sudo make install
Then get gmmlib by
git clone https://github.com/intel/gmmlib
cd gmmlib
mkdir build && cd build
cmake [-DCMAKE_BUILD_TYPE= Release] [-DARCH= 64] ..
make -j"$(nproc)"
sudo make install
Then get Intel(R) Media Driver for VAAPI
https://github.com/intel/media-driver
sudo apt install autoconf libtool libdrm-dev xorg xorg-dev openbox libx11-dev libgl1-mesa-glx libgl1-mesa-dev
(with the directory where the media_driver folder you just unziped is):
mkdir build_media && cd build_media
cmake ../media-driver
make -j"$(nproc)"
sudo make install
Then get MediaSDK by:
git clone https://github.com/Intel-Media-SDK/MediaSDK
cd msdk
mkdir build && cd build
cmake ..
make -j"$(nproc)"
sudo make install
Get FFMPEG 5+ by:
sudo apt purge ffmpeg
sudo apt-get -y install autoconf automake build-essential cmake git-core libass-dev libfreetype6-dev libgnutls28-dev libmp3lame-dev libsdl2-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev meson ninja-build pkg-config texinfo wget yasm zlib1g-dev libunistring-dev libaom-dev libdav1d-dev nasm libx265-dev libvorbis-dev
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
sudo ln -s /opt/intel/mediasdk/lib/pkgconfig/* /usr/local/lib/pkgconfig/
*libsvtav1 is only for if AV1 codec is included from other page.
./configure --enable-libmfx --enable-libsvtav1 --cpu=native --enable-vaapi --enable-nonfree --enable-opengl --enable-gpl --enable-libx265 --disable-vdpau --enable-libvorbis
make -j"$(nproc)"
sudo make install
Sources:© 2019 to 2025 Branden Gilfoil & © up to 2025 for respective owners.