Hi alanwww1, first of all thank you very much for your guide it has helped me a lot to install XBMC with VAAPI support in my hptc ( i3 530 - Ubuntu 10.10 64bits).
My experience so far:
I had a previous installation of Ubuntu 10.10 with vaapi packages from gbauchesne page (
http://www.splitted-desktop.com/~gbeauchesne/libva/ ) and mplayer-vaapi compiled following exactly the same instructions that you gave. That installation of mplayer worked with vaapi without problems.
After discovering your tutorial I decided to test xbmc with vaapi and created a new partition with a fresh install of Ubuntu Maverick. I followed your tutorial and xbmc works flawlessly with vaapi, I am really happy with the setup, I had never used Xbmc and I am really impressed with it so far.
The part that didn't work so well for me was the vaapi enabled mplayer. Following exactly your guide if I try to play a file with -vo vaapi it complains abaut the video output driver vaapi. The output of :
doesn't list vaapi as an option.
I checked my other Maverick partition and there that option works....
so I suspect that there is some kind of incompatibility between vaapi implementation in Xorg-Edgers and the one in gbeauchesne page (from where I downloaded the vaapi enabled mplayer).
Reviewing the compilation logs reveals the problem with the build:
config.log in the failed version (with xorg-edgers repo):
Code:
============ Checking for VA-API ============
#include <va/va_x11.h>
int main(void) { (void) vaGetDisplay(0); return 0; }
cc /tmp/mplayer-configure--[b]19592[/b]/tmp.c -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -I. -D_REENTRANT -I/usr/include/directfb -I/usr/include/ -D_REENTRANT -ffast-math -lncurses -lrt -lsmbclient -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -ldirectfb -lXext -lX11 -lpthread -lXrender -lXv -lXinerama -lXxf86vm -lXxf86dga -laa -L/usr/lib -lcaca -lvga -lSDL -lGL -ldl -lGLU -lesd -laudio -lXt -lpulse -ljack -lopenal -o /tmp/mplayer-configure--[b]19592[/b]/tmp -lva-x11
/usr/lib/libva-x11.so: undefined reference to `vaDisplayIsValid'
collect2: ld returned 1 exit status
#include <va_x11.h>
int main(void) { (void) vaGetDisplay(0); return 0; }
cc /tmp/mplayer-configure--[b]19592[/b]/tmp.c -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -I. -D_REENTRANT -I/usr/include/directfb -I/usr/include/ -D_REENTRANT -ffast-math -lncurses -lrt -lsmbclient -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -ldirectfb -lXext -lX11 -lpthread [b]-lXrender[/b] -lXv -lXinerama -lXxf86vm -lXxf86dga -laa -L/usr/lib -lcaca -lvga -lSDL -lGL -ldl -lGLU -lesd -laudio -lXt -lpulse -ljack -lopenal -o /tmp/mplayer-configure--[b]19592[/b]/tmp -lva
/tmp/mplayer-configure--[b]19592[/b]/tmp.c:1: fatal error: va_x11.h: No such file or directory
compilation terminated.
Result is: no
##########################################
Config Log in the sucessful build:
Code:
##########################################
============ Checking for VA-API ============
#include <va/va_x11.h>
int main(void) { (void) vaGetDisplay(0); return 0; }
cc /tmp/mplayer-configure--[b]29746[/b]/tmp.c -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -I. -D_REENTRANT -I/usr/include/directfb -I/usr/include/ -D_REENTRANT -ffast-math -lncurses -lrt -lsmbclient -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -ldirectfb -lXext -lX11 -lpthread -lXv -lXinerama -lXxf86vm -lXxf86dga -laa -L/usr/lib -lcaca -lvga -lSDL -lGL -ldl -lGLU -lesd -laudio -lXt -lpulse -ljack -lopenal -o /tmp/mplayer-configure--[b]29746[/b]/tmp -lva-x11
Result is: yes
##########################################
============ Checking for VA-API (with GLX support) ============
#include <va/va_glx.h>
int main(void) { (void) vaGetDisplayGLX(0); return 0; }
cc /tmp/mplayer-configure--[b]29746[/b]/tmp.c -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -I. -D_REENTRANT -I/usr/include/directfb -I/usr/include/ -D_REENTRANT -ffast-math -lncurses -lrt -lsmbclient -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -ldirectfb -lXext -lX11 -lpthread -lXv -lXinerama -lXxf86vm -lXxf86dga -laa -L/usr/lib -lcaca -lvga -lSDL -lGL -ldl -lGLU -lesd -laudio -lXt -lpulse -ljack -lopenal -lva-x11 -lva -o /tmp/mplayer-configure--[b]29746[/b]/tmp -lva-glx
Result is: yes
##########################################
I have checked va.h in /usr/include/va/ and there is an entry for vaDisplayIsValid and there is maybe the souce of the problems, but my programming skills are close to null and don't know how to proceed to install mplayer with vaapi support.
It seems some members have the same problem I have:
http://forum.xbmc.org/showpost.php?p=658...stcount=20
... I forgot to mention, I had a lot of problems trying to output AC3 and DTS to my receiver (old one) via spdif from xbmc but found the solution in this thread:
http://forum.xbmc.org/showthread.php?p=691448
Has anyone any idea how could I continue researching the problem.
Thanks,