I fixed my "Segmentation Fault" issue!!!
My first mention was right... vainfo crashed xbmc
See
this link - I already posted the last time...
Here is what I did at first:
Code:
wget http://cgit.freedesktop.org/libva/snapshot/libva-1.0.13.tar.gz
tar xfv libva-1.0.13.tar.gz
cd libva-1.0.13/
vi va/va.c
##Here I added only the "else" part below
# if (VA_STATUS_SUCCESS == vaStatus && driver_name != 0)
# {
# vaStatus = va_openDriver(dpy, driver_name);
# va_infoMessage("va_openDriver() returns %d\n", vaStatus);
#
# *major_version = VA_MAJOR_VERSION;
# *minor_version = VA_MINOR_VERSION;
# }
else
{
vaStatus = VA_STATUS_ERROR_UNKNOWN;
}
##
#now build it
./autogen.sh
make
sudo make install
#
# most important thing to point to the right driver directory/name
#if working set the variables permanent in /etc/environment
export LIBVA_DRIVERS_PATH=/usr/lib/dri
export LIBVA_DRIVER_NAME=fglrx
#
#you can again check with
export DISPLAY=:0
fglrxinfo
vainfo
#libva: libva version 0.32.0
#libva: User requested driver 'fglrx'
#libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
#libva: va_openDriver() returns 0
#vainfo: VA API version: 0.32
#vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
#vainfo: Supported profile and entrypoints
# VAProfileH264High : VAEntrypointVLD
# VAProfileVC1Advanced : VAEntrypointVLD
#
#now test it with
xbmc
After getting it working I tried to use the xvba driver I installed before. That was from ppa:xorg-edgers/ppa without any change to the source code:
Code:
export LIBVA_DRIVER_NAME=xvba
export LIBVA_DRIVERS_PATH=/usr/lib/va/drivers
vainfo
#libva: libva version 0.32.0
#libva: User requested driver 'xvba'
#libva: Trying to open /usr/lib/va/drivers/xvba_drv_video.so
#libva: va_openDriver() returns 0
#vainfo: VA API version: 0.32
#vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
#vainfo: Supported profile and entrypoints
# VAProfileH264High : VAEntrypointVLD
# VAProfileVC1Advanced : VAEntrypointVLD
In the end the origin of my problem was not directly vainfo/libva but the "not set" paths to the correct library's?!! Can somebody confirm that?
My vainfo output before my modification was:
Code:
xbmc@htpc:~$ vainfo
libva: libva version 0.32.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
vainfo: Supported profile and entrypoints
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
Anyway - now I will relax and watch a good 1080p movie... at about 15% CPU usage...
Regards
Fabian
p.s.
I have some picture "offsets" - looking like a line separating the movie in two parts ... above the line "old frame" (1/4) below "new frame"(3/4). This line appears on top(1/4) or bottom (1/4). I hope I described it coherent...
Any solution?