当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 11 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-08 15:16 

注册: 2008-05-29 20:48
帖子: 150
送出感谢: 0 次
接收感谢: 0 次
不是Mplayer 官方已经支持 vaapi 了吗,这样 ATI Intel Nidia都可以用 Mplayer+Vaapi 硬解了,谁吃了大雪蟹赶紧出来发帖子详细介绍啊!!


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-09 18:29 
头像

注册: 2008-07-14 10:15
帖子: 704
送出感谢: 0 次
接收感谢: 0 次
:em04 :em04


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-09 18:33 

注册: 2008-01-09 22:41
帖子: 18311
送出感谢: 0 次
接收感谢: 6
硬解向来是可遇不可求,你不能强迫高手为你而工作

糕手高傲路过 :em05


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-09 23:27 

注册: 2005-05-01 12:54
帖子: 920
送出感谢: 0 次
接收感谢: 0 次
只有N卡没有A卡呀,虽说看见MPlayer官方已经宣布了消息,但是没有对应的硬件没法测试


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-10 11:35 

注册: 2007-09-11 10:12
帖子: 92
地址: Jianchuan
送出感谢: 1
接收感谢: 0 次
viewtopic.php?f=74&t=256192
http://www.splitted-desktop.com/~gbeauc ... yer-vaapi/

这两个不是吗?还要怎么个详细法。 :em01


_________________
********
人穷志短
马瘦毛长
********


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-10 13:17 

注册: 2009-05-20 18:26
帖子: 295
送出感谢: 0 次
接收感谢: 0 次
我的是intel 4500HD,,昨天试了一天,只有声音没有图像,在win上可以硬解,,看720P的2012CPU在15%左右,不过那图像质量也就算了吧,好多格子。ubuntu上软解,图像质量非常好,只是CPU 50%,,双核,如果单核就算是100%了吧,,对我来说软解就行了,因为即使看电影时去开别的程序,也没有慢的感觉(P8600+4GDDR3+amd64bit,从来没有慢的感觉)。哪天真的开了硬解,我也不会去用它,只是研究一下而已。那质量也太差了。硬解对AIT显卡才有意义,nvidia官方本来就支持。编译vaapi版的mplayer之前,需要先安装vaapi的lib,,源里没有,我电脑上打包好了deb,,64位的。vaapi的mplayer也编译好了,就是只有声音no video,,,mplayer网上也说是intel ATOM!!!!!是这样吗????


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-10 17:02 

注册: 2007-01-19 13:02
帖子: 169
送出感谢: 0 次
接收感谢: 1
oucanrong 写道:
我的是intel 4500HD,,昨天试了一天,只有声音没有图像,在win上可以硬解,,看720P的2012CPU在15%左右,不过那图像质量也就算了吧,好多格子。ubuntu上软解,图像质量非常好,只是CPU 50%,,双核,如果单核就算是100%了吧,,对我来说软解就行了,因为即使看电影时去开别的程序,也没有慢的感觉(P8600+4GDDR3+amd64bit,从来没有慢的感觉)。哪天真的开了硬解,我也不会去用它,只是研究一下而已。那质量也太差了。硬解对AIT显卡才有意义,nvidia官方本来就支持。编译vaapi版的mplayer之前,需要先安装vaapi的lib,,源里没有,我电脑上打包好了deb,,64位的。vaapi的mplayer也编译好了,就是只有声音no video,,,mplayer网上也说是intel ATOM!!!!!是这样吗????

不是吧,我怎么印象里这个项目就是为intel显卡做的,ati也沾光了,网上有详细的英文教程有些过时仅供参考,还有ppa(https://launchpad.net/~fitpc2/+archive/ppa)源
atihd的参考:http://newyork.ubuntuforums.org/showthread.php?s=1e4b2c9e5ca209e8cfc3471471947eec&t=1385896


How to set up X and VAAPI Accelerated HD Video on the MSI Wind U110 (GMA500 - Poulsbo) and Ubuntu Karmic 9.10
Here's what you need to do
1. Basically you add the ubuntu mobile ppas for Ubuntu 9.04 (jaunty) and 9.10 (karmic) to /etc/apt/sources.list.d/mobile.list:

deb http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu karmic main
deb http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main
deb http://ppa.launchpad.net/lucazade/gma500/ubuntu/ karmic main
deb-src http://ppa.launchpad.net/lucazade/gma500/ubuntu/ karmic main


2. Then you install the poulsbo-driver-3d including the firmware and everything.

"kernel BUG: unable to handle kernel NULL pointer dereference at (null)" (2.6.31)

If you have the MSI Wind U110 or another netbook which shows this kernel BUG when loading the psb module, you need a manual hack to get the driver working, as I just reported.


3. Once that's done, for a more stable and speedy operation, you need to add an /etc/X11/xorg.conf:

Section "Device"
Identifier "GMA500"
Option "AccelMethod" "EXA"
# someone suggested UXA?
Option "DRI" "on"
Option "MigrationHeuristic" "greedy"
Option "IgnoreACPI" "yes"
Driver "psb"
EndSection

Section "DRI"
Mode 0666
EndSection

4. Reboot and make sure that it works! If X doesn't work properly yet, VAAPI won't, either. After a short black screen, you should be greeted in the correct resolution. Full screen xv video should already work fine. Suspend to RAM also worked perfectly at this point for me. If in DPMS standby and switching to other modes (suspend, etc.) my screen actually goes on again (showing black with backlight active). So make sure you chose only one setting for DPMS. A constantly running screen is not good at all.

Now comes the part where we install the hardware decoding acceleration. If you just want X you can stop now. ;)

