Intel Graphics Media Driver to support hardware decode, encode and video processing.
Go to file
longfei_han b1afa94c9b media: ClearLinux: default cfg - use /usr/share/defaults/etc instead of /etc(CL#751683)
Description:
The ClearLinux "stateless" feature includes movement of all default configuration out of /etc to elsewhere, such as to /usr/share/defaults/etc.A ClearLinux bundle (ClearLinux's meta-package concept) will no longer install any files under /etc.
Directory "/etc" now is intended to only receive content that is system-specific.
Ultimately, the cause of these failures is that the ClearLinux distribution configures its built-in RPM macros to automatically delete all files that a package might place under /etc.  Then, rpmbuild complains about the missing files.

Change-Id: I8cb2693641283a52cdc14ecabd3a680b3c1d01bd
2018-03-29 15:35:19 +08:00
Tools Intel(R) Media Driver for VAAPI 1st release 2017-11-30 15:45:48 +08:00
cmrtlib [CM] Include cm_rt_extend.h in the development package(CL#746901) 2018-03-12 18:09:02 +08:00
media_driver [HEVC Encode FEI] Fix QP reporting issue for HEVC FEI max frame size feature(CL#751641) 2018-03-26 16:50:44 +08:00
.travis.yml add .tarvis.yml 2018-02-06 15:45:47 +08:00
CMakeLists.txt media: ClearLinux: default cfg - use /usr/share/defaults/etc instead of /etc(CL#751683) 2018-03-29 15:35:19 +08:00
LICENSE.md Add Linux Devult which utilize googletest framework 2017-12-29 13:33:17 +08:00
README.md update README 2018-03-21 14:57:33 +08:00
distro_cmake.sh Intel(R) Media Driver for VAAPI 1st release 2017-11-30 15:45:48 +08:00
os_release_info.cmake media: ClearLinux: default cfg - use /usr/share/defaults/etc instead of /etc(CL#751683) 2018-03-29 15:35:19 +08:00
pack_ext.cmake [Media OpenSource] None.(CL#743229) 2018-03-02 18:15:40 +08:00
unified_cmake.sh update README and unified_cmake.sh for CMAKE_INSTALL_PREFIX 2017-12-08 15:49:19 +08:00

README.md

Intel(R) Media Driver for VAAPI

Introduction

The Intel(R) Media Driver for VAAPI is a new VA-API (Video Acceleration API) user mode driver supporting hardware accelerated decoding, encoding, and video post processing for GEN based graphics hardware.

License

The Intel(R) Media Driver for VAAPI is distributed under the MIT license with portions covered under the BSD 3-clause "New" or "Revised" License. You may obtain a copy of the License at:

https://opensource.org/licenses/MIT

&

https://opensource.org/licenses/BSD-3-Clause

Prerequisites

For Ubuntu 16.04 and above

# apt install autoconf libtool libdrm-dev xorg xorg-dev openbox libx11-dev libgl1-mesa-glx libgl1-mesa-dev

Equivalents for other distributions should work.

Dependencies

Libva - https://github.com/intel/libva

GmmLib - https://github.com/intel/gmmlib (please check https://github.com/intel/media-driver/wiki/Comparability-with-GmmLib)

Building

  1. Build and install libva master
  2. Get gmmlib and media repo and format the workspace folder as below (suggest the workspace to be a dedicated one for media driver build):
<workspace>
    |- gmmlib
    |- media-driver
$ mkdir <workspace>/build_media
$ cd <workspace>/build_media
$ cmake ../media-driver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMEDIA_VERSION="2.0.0" \
-DBUILD_ALONG_WITH_CMRTLIB=1 \
-DBS_DIR_GMMLIB=`pwd`/../gmmlib/Source/GmmLib/ \
-DBS_DIR_COMMON=`pwd`/../gmmlib/Source/Common/ \
-DBS_DIR_INC=`pwd`/../gmmlib/Source/inc/ \
-DBS_DIR_MEDIA=`pwd`/../media-driver

Alternatively, copy

<workspace>/media-driver/unified_cmake.sh

into

<workspace>/build_media

then run

$ ./unified_cmake.sh
$ make -j8

Install

$ sudo make install

This will install the following files (e.g. on Ubuntu):

-- Installing: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
-- Installing: /etc/profile.d/intel-media.sh
-- Installing: /usr/lib/x86_64-linux-gnu/igfxcmrt64.so

For iHD_drv_video.so please export related LIBVA environment variables.

export LIBVA_DRIVERS_PATH=<path-contains-iHD_drv_video.so>
export LIBVA_DRIVER_NAME=iHD

Supported Platforms

BDW (Broadwell)

SKL (Skylake)

BXT (Broxton) / APL (Apollolake)

CNL (Cannonlake)

Supported Codecs

CODEC D/E Platform(s)
H.264 D BDW/SKL/BXT/APL/CNL
H.264 E BDW/SKL/BXT/APL/CNL
MPEG-2 D BDW/SKL/BXT/APL/CNL
MPEG-2 E BDW/SKL/CNL
VC-1 D BDW/SKL/BXT/APL/CNL
JPEG D BDW/SKL/BXT/APL/CNL
JPEG E SKL/BXT/APL/CNL
VP8 D BDW/SKL/BXT/APL/CNL
VP8 E CNL
HEVC D SKL/BXT/APL/CNL
HEVC E SKL/BXT/APL/CNL
HEVC 10bit D BXT/APL/CNL
HEVC 10bit E CNL
VP9 D BXT/APL/CNL
VP9 E CNL
VP9 10bit D CNL

Known Issues and Limitations

  1. SKL: Green or other incorrect color will be observed in output frames when using YV12/I420 as input format for csc/scaling/blending/rotation, etc. on Ubuntu 16.04 stock (with kernel 4.10). The issue can be addressed with the kernel patch: WaEnableYV12BugFixInHalfSliceChicken7 commit 0b71cea29fc29bbd8e9dd9c641fee6bd75f6827

  2. CNL: Functionalities requiring HuC including AVC BRC for low power encoding, HEVC low power encoding, and VP9 low power encoding are pending on the kernel patch for GuC support which is expected in Q12018.

  3. BXT/APL: Limited validation was performed; product quality expected in Q12018.

(*) Other names and brands may be claimed as property of others.