Installation of Intel Media SDK / Media Server Studio

Intel Media SDK / Media Server Studio

The Intel Media SDK (Windows) and Intel Media Server Studio (Linux) represent a cross-platform API that consists of a set of libraries and tools to get fast video playback, encoding and processing to applications. The Unified Streaming Platform uses several libraries from the SDK to enable transcoding.

Using the Intel Media SDK or Media Server Studio, videos and audio can be software transcoded or with hardware acceleration. The latter speeds up the process considerably, but has very specific hardware requirements. Therefore, if you want to use hardware acceleration, we recommend you to use an off-the-shelf product like Artesyn's SharpStreamer. The documentation provided here is only aimed at using the Intel Media SDK in software mode. Do note that this still requires specific hardware.

Note

When referring to Intel Media SDK and Intel Media Server Studio names and terms, the version numbers and asset links are subject to change.

Windows

The basic prerequisite for installing the Intel Media SDK on Windows is computer or VM running Windows version 10 or Server 2016. It must be 64-bit. For any additional requirements, please refer to Intel's documentation.

To start, download the free community edition of the Intel Media SDK, version 2018 R2. Then install it:

../../_images/intel.png

When installing, only the SDK (Software Development Kit) component is necessary. Please uncheck any other options, like shown below:

../../_images/intel-install.png

When the installer prompts you to reboot, please do so. Once up and running again you may install the 64-bit Windows version of Unified Capture. If both the installation of the Intel Media SDK and Capture were successful, using the --frame_accurate parameter on your command line will produce frame accurate clips when specifying the begin and end times using the t=-parameter. For example:

#!/bin/bash

unified_capture -o clip1.ismv --frame_accurate \
  "http://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/Manifest?t=00:00:00.000-00:04:00.000"

Linux

Below you will find instructions for installing the Intel Media Server Studio 2018 R1 on CentOS 7, as well as a simple way to check whether your installation was successful. The guide is specifically targeted at release 7.4.1408 and presupposes a clean installation of CentOS.

CentOS (7.4.1408)

Note

Enabling hardware decoding with the Intel Media Server Studio 2018 R1 on Linux brings along much more requirements and calls for a different setup procedure. Contact us if you are interested in using such a setup with our software.

Intel defines release 7.4.1408 of CentOS as their Gold standard for Linux installations of the Intel Media Server Studio 2018 R1. Because of this, we recommend using this specific release, despite that it has been deprecated. The steps below assume a fresh installation of this release. Also, a minimum of two available CPU cores is a prerequisite.

If you need to install CentOS version 7.4.1408, it can be found here (please keep the installation as is and don't run any yum updates after installing it):

http://vault.centos.org/7.4.1408/

Then, the following steps will install only the packages from the Intel Media Server Studio 2018 R1 that are required for software transcoding (don't forget to replace '<download_link_that_you_received_from_intel>' with a valid link):

#!/bin/bash

sudo yum install wget
wget http://<download_link_that_you_received_from_intel>/MediaServerStudioEssentials2018R1.tar.gz
tar -xvzf MediaServerStudioEssentials2018R1.tar.gz
tar -xvzf MediaServerStudioEssentials2018R1/SDK2018Production16.8.tar.gz
cd SDK2018Production16.8/CentOS_7.4
sudo yum install intel-linux-media-16.8-69021.el7.centos.x86_64.rpm \
  libdrm-2.4.74-69021.el7.centos.x86_64.rpm libva-2.0.1.pre1-69021.el7.centos.x86_64.rpm
sudo reboot

Testing your installation

Having installed the necessary packages, you need to install mp4split (Installation). After you have done that, you can test your setup by running the following command:

#!/bin/bash

unified_capture -o testrun.ismv --frame_accurate \
  "http://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/Manifest?t=00:01:00.000-00:01:05.000"

If the installation of the Intel Media Server Studio and mp4split was successful, the above command creates a new clip from one of our demo streams, using frame accurate capturing. This can be checked by looking at the standard output of Capture, which should look something like this (notice the info on samples that are being transcoded):

unified_capture version=1.10.9 (18004)   Copyright 2007-2019 CodeShop B.V.

I0.000 input: http://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/Manifest?t=00:01:00.000-00:01:05.000
I0.000 output: file:///home/boy/test.ismv
http://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/Manifest?vbegin=1970-01-01T00:01:00Z&vend=1970-01-01T00:01:05Z
25%[==============>                                            ]
I0.155 Transcoding 96 samples of description:
I0.155 vide/avc1 dref=1 bitrate=401000/0 size=224x100 sar=1:1 dar=56:25
I0.155 avc profile=66 compatibility=192 level=20
I0.155 To sample entry:
I0.155 avc profile=66 compatibility=192 level=20
I0.208 Transcoding 96 samples of description:
I0.208 vide/avc1 dref=1 bitrate=751000/0 size=448x200 sar=1:1 dar=56:25
I0.208 avc profile=66 compatibility=192 level=22
I0.208 To sample entry:
I0.208 avc profile=66 compatibility=192 level=22
I0.305 Transcoding 96 samples of description:
I0.305 vide/avc1 dref=1 bitrate=1001000/0 size=784x350 sar=1:1 dar=56:25
I0.305 avc profile=77 compatibility=64 level=31
I0.305 To sample entry:
I0.305 avc profile=77 compatibility=64 level=31
I0.537 Transcoding 96 samples of description:
I0.537 vide/avc1 dref=1 bitrate=1502000/0 size=1680x750 sar=1:1 dar=56:25
I0.537 avc profile=100 compatibility=0 level=40
I0.537 To sample entry:
I0.537 avc profile=100 compatibility=0 level=40
I1.204 Transcoding 96 samples of description:
I1.204 vide/avc1 dref=1 bitrate=2203000/0 size=1680x750 sar=1:1 dar=56:25
I1.204 avc profile=100 compatibility=0 level=40
I1.204 To sample entry:
I1.204 avc profile=100 compatibility=0 level=40
100%[==========================================================>] 919 KB/s
I1.888 Finished writing: file:///home/boy/test.ismv (1627773 bytes)
total running time is 1.911116 seconds
Status: 200 FMP4_OK