Make compilation faster
apt install -y devmem2 msr-tools cd /root wget https://raw.githubusercontent.com/horshack-dpreview/setPL/master/setPL.sh chmod +x ./setPL.sh mv setPL.sh /usr/local/sbin ln -s /usr/local/sbin/setPL.sh /root/setPL.sh # just a habbit to run it from root
Set power limits 85/95 instead of */65
./setPL.sh 85 95
Intel Graphics drivers
apt remove -y intel-gpu-tools intel-media-va-driver-non-free intel-ocloc-legacy intel-ocloc intel-opencl-icd-legacy intel-opencl-icd libze-intel-gpu-raytracing apt install -y peg bison flex libcairo2-dev libudev-dev libprocess-cpp-dev libunwind-dev valgrind libpixman-1-dev libdw-dev libproc2-dev libkmod-dev libdrm-intel1 libdrm-dev meson cmake git clone https://github.com/intel/gmmlib.git cd gmmlib/ mkdir build cd build cmake ../ make -j 4 make install cd ../.. git clone https://github.com/intel/libva.git cd libva mkdir build cd build meson .. -Dprefix=/usr -Dlibdir=/usr/lib/x86_64-linux-gnu ninja sudo ninja install git clone https://github.com/intel/libva-utils.git cd libva-utils mkdir build cd build meson .. ninja sudo ninja install git clone https://github.com/intel/media-driver.git cd media-driver/ mkdir build cd build cmake ../ make -j 4 make install cd ../.. # Intel_gpu_tools compilation is optional apt install -y peg bison flex libcairo2-dev libudev-dev libprocess-cpp-dev libunwind-dev valgrind libpixman-1-dev libdw-dev libproc2-dev libkmod-dev git clone https://gitlab.freedesktop.org/drm/igt-gpu-tools cd igt-gpu-tools meson build && ninja -C build ./meson.sh install cd ..
status
root@morefine-s800:~/intel-graphics/media-driver/build# vainfo
Trying display: drm
libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_23
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.23 (libva 2.22.0.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 25.2.4 (484fcf1f0)
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
...
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointEncSlice
VAProfileHEVCSccMain444_10 : VAEntrypointVLD
VAProfileHEVCSccMain444_10 : VAEntrypointEncSlice
Intel igc
Intel Graphics compiler https://github.com/intel/intel-graphics-compiler/blob/master/documentation/build_ubuntu.md
apt install -y bison flex python3-mako libz-dev cmake libc6 libstdc++6 #apt install -y llvm-15 llvm-15-dev clang-15 liblld-15 liblld-15-dev libllvmspirvlib15 libllvmspirvlib-15-dev git config --global user.email "user@example.com" git config --global user.name "Example User" git clone https://github.com/intel/vc-intrinsics vc-intrinsics git clone -b llvmorg-15.0.7 https://github.com/llvm/llvm-project llvm-project git clone -b ocl-open-150 https://github.com/intel/opencl-clang llvm-project/llvm/projects/opencl-clang git clone -b llvm_release_150 https://github.com/KhronosGroup/SPIRV-LLVM-Translator llvm-project/llvm/projects/llvm-spirv git clone https://github.com/KhronosGroup/SPIRV-Tools.git SPIRV-Tools git clone https://github.com/KhronosGroup/SPIRV-Headers.git SPIRV-Headers git clone https://github.com/intel/intel-graphics-compiler igc cd build cmake ../igc make -j`nproc` sudo make install
https://github.com/intel/compute-runtime/releases
apt install -y clinfo mkdir neo cd neo wget https://github.com/intel/intel-graphics-compiler/releases/download/v2.11.7/intel-igc-core-2_2.11.7+19146_amd64.deb wget https://github.com/intel/intel-graphics-compiler/releases/download/v2.11.7/intel-igc-opencl-2_2.11.7+19146_amd64.deb wget https://github.com/intel/compute-runtime/releases/download/25.18.33578.6/intel-ocloc-dbgsym_25.18.33578.6-0_amd64.ddeb wget https://github.com/intel/compute-runtime/releases/download/25.18.33578.6/intel-ocloc_25.18.33578.6-0_amd64.deb wget https://github.com/intel/compute-runtime/releases/download/25.18.33578.6/intel-opencl-icd-dbgsym_25.18.33578.6-0_amd64.ddeb wget https://github.com/intel/compute-runtime/releases/download/25.18.33578.6/intel-opencl-icd_25.18.33578.6-0_amd64.deb wget https://github.com/intel/compute-runtime/releases/download/25.18.33578.6/libigdgmm12_22.7.0_amd64.deb wget https://github.com/intel/compute-runtime/releases/download/25.18.33578.6/libze-intel-gpu1-dbgsym_25.18.33578.6-0_amd64.ddeb wget https://github.com/intel/compute-runtime/releases/download/25.18.33578.6/libze-intel-gpu1_25.18.33578.6-0_amd64.deb wget https://github.com/intel/compute-runtime/releases/download/25.18.33578.6/ww18.sum sha256sum -c ww18.sum sudo dpkg -i *.deb
check
clinfo
root@morefine-s800:~/neo# clinfo -l Platform #0: Intel(R) OpenCL Graphics `-- Device #0: Intel(R) Arc(TM) Graphics
Intel OpenVINO
# OpenVino wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB echo "deb https://apt.repos.intel.com/openvino/2025 ubuntu24 main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2025.list apt update apt-cache search openvino apt install openvino python3 /usr/share/openvino/samples/python/hello_query_device/hello_query_device.py
Intel NPU driver
mkdir intel-npu-driver cd intel-npu-driver dpkg --purge --force-remove-reinstreq intel-driver-compiler-npu intel-fw-npu intel-level-zero-npu wget https://github.com/intel/linux-npu-driver/releases/download/v1.17.0/intel-driver-compiler-npu_1.17.0.20250508-14912879441_ubuntu24.04_amd64.deb wget https://github.com/intel/linux-npu-driver/releases/download/v1.17.0/intel-fw-npu_1.17.0.20250508-14912879441_ubuntu24.04_amd64.deb wget https://github.com/intel/linux-npu-driver/releases/download/v1.17.0/intel-level-zero-npu_1.17.0.20250508-14912879441_ubuntu24.04_amd64.deb dpkg -i *.deb # dpkg -l level-zero wget https://github.com/oneapi-src/level-zero/releases/download/v1.21.9/level-zero_1.21.9+u24.04_amd64.deb sudo dpkg -i level-zero*.deb cd ..
python3 /usr/share/openvino/samples/python/hello_query_device/hello_query_device.py |grep FULL_DEVICE_NAME:
root@morefine-s800:~# python3 /usr/share/openvino/samples/python/hello_query_device/hello_query_device.py |grep FULL_DEVICE_NAME: [ INFO ] FULL_DEVICE_NAME: Intel(R) Core(TM) Ultra 9 185H [ INFO ] FULL_DEVICE_NAME: Intel(R) Arc(TM) Graphics (iGPU) [ INFO ] FULL_DEVICE_NAME: Intel(R) AI Boost
Intel libVPL
git clone https://github.com/intel/libvpl cd libvpl export VPL_INSTALL_DIR=`pwd`/../_vplinstall sudo script/bootstrap cmake -B _build -DCMAKE_INSTALL_PREFIX=$VPL_INSTALL_DIR cmake --build _build cmake --install _build
FFmpeg with HW support for h.264/h.265/AV1 encoding
apt install libbluray2 libopenmpt0t64 libtheora0 libzvbi0t64 libzvbi-common libudfread0 wget https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v7.1.1-3/jellyfin-ffmpeg7_7.1.1-3-noble_amd64.deb dpkg -i jellyfin-ffmpeg7_7.1.1-3-noble_amd64.deb
example HW accelerated encoding
# default parameters /usr/lib/jellyfin-ffmpeg/ffmpeg -i /mnt/ALLO-6-DJI-4K-50FPS.mp4 -c:v av1_qsv -c:a copy ALLO-6-DJI-4K-50FPS-AV1.mp4 # veryslow /usr/lib/jellyfin-ffmpeg/ffmpeg -i /docker/ALLO-6-DJI-4K-50FPS.mp4 -init_hw_device vaapi=va:/dev/dri/renderD128 -look_ahead_depth 40 -extra_hw_frames 40 -adaptive_i 1 -adaptive_b 1 -b_strategy 1 -bf 7 -extbrc 1 -low_power 0 -movflags +faststart -movflags use_metadata_tags -map_metadata 0 -c:v av1_qsv -preset veryslow -c:a copy /docker/ALLO-6-DJI-4K-50FPS-AV1-VS.mp4
AV1 encoding of 4K 50FPS
| AV1 Preset | FPS | PC power |
|---|---|---|
| default | 106 | fps |
| veryslow | 75 | 73W |