intel gm45 vaapi mplayer

wget http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/mplayer-vaapi-20101115-FULL.tar.bz2

cd mplayer-vaapi/

patch -p1 < ../patches/mplayer-vaapi.patch

./configure --help
wget http://www.splitted-desktop.com/~gbeauchesne/libva/libva_0.31.1-1+sds4.tar.gz

cd libva-0.31.1/
for p in debian/patches/*.patch; do patch -p1 < $p; done

or

dpkg-buildpackage -rfakeroot -uc -us
sudo dpkg -i libva1_0.31.1-1+sds4_i386.deb
libva-dev_0.31.1-1+sds4_i386.deb
libva-driver-i965_0.31.1-1+sds4_i386.deb

./configure --enable-vaapi --prefix=/software/linuxsoft/mplayer-vaapi
make install

alias mplayervaapi='/software/linuxsoft/mplayer-vaapi/bin/mplayer -vo
vaapi -va vaapi '

lucid supports only MPEG2 acceleration because of old intel driver
(2.9.1-3ubuntu5)

http://intellinuxgraphics.org/documentation.html
Question: How to play media with VAAPI?
Answer
VAAPI is supported on G45/GM45 platforms and later. Make sure you have:
1. Intel video driver package. The latest stable release is recommended.
2. The media player supports VAAPI. e.g. if you want to use mplayer,
you need compile and install the mplayer source package with the
mplayer vaapi patches.
3. libva driver git://git.freedesktop.org/git/libva, need to compile
and install.

use vainfo to see what is supported.
libva: libva version 0.31.1-sds1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/i965_drv_video.so
libva: va_openDriver() returns 0


vainfo: VA API version: 0.31
vainfo: Driver version: i965 Driver 0.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD

http://lists.freedesktop.org/archives/intel-gfx/2010-October/008325.html