====== ffmpeg + Intel QuickSync ======
* http://emby.media/community/index.php?/topic/10723-gpu-transcoding-intel-quicksync-and-nvidia-nvenc/page-30#entry314835
===== Fordítás forráskódból Ubuntu Trusty-n (14.04) =====
- Install requirements:
sudo apt-get install libvdpau-va-gl1
sudo apt-get install cmake make gcc pkg-config patch yasm g++ autoconf automake build-essential cifs-utils texi2html
sudo apt-get install libpthread-stubs0-dev libpciaccess-dev libass-dev libfreetype6-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev \
libx11-dev libxext-dev libxfixes-dev zlib1g-dev libx264-dev libmp3lame-dev libfaac-dev librtmp-dev libvo-aacenc-dev libx264-dev libvdpau-va-gl1 libva-intel-vaapi-driver
- **Media Server Studio Essentials** letöltése:
wget "http://registrationcenter-download.intel.com/akdlm/irc_nas/8684/MediaServerStudioEssentials2016.tar.gz"
tar xf MediaServerStudioEssentials2016.tar.gz
cd MediaServerStudioEssentials2016
tar xf SDK2016Production16.4.4.tar.gz
cd SDK2016Production16.4.4/Generic
tar xf intel-linux-media-ocl_generic_16.4.4-47109_64bit.tar.gz
- Telepítő létrehozása
#!/bin/bash
echo "Modify file for ubuntu ..."
find -name "*.pc" | xargs sed -i 's|lib64|lib/x86_64-linux-gnu|g'
# if using MSS version less than R6, please uncomment this.
#sed -i 's|lib64|lib/x86_64-linux-gnu|g' etc/OpenCL/vendors/intel.icd
echo "Remove old MSS install files ..."
sudo rm -rf /opt/intel/mediasdk
sudo rm -rf /opt/intel/common
sudo rm -rf /opt/intel/opencl
# remove old libdrm and libva
find /usr -name "libdrm*" | xargs sudo rm -rf
find /usr -name "libva*" | xargs sudo rm -rf
echo "Install MSS files ..."
sudo cp -rdf opt/* /opt/
sudo cp -rdf etc/* /etc/
sudo cp -rdf usr/bin/* /usr/bin/
sudo cp -rdf usr/include/* /usr/include/
sudo cp -rdf usr/lib64/* /usr/lib/x86_64-linux-gnu/
sudo cp -rdf usr/share/* /usr/share
echo "Install finished, please reboot ..."
chmod +x install_media_ubuntu.sh
- Telepítés, majd újraindítás:
sudo ./install_media_ubuntu.sh
sudo usermod -a -G video $USER
sudo reboot
- ''libdrm'' telepítése:
cd MediaServerStudioEssentials2016/SDK2016Production16.4.4/Generic/opt/intel/mediasdk/opensource/libdrm/2.4.54-47109
tar xf libdrm-2.4.54.tar.bz2
cd libdrm-2.4.54
./configure
make -j 8
sudo make install
- ''libva'' telepítése:
cd MediaServerStudioEssentials2016/SDK2016Production16.4.4/Generic/opt/intel/mediasdk/opensource/libva/1.67.0.pre1-47109
tar xf libva-1.67.0.pre1.tar.bz2
cd libva-1.67.0.pre1
./configure --enable-static
make -j 8
sudo make install
sudo reboot
- ''libmfx'' telepítése:
sudo mkdir /opt/intel/mediasdk/include/mfx
sudo cp /opt/intel/mediasdk/include/*.h /opt/intel/mediasdk/include/mfx
prefix=/opt/intel/mediasdk
exec_prefix=${prefix}
libdir=${exec_prefix}/lib/lin_x64
includedir=${prefix}/include
Name: libmfx
Description: Intel Media SDK Dispatched static library
Version: 16.16
Libs: -L${libdir} -lmfx -lva -lstdc++ -ldl -lva-drm -ldrm
Libs.private:
Cflags: -I${includedir} -I/usr/include/libdrm
- Újraindítás:
sudo reboot
- ffmpeg telepítése forrásból (letöltés, futtatás): https://gist.github.com/andras-tim/55c2fa48c66669fa567c43bb03c709c2