According to project requirements, the customer needs to use Intel's integrated GPU (core display) for video decoding. Here we will focus on some compilation steps during the project, including how to compile the FFMPEG QSV plug-in, how to install Intel's libva, media-driver and msdk source code compilation method, and how to compile the FFMPEG source code to integrate the QSV decoder.
Currently installed based on Media SDK 22.1.0 or below, please checkout for the version
-
Media SDK and Samples: Release Media SDK 22.1.0 · Intel-Media-SDK/MediaSDK · GitHub
-
Driver: Release Intel Media Driver 2021Q4 Release - 22.1.1 · intel/media-driver · GitHub
-
libva-utils: Release Libva-utils 2.13.0 · intel/libva-utils · GitHub
1 Basic required installation
apt-get install git make dh-autoreconf pkg-config libncurses5-dev libpthread-stubs0-dev libpciaccess-dev libxvmc-dev xutils-dev libsdl2-dev libxcb-shm0-dev cmake libmfx1 libmfx-tools vainfo libtool libdrm-dev autoconf automake bzip2 nasm yasm
2 gcc and cmake installation
apt-get install g++
3 checks
$ gcc -v
$ g++ -v
gcc/g++ version is greater than or equal to 4.9, cmake version is greater than or equal to 3.6
4 compile gmmlib
git clone https://github.com/intel/gmmlib.git
git checkout 22.0版本
cd gmmlib && mkdir -p build && cd build && cmake .. && make && make install
5 libva VA-API compilation and installation
git clone GitHub - intel/libva: Libva is an implementation for VA-API (Video Acceleration API)
git checkout 2.13 版本
cd libva
./autogen.sh
./configure --enable-x11&&make -j`nproc`&&make install
git clone GitHub - intel/libva-utils: Libva-utils is a collection of tests for VA-API (VIdeo Acceleration API)
git checkout 2.13 版本
cd libva-utils
./autogen.sh --prefix=/opt/intel/libva-utils --libdir=/opt/intel/libva-utils/lib
make -j`nproc`&&make install
6 Compile and install Media-Driver
git clone GitHub - intel/media-driver
git checkout 22.1版本
mkdir -p build
cd build
cm