在Linux系統(tǒng)下的 Wowza Transcoder 增加了對(duì)Intel Quick Sync Video的支持,由此可以充分利用Intel核心處理器來實(shí)現(xiàn)硬件加速視頻編碼。這個(gè)技術(shù)通過將視頻編碼的任務(wù)交給一個(gè)獨(dú)占的媒體計(jì)算空間,以此實(shí)現(xiàn)了更快速的視頻編碼。這篇文章介紹了在Linux系統(tǒng)下,如何使用這個(gè)Intel Quick Sync 加速編碼技術(shù):
Ubuntu Server 12.04 (amd64) 系統(tǒng)下的配置指南
SUSE Linux Enterprise Server 11 with Service Pack 3 (x86_64) 系統(tǒng)下的配置指南

注意: 這個(gè)功能需要Wowza Streaming Engine™ 4.0.4及以上版本的支持。
Ubuntu Server 12.04(amd64) 系統(tǒng)下的配置指南
安裝 Ubuntu Server 12.04 64-bit (amd64).
以root用戶身份登錄系統(tǒng),在終端命令行窗口輸入以下命令對(duì)系統(tǒng)做一個(gè)更新:
apt-get update
apt-get upgrade
apt-get install python-software-properties
add-apt-repository ppa:kernel-ppa/ppa
apt-get update
注意: 在運(yùn)行apt-get update時(shí),可能會(huì)出現(xiàn)一些 404 errors,正常的,不用管它。
根據(jù)支持Intel Quick Sync硬件加速編碼的硬件服務(wù)規(guī)格中介紹的服務(wù)器硬件規(guī)格, 使用下面的命令,安裝你的CPU支持的Kernel版本:
Intel Xeon E3-1285 v3 / 4th Generation Intel Core
apt-get install linux-headers-3.8.0-23linux-headers-3.8.0-23-generic linux-image-3.8.0-23-generic --fix-missing
Intel Xeon E3-1285 v2 / 3rd GenerationIntel Core (不推薦用這個(gè)型號(hào))
# Install prerequisite tools
apt-get install git build-essentialkernel-package fakeroot libncurses5-dev
# Change directory to build location
cd $HOME
# Download and un-tar the kernel sourcefrom Kernel.org that includes proper fixes for Intel ivy-bridge processors
wgethttps://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.5.tar.gz
tar xvf linux-3.14.5.tar.gz
cd linux-3.14.5
# Copy the current kernel config to thebuild directory
cp /boot/config-`uname -r` .config
# Configure and build the source
yes '' | make oldconfig
make clean
make -j `getconf _NPROCESSORS_ONLN` deb-pkgLOCALVERSION=-custom
# Install the built kernel
cd ..
dpkg -i linux-image-3.14.5-custom_3.14.5-custom-1_amd64.deb
dpkg -ilinux-headers-3.14.5-custom_3.14.5-custom-1_amd64.deb
注意: 以上指南參考自Ubuntu: Wiki: GitKernelBuild
編輯/etc/default/grub文件:
# Edit grub configuration file
vi /etc/default/grub
# change the following line from (around line 6):
GRUB_DEFAULT=0
# to the following for Intel Xeon E3-1285 v3 / 4th Generation Intel Core:
GRUB_DEFAULT="Previous Linux versions>Ubuntu, with Linux 3.8.0-23-generic"
# to the following for Intel Xeon E3-1285 v2 / 3rd Generation Intel Core:
GRUB_DEFAULT="Ubuntu, with Linux 3.14.5-custom"
# update grub and reboot
update-grub
shutdown -r 0
檢查你運(yùn)行正確版本的kernel(這對(duì)下一步要安裝的驅(qū)動(dòng)包非常重要):
uname -a
Intel Xeon E3-1285 v3 / 4th GenerationIntel Core
3.8.0-23-generic
Intel Xeon E3-1285 v2 / 3rd GenerationIntel Core (不推薦這個(gè)型號(hào))
3.14.5-custom
下載并安裝Ubuntu Server 12.04 (amd64)下的驅(qū)動(dòng)包:
cd /opt
wget http://www.wowza.com/downloads/WowzaTranscoder-4-Components/intel-quicksync-linux/intel-linux-media_ubuntu_16.3.1.18283_64bit.tar.gz
tar -xvf intel-linux-media_ubuntu_16.3.1.18283_64bit.tar.gz
cd intel-linux-media_ubuntu_16.3.1.18283_64bit
./install_media.sh
注意: 對(duì)于Intel Xeon E3-1285 v2 / 3rd Generation Intel Core處理器,這個(gè)腳本將詢問你用哪一個(gè)kernel。 系統(tǒng)給出的兩個(gè)選擇可能與你運(yùn)行的Kernel版本不同。這時(shí),用Cntrl-C終端這個(gè)腳本。 如果你從建議的Kernel.org 源碼下載并安裝的Kernel,那么就需要這個(gè)腳本安裝并運(yùn)行的kernel模式的驅(qū)動(dòng)。
重啟服務(wù)器,確認(rèn)驅(qū)動(dòng)被加載:
shutdown -r 0
SUSE Linux EnterpriseServer 11 with Service Pack 3 (x86_64) 系統(tǒng)下的配置指南
安裝 SUSE Linux Enterprise Server 11 SP3 64-bit (x86_64). 在安裝后,確認(rèn)要下載和安裝在線更新包.
下載并安裝SUSE Linux Enterprise Server 11 SP3 (x86_64)下的驅(qū)動(dòng)包:
cd /opt
wget http://www.wowza.com/downloads/WowzaTranscoder-4-Components/intel-quicksync-linux/intel-linux-media_sles_16.3.1.18283_64bit.tar.gz
tar -xvf intel-linux-media_sles_16.3.1.18283_64bit.tar.gz
cd intel-linux-media_sles_16.3.1.18283_64bit
./install_media.sh
重啟服務(wù)器,確認(rèn)驅(qū)動(dòng)被加載:
shutdown -r 0
Wowza Streaming Engine 4是業(yè)界功能強(qiáng)大、API接口豐富的流媒體Server產(chǎn)品,采用它作為流媒體服務(wù)器產(chǎn)品的案例很多,直播、在線教育、IPTV都有它的用武之地。
京ICP備09015132號(hào)-996 | 違法和不良信息舉報(bào)電話:4006561155
© Copyright 2000-2026 北京哲想軟件有限公司版權(quán)所有 | 地址:北京市海淀區(qū)西三環(huán)北路50號(hào)豪柏大廈C2座11層1105室
北京哲想軟件集團(tuán)旗下網(wǎng)站:哲想軟件 | 哲想動(dòng)畫