歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 安裝 Mplayer with VA-API(Intel/AMD GPU硬件加速)

Ubuntu 安裝 Mplayer with VA-API(Intel/AMD GPU硬件加速)

日期:2017/2/28 14:56:11   编辑:Linux教程

VA-API是一個開啟硬件加速視頻處理的開源library/API,它使用GPU加速視頻處理從而減輕CPU負擔.

支持硬件: Intel HD Graphics,G45芯片組(包括更新的),AMD Radeon GPUs.(另外還有一個支持VA-API的Nvidia VDPAU後端)

你可以在http://en.wikipedia.org/wiki/Video_Acceleration_API#Supported_hardware_and_drivers查看支持的硬件,驅動和視頻解碼.

原文作者樣例:使用MPlayer without VA-API播放一個1080p H.264視頻,CPU使用40-50%左右,而用MPlayer with VA-API的情況下,CPU只用了 2-5%.

在Ubuntu上安裝Intel / AMD VA-API drivers

Intel GPUs ( Intel HD Graphics , G45 和之後的)

sudo apt-get install i965-va-driver
 
AMD Radeon GPUs(你需要安裝proprietary drivers
sudo apt-get install xvba-va-driver

Ubuntu安裝MPlayer(VA-API支持)

Ubuntu官方源中的Mplayer不支持VA-API,
Ubuntu 12.10, 12.04 or 11.10用戶可以通過下面的命令安裝支持VA-API的Mplayer.
sudo add-apt-repository ppa:sander-vangrieken/vaapi 
sudo apt-get update 
sudo apt-get install mplayer-vaapi
Arch Linux用戶可安裝
https://www.archlinux.org/packages/community/i686/mplayer-vaapi/這個包.
mplayer-vaapi源碼:http://gitorious.org/vaapi/mplayer
參考:http://www.webupd8.org/2012/11/install-mplayer-with-va-api-hardware.html
安裝後打開你的播放器,如SMPlayer或其他MPlayer GUI,如Gnome Mplayer, KMPlayer,
打開Preferences,如 ( SMPlayer: General Video > Output driver) 
設置video output driver 為 "vaapi"

Copyright © Linux教程網 All Rights Reserved