1.安裝ATI官方驅動:SDB:ATI drivers - openSUSE
2.檢查顯卡是否支援UVD2 (目前的結論似乎只支援UDV2,參考此篇)
cat /var/log/Xorg.0.log | grep UVDPenny的主機板是AMD 880G顯示晶片,在Linux下似乎效能差到不足以硬解,可以看一下這篇:785G 效能差。但還是決定要試一下看看(如果您手邊使用比較高階的ATI顯卡,也歡迎您試試看,是否會效果會比較佳)
(II) fglrx(0): UVD2 feature is available
cat /var/log/Xorg.0.log | grep UVD
(II) fglrx(0): UVD feature is enabled(II) fglrx(0):
3.安裝套件:xvba-video、libva、vlc。
zypper in xvba-videolibva我是透過 openSUSE_Factory 下載安裝。
wget "http://software.opensuse.org/search/download?base=openSUSE%3AFactory&file=X11%3A%2FXOrg%2FopenSUSE_Factory%2Fsrc%2Flibva-1.0.15-12.3.src.rpm&query=libva"把SRPM編譯成RPM
rpm -i libva-1.0.15-12.3.src.rpm把缺少的套件一一安裝上
cd /usr/src/packages/SPECS
rpmbuild -bb libva.spec
zypper in libtool libudev-devel xorg-x11-devel Mesa-devel libdrm-devel gcc-c++ libstdc++-devel編譯好後,就開始安裝吧
rpmbuild -bb libva.spec
cd /usr/src/packages/RPMS/x86_64/安裝vaapi-tools
rpm -ivh liba*
zypper in vaapi-tools測試一下
vainfo最後安裝上vlc
libva: libva version 0.32.0libva: User requested driver 'fglrx'libva: Trying to open /usr/lib64/dri/fglrx_drv_video.solibva: va_openDriver() returns 0vainfo: VA API version: 0.32vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0vainfo: Supported profile and entrypointsVAProfileH264High : VAEntrypointVLDVAProfileVC1Advanced : VAEntrypointVLD
zypper in vlc
4.vlc設定
開啟VLC,工具\偏好設定-->視訊:確認 accelerated video output(Overlay)是否打勾。輸入與編解碼器: Use GPU acceleration 打勾
5.播放影片觀察CPU與GPU 的變化
尚未開啟硬解時:
CPU-使用率大約落在60~70%左右!
GPU-
watch -n 1 aticonfig --odgc開啟硬解時:
Default Adapter - ATI Radeon HD 4250
Core (MHz) Memory (MHz)
Current Clocks : 196 667
Current Peak : 560 667
Configurable Peak Range : [200-560] [667-667]
GPU load : 51%
CPU-使用率大約落在40~50%左右!
GPU-
watch -n 1 aticonfig --odgc6.結論
Default Adapter - ATI Radeon HD 4250
Core (MHz) Memory (MHz)
Current Clocks : 562 667
Current Peak : 560 667
Configurable Peak Range : [200-560] [667-667]
GPU load : 93%
或許真的如開頭所言,880G顯示晶片在LINUX下,不足以硬解,但現階段若要買張顯卡,我應該會挑N卡吧!!
沒有留言:
張貼留言