Kodi Community Forum

Full Version: VAAPI Lucid strange problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'd like to have VAAPI support (I have ATI Radeon 4550 and ATI proprietary drivers v. 8.723 in Ubuntu Lucid) with XBMC.
I also have libva installed with dev package (v. 0.31.0-1+sds13)
I compile latest SVN version (already tested v. 30318) and after configure I get:

Code:
[...]
  Optimization: Yes
  OpenGL:       Yes
  VDPAU:        Yes
  VAAPI:        Yes
  CrystalHD:    No
  VDADecoder:   No
[...]

Than I run "make" + "make install".
I check also ldd command output:

Code:
    linux-gate.so.1 =>  (0x00519000)
    libva-glx-0.31.0.6.so.1 => /usr/lib/libva-glx-0.31.0.6.so.1 (0x00110000)
    libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x008a0000)
[...]

but when a run XBMC a have no HW acceleration.

Digging in the log file:

Code:
21:41:25 T:2891287408 M:1003679744  NOTICE: Creating video codec with codec id: 28
21:41:25 T:2891287408 M:1003679744   DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:no VDPAU:yes VAAPI:no
21:41:25 T:2891287408 M:1003679744   DEBUG: FactoryCodec - Video:  - Opening
21:41:25 T:2891287408 M:1003679744   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/swscale-0.6.1-i486-linux.so)
21:41:25 T:2891287408 M:1003679744   DEBUG: Loading: /home/tode/XBMC-SVN/xbmc/system/players/dvdplayer/swscale-0.6.1-i486-linux.so
21:41:25 T:2891287408 M:1003581440  NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(712x384, 28)
21:41:25 T:2891287408 M:1003581440  NOTICE: vdp_device = 0xffffffff vdp_st = 0x00000001
21:41:25 T:2891287408 M:1003581440   ERROR: (VDPAU) unable to init VDPAU - vdp_st = 0x1.  Falling back.
21:41:25 T:2891287408 M:1003581440  NOTICE: CDVDVideoCodecFFmpeg::Open() Failed to get VDPAU device
21:41:25 T:2891287408 M:1003581440  NOTICE:  (VDPAU) Close
21:41:25 T:2891287408 M:1003581440  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
21:41:25 T:2891287408 M:1003581440   DEBUG: FactoryCodec - Video: ff-h264 - Opened

Where is my mistake?
I'm sure it has to work...
Please help!
Thanks,
the_bis
Try the daily SVN as there appeared to be some sort of a problem with earlier builds. The bug related to an error in "configure.in". I have similar hardware to yours (Radeon 4550HD) and r30362 works fine.
my1997golf Wrote:Try the daily SVN as there appeared to be some sort of a problem with earlier builds. The bug related to an error in "configure.in". I have similar hardware to yours (Radeon 4550HD) and r30362 works fine.

Yes, it works!
xbmc-svn - r30387
libva1 - v. 0.31.0-1+sds13
libva-dev - v. 0.31.0-1+sds13

Thanks, Big Grin
the_bis
Hey guys,

I am having a similar problem as the thread starter.

I got a ATI Radeon HD 5450 and wanted to get VAAPI working with XBMC on Ubuntu Lucid.

cam shots of the screen:
Image
Image
Image

I am not really sure if its really using the gpu to decode the material, but I think it is, because of the low cpu consumption. When I tried to decode a h264 file without vaapi there was about 30/60% pct load on a AMD Athlon 3800 x2.

I compiled xbmc from the sources, able see the VAAPI & VDPAU options in the video section, but I can't choose the VAAPI Render Path explicitly.
When I set it to Auto Detect the output of a 1080p video is completely messed up. The same with the other Render Paths.

To build xbmc with vaapi I used this little howto cause couldn't find something useful one the xbmc forums http://www.multimedia4linux.de/htpc/ati_video.html and downloaded/installed all .debs but the on for mplayer.
Additionally I installed the latest Catalayst from ATi (10.6)

I downloaded the latest release of xbmc via svn as proposed on the main download page.

I really would like to be able to play HD movies fluently. Smile

Has someone help or a yet not known forum post which points out that problem?

Thank you very much!

specs:
Code:
xbmc - Revision 31256
Linux hostname 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010 x86_64 GNU/Linux
Catalyst 10.6
AMD Athlon 3800+ X2
2GB RAM
vainfo output:
Code:
libva: libva version 0.31.0-sds6
Xlib:  extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.31
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA API - 0.6.11
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointIDCT
      VAProfileMPEG2Main              : VAEntrypointIDCT
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD

configure output:

Code:
------------------------
  XBMC Configuration:
------------------------
  Debugging:    Yes
  Profiling:    No
  Optimization: Yes
  Crosscomp.:   No
  target ARCH:  no
  target CPU:   no
  OpenGL:       Yes
  VDPAU:        Yes
  VAAPI:        Yes
  CrystalHD:    No
  VDADecoder:   No
  OpenMax:      No
  Joystick:     Yes
  XRandR:       Yes
  GOOM:         No
  MID Support:  No
  ccache:       No
  PulseAudio:   Yes
  HAL Support:  Yes
  FAAC:         Yes
  DVDCSS:       Yes
  Avahi:        Yes
  Non-free:     Yes
  ASAP Codec:   No
  Webserver:    Yes
  WebM support: No
  libRTMP support:      No
  Deprecated libdts:    No
  Deprecated liba52:    No
  External FFmpeg:      No
  External Python:      No
  prefix:       /usr/local
------------------------
Same problem. Looks very similar to your screen darude.

I think hardware decoding works in mPlayer outside of XBMC. I hope this issue gets resolved soon.

I'm trying sudo apt-get build-dep mplayer now. We'll see if that works.

Also, my log can be found here. http://gist.github.com/524693
It works now. I did ./configure --enable-vaapi and that's it.

I have no idea if that did it or not though.

This looks like a cool project.
http://www.splitted-desktop.com/~gbeauch...mer-vaapi/