八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

Totem,mplayer,sopcast,realplayer,bmp
回复
la ubuntu
帖子: 150
注册时间: 2008-05-29 20:48

八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#1

帖子 la ubuntu » 2010-02-08 15:16

不是Mplayer 官方已经支持 vaapi 了吗,这样 ATI Intel Nidia都可以用 Mplayer+Vaapi 硬解了,谁吃了大雪蟹赶紧出来发帖子详细介绍啊!!
delectate
帖子: 18311
注册时间: 2008-01-09 22:41

Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#3

帖子 delectate » 2010-02-09 18:33

硬解向来是可遇不可求,你不能强迫高手为你而工作

糕手高傲路过 :em05
Freesnake
帖子: 920
注册时间: 2005-05-01 12:54

Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#4

帖子 Freesnake » 2010-02-09 23:27

只有N卡没有A卡呀,虽说看见MPlayer官方已经宣布了消息,但是没有对应的硬件没法测试
dukeduan
帖子: 104
注册时间: 2007-09-11 10:12
来自: Yunnan

Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#5

帖子 dukeduan » 2010-02-10 11:35

********
人穷志短
马瘦毛长
********
oucanrong
帖子: 295
注册时间: 2009-05-20 18:26

Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#6

帖子 oucanrong » 2010-02-10 13:17

我的是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!!!!!是这样吗????
black
帖子: 169
注册时间: 2007-01-19 13:02

Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#7

帖子 black » 2010-02-10 17:02

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/showthr ... &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 ... 8_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
oucanrong
帖子: 295
注册时间: 2009-05-20 18:26

Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#8

帖子 oucanrong » 2010-02-10 17:12

看到7楼的方法,我软解算了
头像
luojie-dune
帖子: 22033
注册时间: 2007-07-30 18:28
系统: Linux
来自: 空气中

Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#9

帖子 luojie-dune » 2010-02-10 18:01

帖子很烦。发wiki去。
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议
ryoohki
帖子: 3249
注册时间: 2008-10-28 20:18

Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#10

帖子 ryoohki » 2010-02-12 11:49

A卡光装个驱动就能把人弄个半死,哪有精力去研究硬解...
ryoohki
帖子: 3249
注册时间: 2008-10-28 20:18

Re: 八嘎牙路,怎么还不见详细的 vaapi 硬解的 帖子,快快地

#11

帖子 ryoohki » 2010-02-12 13:49

现在的I卡和A卡的硬解虽然在mplayer上实现了,不过还没有被上游支持,所以没有现成的Deb或RPM包可以用,需要用户自己手动编译
带vaapi的mplayer源码下载链接
http://www.splitted-desktop.com/~gbeauc ... yer-vaapi/
编译的教程viewtopic.php?f=74&t=256841
回复