July 3, 2016

Enable hardware acceleration for Intel Quick Sync in Linux

Nimble Streamer Transcoder supports Intel® Quick Sync technology for both software video encoding and hardware encoding acceleration using Intel® processors feature set. Nimble Streamer allows using Quick Sync as a H.264 video encoder in transcoding scenarios.

Once you have Quick Sync installed, the software encoding is available in our Transcoder by default while hardware acceleration needs to be enabled separately. The instructions below describe how to enable hardware acceleration on Linux. 

There are currently two SDKs for Linux which support QuickSync technology, their choice depends on your hardware capabilities. Each SDK is released as part of respective Media Server Studio so you need to choose what works best for you and follow its instruction. Once it's set up, you will need to install Live Transcoder itself and then proceed with transcoding scenarios.


Media Server Studio 2017 (Skylake and Broadwell support)


This SDK is supported in CentOS 7.2-1511. Install 64-bit CentOS-7-x86_64-DVD-1511.

When installing, you should use the "Development and Creative Workstation" base environment.
Do not update the system via yum update. The installed default components are required.

Now download SDK using this link and follow these instructions.
$ tar -xzf MediaServerStudio*.tar.gz
$ cd MediaServerStudio*
$ tar -xzf SDK2017*.tar.gz
$ cd SDK2017*/CentOS
$ tar -xzf install_scripts_*.tar.gz
$ su
# ./install_sdk_CentOS.sh
# reboot

Full setup instruction called Getting Started Guide can be found in SDK archive as media_server_studio_getting_started_guide.pdf. Please refer to it for details.


Media Server Studio 2016 (Broadwell and Haswell support)


This SDK release requires CentOS 7.1 for Quick Sync acceleration to work properly.
Current releases of Intel SDK only support Haswell and Broadwell architectures.

Install 64-bit CentOS 7.1-1503 from http://vault.centos.org/7.1.1503/isos/x86_64/

When installing, you should use the "Development and Creative Workstation" base environment.
Do not update the system via yum update. The installed default components are required.

Install Intel® Media Server Studio Free Community Edition for Linux from https://software.intel.com/en-us/intel-media-server-studio according to Intel® Media Server Studio Getting Started Guide:

As root


# usermod -a -G video [LOGIN]

As regular user


$ tar -xvzf MediaServerStudio*.tar.gz $ cd MediaServerStudio* $ tar -xvzf SDK*.tar.gz $ cd SDK* $ cd CentOS $ tar -xvzf install_scripts*.tar.gz 

As root


# ./install_sdk_UMD_CentOS.sh
# mkdir /MSS
# chown {regular user}:{regular group} /MSS

As regular user:


$ cp build_kernel_rpm_CentOS.sh /MSS
$ cd /MSS
$ ./build_kernel_rpm*.sh

As root:


# cd /MSS/rpmbuild/RPMS/x86_64
# rpm -Uvh kernel-3.10.*.rpm
# reboot


Full setup instruction called Getting Started Guide can be found in SDK archive as media_server_studio_getting_started_guide.pdf. Please refer to it for details.



Install Nimble Streamer Transcoder


Follow Transcoder CentOS 7 installation procedure and then follow this article to set up hardware encoder parameters.

After that you'll be all set to use Intel hardware acceleration on Linux with our live Transcoder.



If you face any questions, feel free to contact us for any questions.

Related documentation


Live Transcoder for Nimble StreamerLive Streaming featuresBuild streaming infrastructure with Nimble StreamerTranscoder support for Intel® Quick Sync, Enabling hardware acceleration on Windows,

Intel is a trademark of Intel Corporation in the U.S. and/or other countries.

No comments:

Post a Comment