奇幻遊戲社群

標題: ATI硬解加速 in Linux [打印本頁]

作者: hsuyucheng    時間: 2010-9-2 01:53:57     標題: ATI硬解加速 in Linux

本帖最後由 hsuyucheng 於 2010-9-2 18:06 編輯

I try to write article by English,  so I write English for technology.


Step 1: Prepare
1.  Install ATI driver from AMD
2.  check  Unified Video Decoder in ATI
    cat /var/log/Xorg.0.log | grep UVD
    If show
(II) fglrx(0): UVD2 feature is available, then you can use hardware solution.

3. install libva for you system
  For example I use two items (dev is need for mplayer compiler)
  
  libva1_0.31.1-1+sds4_i386.deb
and libva-dev_0.31.1-1+sds4_i386.deb
4. install
xvba-video (If you card is nvidia, then install vdpau-video)
5. check
vaapi is ready
    vainfo
If no error, then compile mplayer


step 2: compile mplayer
1. compile mplayer
sudo apt-get build-dep mplayer (Rad hat based, try sudo yum)
2. download
mplayer-vaapi-latest-FULL.tar.bz2, and untar mplayer, then ./checkout-patch-build.sh
3. mplayer is ready in mplayer-vaapi folder, you can move mplayer.
4. Check mplayer can hard solution.
./mplayer -vo vaapi -va vaapi path_to_movie
If show
VO: [vaapi] 1280×720 => 1280×720 H.264 VA API Acceleration, then hard solution succeed.


Maybe it can using in SMPlayer, but I don't know how to do. If I using same command in SMplayer, a viodo can't play.Final I try 1080P BD movie "Summer Wars"Before using hardware solution, it is slow, and can't play audio.
After using hardware solution, movie is great play.

[attach]3516[/attach]




歡迎光臨 奇幻遊戲社群 (http://fgc.tw/tuxbb/) Powered by Discuz! X2