Using SkyLake iGPU with Intel Media SDK and FFMPEG
nano /etc/apt/sources.list
Add non-free and non-free-firmware to the sources list.
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 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
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.