sudo apt install libva-dev
    git clone https://github.com/Unit-X/Intel-MSDK-Ubuntu20-04-Installer.git --depth=1
    cd Intel-MSDK-Ubuntu20-04-Installer
    ./install_msdk1.sh
    (If finished with no errors)
    sudo reboot now
    (cd to Intel-MSDK-Ubuntu20-04-Installer directory)
    ./install_msdk2.shDRI_PRIME=0" before the command to work
    example: DRI_PRIME=0 ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device /dev/dri/renderD128  -i input.mkv -acodec flac -compression_level 8 -ac 2 -c:v hevc_vaapi  new.mkv© 2019 to 2025 Branden Gilfoil & © up to 2025 for respective owners.