Intel-MediaSDK-23.2.2

#### Supplemental Linux® From Scratch - Version 13.0

### Chapter 8. Graphical Libraries

- Prev

  fcft-3.3.3

- Next

  intel-onevpl-26.1.2

- Up
- Home

# Intel-MediaSDK-23.2.2

## 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.

- Download: https://github.com/Intel-Media-SDK/MediaSDK/archive/refs/tags/intel-mediasdk-23.2.2.tar.gz

### 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 ...

## Contents

Installed Programs: asg-hevc, hevc_fei_extractor, and mfx-tracer-config
Installed Libraries: libmfx, libmfxhw64, and libmfx-tracer
Installed Directories: /usr/{include,lib,share}/mfx

### Short Descriptions

asg-hevc | encodes files using the HEVC codec while using this package for GPU acceleration
hevc_fei_extractor | dumps fei-specific information from HEVC bit streams
mfx-tracer-config | generates configuration for the MFX tracer
`libmfx` | provides a dispatcher for the Broadwell through Tiger Lake iGPUs
`libmfxhw64` | provides a dispatcher for libvpl to use when an unsupported GPU is in use, forwarding the request to the newer runtime
`libmfx-tracer` | provides functions that trace API calls within libmfx

- Prev

  fcft-3.3.3

- Next

  intel-onevpl-26.1.2

- Up
- Home