[FFmpeg-user] Quicksync Ubuntu

Maxim Kozlov rogat1y at gmail.com
Sat Oct 10 16:14:01 CEST 2015


How to compile sdk + ffmpeg on ubuntu 12.04.5. server
1. apt-get install gcc gobjc pkg-config libpthread-stubs0-dev
libpciaccess-dev make patch yasm g++ autoconf cmake \
automake build-essential libass-dev libfreetype6-dev libgpac-dev
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev
libx11-dev \
libxext-dev libxfixes-dev texi2html zlib1g-dev libx264-dev libmp3lame-dev
libfaac-dev librtmp-dev libvo-aacenc-dev libx264-dev cifs-utils

2. Media Server Studio Essentials 2015r6
wget http://.../mediaserverstudioessentials2015r6.tar.gz
tar xf mediaserverstudioessentials2015r6.tar.gz
cd MediaServerStudioEssentials2015R6
tar xf SDK2015Production16.4.2.1.tar.gz
cd SDK2015Production16.4.2.1/Generic/
tar xf intel-linux-media-ocl_generic_16.4.2.1-39163_64bit.tar.gz

3. libdrm
cd /opt/intel/mediasdk/opensource/libdrm/2.4.54-39163/
tar xf libdrm-2.4.54.tar.bz2
cd libdrm-2.4.54
make -j 8
make install

4. libva
cd /opt/intel/mediasdk/opensource/libva/1.3.1-staging.20130628.39163
tar xf libva-1.3.1.tar.bz2
cd libva-1.3.1
./configure --enable-static
make install

5. libmfx
cd /opt/intel/mediasdk/opensource/mfx_dispatch/
mkdir build
cd build
cmake –D__ARCH:STRING=intel64 ../
make -j 8
ln -s /opt/intel/mediasdk/include/ /usr/local/include/mfx

6. libs
cd /usr/local/lib
ln -sf /opt/intel/mediasdk/opensource/mfx_dispatch/build/__lib/libmfx.a
ln -sf
ln -sf
ln -sf
ln -sf
ln -sf

7. create file /usr/lib/pkgconfig/libmfx.pc:

Name: libmfx
Description: Intel Media SDK Dispatched static library
Version: 2015
Libs: -L${libdir} -lmfx -ldispatch_shared -lva -lva-drm -lsupc++ -lstdc++
Cflags: -I${includedir}

8. add to /etc/environment:

9. linux-kernel patch
wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.5.tar.xz
tar xf linux-3.14.5.tar.xz
cd linux-3.14.5
tar xf intel-kernel-patches.tar.bz2
for i in intel-kernel-patches/*.patch; do patch -p1 < $i; done
make olddefconfig
make -j 8
make modules_install
make install

10. ffmpeg will be installed to /opt/ffmpeg_qsv/
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xf ffmpeg-snapshot.tar.bz2
cd ffmpeg
./configure --disable-shared --enable-static --enable-gpl --enable-nonfree
--enable-fontconfig --enable-libfaac --enable-libfreetype \
--enable-libmp3lame --enable-librtmp --enable-libvo-aacenc --enable-libx264
--enable-version3 --enable-ffplay --disable-doc \
--disable-ffserver --enable-pthreads --enable-filters --enable-libvorbis
--enable-libtheora --enable-runtime-cpudetect --enable-libass \
--enable-bzlib --enable-zlib --prefix=/opt/ffmpeg_qsv/ --enable-libmfx
make -j 8
make install

Successfully works on intel NUC mini pc.

2015-10-10 2:27 GMT+03:00 dexterp1000 . <dpatten91 at gmail.com>:

> So, I've been trawling the net since the FFMPEG 2.8 announcement for any
> information on how to enable and use QS support in Ubuntu. Quicksync is the
> one thing that is keeping me tied to Windows.
> From what I have seen/read/tried so far, I need to install the mediasdk -
> which is okay, but requires some real setting up, and then compiling
> libmfx. This is usually where my problems start. I get numerous errors
> about pkg-config not being able to find libmfx. If anyone can help me suss
> this out, I would be eternally greatful.
> Dexter
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

More information about the ffmpeg-user mailing list