Build new intel GPU drivers and ffmpeg in ubuntu 21.10: ======================================================== *In ubuntu 20.04 or kde neon, you must get the libdrm-dev package by: 1.Add the following line to /etc/apt/sources.list: deb http://archive.ubuntu.com/ubuntu/ focal-proposed main restricted universe multiverse 2. 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. 3. sudo apt-get install libdrm-dev Now can continue to the libva-utils github. First, get libva-utils by: 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: https://www.intel.com/content/www/us/en/developer/articles/technical/build-and-debug-open-source-media-stack.html https://ffmpeg.org/download.html#repositories https://trac.ffmpeg.org/wiki/Hardware/QuickSync https://community.intel.com/t5/Media-Intel-oneAPI-Video/ffmpeg-libmfx-not-found/td-p/1139877 https://www.intel.com/content/www/us/en/developer/articles/technical/quick-start-on-integrating-ffmpeg-libraries.html?wapkw=ffmpeg%20 https://github.com/Intel-FFmpeg-Plugin/Intel_FFmpeg_plugins/wiki/ https://github.com/Intel-Media-SDK/MediaSDK https://ubuntu.pkgs.org/20.04/ubuntu-proposed-main-amd64/libdrm-dev_2.4.110-1ubuntu1~20.04.1_amd64.deb.html https://trac.ffmpeg.org/wiki/Encode/H.265 https://stackoverflow.com/questions/66382786/unknown-encoder-libx265-on-ubuntu-18-04 Date (OG): April 4th 2022 Date (UP 1): June 8th 2022 Date (UP 2): August 1st 2022 Date (UP 3): September 29th 2022 Date (UP 4)l October 16th 2022 (added --disable-vdpau for ffmpeg ./configure)