Skip to content

Instantly share code, notes, and snippets.

@kaenova
Created August 17, 2025 13:52
Show Gist options
  • Save kaenova/105c1369b30bf3bfa8be8f42aed79e86 to your computer and use it in GitHub Desktop.
Save kaenova/105c1369b30bf3bfa8be8f42aed79e86 to your computer and use it in GitHub Desktop.
iGPU Debian LXC install

Intel Quick Sync Video (QSV) on Debian 12 Bookworm

Using SkyLake iGPU with Intel Media SDK and FFMPEG

Add Non-free and Non-free-firmware Repositories

nano /etc/apt/sources.list

Add non-free and non-free-firmware to the sources list.

Install Intel QSV on Debian 12 Bookworm

apt-get update
apt install pciutils firmware-linux-nonfree intel-media-va-driver i965-va-driver vainfo intel-gpu-tools intel-media-va-driver-non-free libmfx1 libmfx-gen1.2

Check Intel GPU

# Check if the Intel GPU is recognized
lspci -k | grep -EA3 'VGA|3D|Display'

# Check if the Intel GPU driver is loaded
LIBVA_DRIVER_NAME=iHD vainfo

# Check if the gpu top command works
intel_gpu_top

Trying FFMPEG with intel QSV

Install FFMPEG

apt install ffmpeg

Download a sample video

wget http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4

Running FFMPEG with Intel QSV

ffmpeg -hwaccel qsv -c:v h264_qsv -i ElephantsDream.mp4   -c:v h264_qsv -b:v 3000k test_qsv_output.mp4

To check using iGPU use intel_gpu_top command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment