Skip to content

3. A Beginner's Guide to Intel

Ninetian Inc edited this page Jul 3, 2020 · 2 revisions

About Guide

This guide will help you get your Intel iGPU Instance up and running on a number of popular distributions. To prepare your FFmpegToolkit, you will need to install mediasdk proprietary drivers using Intel Mediasdk Toolkit.

Intel Graphics Technology is the collective name for a series of integrated graphics processors produced by Intel that are manufactured on the same package or die as the central processing unit. It was first introduced in 2010 as Intel HD Graphics.

Linux

A whole open source media stack is provided with much wider HW platforms and Linux distributions supported. (You can also download the installation binary Media Server Studio from ​https://software.intel.com/en-us/intel-media-server-studio/. However, only limited HW platforms and Linux distributions are supported by Media Server Studio.)

Intel open source media stack

Project Name Supported Gen Graphics Open Source Repo
MSDK gen8 https://github.com/Intel-Media-SDK/MediaSDK
Libva gen5 https://github.com/intel/libva
i965 driver gen5 ~ gen9.5 https://github.com/intel/intel-vaapi-driver
iHD driver gen8+ https://github.com/intel/media-driver

Install Package

sudo dnf install -y epel-release
sudo dnf install -y gcc gcc-c++ git libgcc glib2 bzip2 xz unzip make cmake automake autoconf patch ruby ncurses ncurses-devel mercurial hg neon expat expat-devel alsa-lib \
zlib zlib-devel libjpeg libjpeg-devel libpng libpng-devel gd gd-devel gettext freetype freetype-devel ImageMagick ImageMagick-devel \
libstdc++ libstdc++-devel numactl numactl-devel mediainfo re2c giflib-devel giflib libtiff libtiff-devel libtool libxml2 libxml2-devel \
subversion doxygen SDL-devel freeglut-devel openssl-devel fribidi-devel fribidi

# Intel
sudo dnf install -y redhat-lsb-core libdrm-devel intel-opencl-icd opencl-headers ocl-icd ocl-icd-devel

Check hardware

lspci |grep Display

Install MediaSDK

# the lastest version can been find in https://github.com/Intel-Media-SDK/MediaSDK/releases

cd /opt
imsdk_ver=20.1.1 # change it to latest versions number
wget https://github.com/Intel-Media-SDK/MediaSDK/releases/download/intel-mediasdk-{$imsdk_ver}/MediaStack.tar.gz
tar xvfz MediaStack.tar.gz
cd MediaStack
bash install_media.sh

# See return
INFO... Install on CentOS ...
INFO... MediaSDK installed successfully in /opt/intel/mediasdk!
INFO... Installing Config files...
INFO... The LIBVA_DRIVERS_PATH/LIBVA_DRIVER_NAME will be exported through /etc/profile.d/intel-mediasdk.(c)sh for intel media solution. Please reboot to make it effective.
INFO... Calling ldconfig after all user-space drivers and config files are in place...
INFO... Calling to ldconfig is done.
INFO... Package installation Done. Please Reboot.

# Must Reboot your system
reboot

Check and verfiy

ls /opt/intel/mediasdk/
lsmod | grep 'i915'
dmesg|grep drm
ls -altr /dev/dri/

Clone this wiki locally