5. Install the Libva library from http://www.splitted-desktop.com/~gbeauc ... 8_i386.deb. This replaces your current libva1 with a newer version. also works for me. Don't forget to install the -dev version (http://www.splitted-desktop.com/~gbeauc ... 8_i386.deb) as well if you want to compile mplayer later.

wget http://www.splitted-desktop.com/~gbeauc ... 8_i386.deb
http://www.splitted-desktop.com/~gbeauc ... i386.deb&& sudo dpkg -i libva1_0.31.0*i386.deb



6. Create a link of your video driver to the vaapi driver directory:

sudo ln -s /usr/X11R6/lib/modules/dri/psb_drv_video.so /usr/lib/va/drivers/


A. Precompiled setup. (You can alternatively skip to part B: compiling the source code setup)

7. Download and unpack the precompiled mplayer:
http://www.splitted-desktop.com/~gbeauc ... 86.tar.bz2

8. Install a normal mplayer and libmad with apt-get.

sudo apt-get install mplayer libmad0


9. Unpack mplayer and create necessary links to the libraries it expects.
"ldd mplayer" tells you what library (names) mplayer expects.
Just to go /usr/lib and create links to them:
e.g

ln -s libx264.so.67 libx264.so.65

This should work as long as your libraries are newer than the expected ones. It may actually work out of the box in Ubuntu Jaunty.

10. Start mplayer from the package you downloaded:
e.g. ~/mplayer-vaapi-20090914.i686/mplayer -fs -vo vaapi -va vaapi HDtest.avi

B. Compiling the Source Code

I've also manged to get the source code to work. This is less bothersome, because you need not link the libaries. Hence less man hours, but more disk space and computer hours for compiling. Didn't take as long as I feared, though. And it's using a slightly newer version of mplayer-vaapi, which includes some rudimentary OSD in vaapi mode now.

7. Install the build environment:

sudo apt-get build-dep mplayer
sudo apt-get install libdrm-dev
wget http://www.splitted-desktop.com/~gbeauc ... 8_i386.deb && sudo dpkg -i libva-dev_0.31.0-1+sds8_i386.deb
maybe: sudo apt-get -f install



8. Download the source at http://www.splitted-desktop.com/~gbeauc ... LL.tar.bz2. Unpack it and execute the checkout-patch-build.sh.

9. Check if it works, e.g.

mplayer -fs -vo vaapi -va vaapi ~/HDtest.avi


10.

sudo make install.


X. Done! Enjoy e.g. a nice HD trailer for a start! Post your results! I can recommend using it in smplayer for more comfort(e.g. automatically continue where you left of last). If it crashed, check out by blog entry about smplayer crashing in vaapi mode.

Update: It turns out deinterlacing not working is not due to VAAPI, but a limit in the psb driver. It works with the current iegd driver and other drivers from AMD and NVIDIA (press the D putton in mplayer I think). If I could just get one of those iegd drivers... Thanks Gwenole from splitted-desktop.com for answering my email and of course for writing the mplayer-vaapi patches in the first place!

Also some experiments show that I can attach an external screen and watch videos with VAAPI on it. That means I should be able to actually use the netbook for decoding HD video and displaying it on an external screen. (But it does not work for me with except in mirror or single display mode.) Only thing missing now is a digital display port...
Categories: intel, Msi Wind U110, performance, poulsbo, vaapi, video, xorg


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-10 17:12 

注册: 2009-05-20 18:26
帖子: 295
送出感谢: 0 次
接收感谢: 0 次
看到7楼的方法,我软解算了


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-10 18:01 
头像

注册: 2007-07-30 18:28
帖子: 22033
地址: 空气中
系统: Linux
送出感谢: 17
接收感谢: 68
帖子很烦。发wiki去。


_________________
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议


页首
 用户资料  
 
10 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-12 11:49 

注册: 2008-10-28 20:18
帖子: 3249
送出感谢: 0 次
接收感谢: 0 次
A卡光装个驱动就能把人弄个半死,哪有精力去研究硬解...


页首
 用户资料  
 
11 楼 
 文章标题 : Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地
帖子发表于 : 2010-02-12 13:49 

注册: 2008-10-28 20:18
帖子: 3249
送出感谢: 0 次
接收感谢: 0 次
现在的I卡和A卡的硬解虽然在mplayer上实现了,不过还没有被上游支持,所以没有现成的Deb或RPM包可以用,需要用户自己手动编译
带vaapi的mplayer源码下载链接
http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/
编译的教程http://forum.ubuntu.org.cn/viewtopic.php?f=74&t=256841


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 11 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译