Introduction to Intel-MediaSDK
The Intel-MediaSDK package contains a set of libraries that provide
support for video acceleration for encoding and decoding tasks on
legacy Intel GPUs. This includes Intel iGPUs from the 5th
Generation Core CPUs (Broadwell) through the 11th Generation Core
CPUs (Tiger Lake). This package also provides a dispatcher library
that is needed by applications such as ffmpeg to properly enable
support for GPU acceleration with Intel GPUs.
Note
This may take a while to build. Feel free to do something else
while this is building.
Intel-MediaSDK Dependencies
Required
CMake,
gmmlib,
intel-media-driver, libdrm,
libva,
libxcb,
and Xorg
Libraries
Recommended
Wayland
Note
This package extracts to MediaSDK-intel-mediasdk-23.2.2.
Installation of Intel-MediaSDK
First, fix two build failures caused by GCC-15:
sed -i '/<string.h>/a #include <cstdint>' api/mfx_dispatch/linux/mfxparser.cpp &&
sed -i '/<math.h>/a #include <cstdint>' samples/sample_vpp/src/sample_vpp_frc_adv.cpp
Install Intel-MediaSDK by running the following commands:
mkdir build &&
cd build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_SKIP_INSTALL_RPATH=ON \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
-D BUILD_ALL=ON \
-D BUILD_TOOLS=ON \
-D ENABLE_ITT=OFF \
-D ENABLE_OPENCL=OFF \
-D ENABLE_WAYLAND=ON \
-D ENABLE_X11_DRI3=ON \
-D MFX_APPS_DIR=/usr/lib/mfx \
-W no-dev .. &&
make
To test the results, issue: ctest.
Now, as the root
user:
make install
Command Explanations
-D BUILD_ALL=ON
: This
parameter builds support for all Intel iGPUs included with the
Broadwell series through the Tiger Lake series, as well as support
for all codecs.
-D BUILD_TOOLS=ON
: This
parameter builds all of the tools needed for utilizing the GPUs
that this package supports.
-D ENABLE_ITT=OFF
: This
parameter disables support for ITT (VTune) instrumentation support.
This support requires several packages which are no longer
available.
-D ENABLE_OPENCL=OFF
: This
parameter disables support for OpenCL acceleration via the Intel
Media SDK. This has been disabled because the packages needed have
been discontinued for years and are no longer available.
-D ENABLE_WAYLAND=ON
: This
parameter enables support for GPU acceleration for supported Intel
GPUs when using Wayland.
-D ENABLE_X11_DRI3=ON
: This
parameter enables support for GPU acceleration through DRI3 for
supported Intel GPUs.
-D
MFX_APPS_DIR=/usr/lib/mfx
: This parameter places the
samples that were compiled into /usr/lib/mfx.
Note
For a full list of options and values, make sure you are in a
build directory, then run cmake
-LAH ...