1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

XBMC Project Implements AMD XvBA Interface

AMD

Published on 14 December 2011 04:31 PM EST
Written by Michael Larabel in AMD
45 Comments

The XBMC multimedia project has implemented AMD's XvBA interface directly for providing video hardware acceleration for Radeon and Fusion graphics processors.

While AMD's XvBA interface has had a bumpy history to say the least, right now it's barely moving. For the past two years there's been the VA-API library wrapper to XvBA so that this AMD video acceleration API can be used by VA-API-supportive Linux programs, but even that has fallen into an unmaintained state since its lead developer left for Intel.

At first X-Video Bitstream Acceleration wasn't even documented publicly but this VA-API front-end library was the only choice. Fortunately, they changed ways earlier this year and became more open about XvBA -- something where NVIDIA was more open from the get-go with their Video Decode and Presentation API for Unix (VDPAU).

While XvBA is now "open", it's seen no major implementations yet by the leading open-source multimedia projects. That, however, has changed as XBMC has implemented XvBA support with the xvba-va-driver wrapper having fallen into disrepair.

Unfortunately, even with the latest Catalyst Linux driver, the XvBA video support there still can be buggy at times. Regardless, it's nice to see a direct XvBA implementation from one of the most popular Linux HTPC projects.

Below is the email I received from one of the XBMC developers about this newly-introduced support, which adds more detail for interested XBMC users with AMD graphics hardware.
Hello Phoronix-Team,

As a long time phoronix reader i followed the AMD driver, AMD UVD, xvba discussions. As xvba-va-driver wrapper development stopped in June this year and all-over performance and stability did not really impress the users, we implemented direct xvba support for xbmc. We started with the ffmpeg part, VC-1 and h264 and later implemented the callback infrastracture and management within xbmc. In order to use our code you just have to install AMD linux driver (fglrx >= 11.11), no more wrapper, etc. is needed.

We are proud to announce, that there now exists an xbmc-pvr build(1) and already an openelec build (2) for AMD Fusion Hardware. User feedback is really nice for now. See also the phoronix link above.

What you get:
There are great improvements over xvba-va-driver in stability, performance and robustness. (3)

H264, VC-1 decoding support including smooth 24p playback.

What does not work:
H264 with Level >= 5.1 (artefacts, etc.)
Shared Surfaces are a bit unstable, but workaround integrated.

What we will do for the future:
Implement MPEG-2 (if we get in real contact with AMD)
Use H264 Level 5.1 (if AMD tells us how to do)
Fix issues from above (if AMD tries to help us)

The development was started and organized by chief developer Rainer Hochecker (Fernetmenta) (H264, huge part of xbmc integration), Peter Fr├╝hberger (fritsch) (VC1, bugfixes, (mpeg-2)). PPA Packages and Testing was done by Wolfgang Schupp (wsnipex).

Ubuntu Packages are already available:
https://launchpad.net/~wsnipex/+archive/xbmc-xvba

There is still some work to do, but this currently hangs at AMD driver. There is a problem with deinterlacing, so using Shared Surfaces gets unstable, we worked around it by doing deinterlacing through opengl. Next problem with the driver is, that it currently only support H264 - Level 4.1 on Linux, Windows is already having 5.1 support. The documentation for mpeg-2 bitstream support in xvba-sdk is not really detailed so we did not get it working for now.

If you are interested in a just working solution for htpc with HD decoding capabilities on AMD hardware, just give it a try.

Nice day to you all

Peter Fr├╝hberger

1) https://github.com/FernetMenta/xbmc/commits/xvba
2) http://openelec.tv/forum/28-issue-reports/19234-xvba-support-thread?limit=20&start=20
3) http://phoronix.com/forums/showthread.php?33853-AMD-Zacate-E-350

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Rosewill RS-MI-01: An Ultra Low-Cost Mini-ITX Chassis
  2. D-Link DCS-2330L HD Wireless Network Camera
  3. Gigabyte AM1M-S2H
  4. AMD's New Athlon/Semprons Give Old Phenom CPUs A Big Run For The Money
Latest Linux Articles
  1. AMD Catalyst 14.4 On Linux With Radeon R3 APU Graphics
  2. Red Hat Enterprise Linux 7.0 RC Benchmarks
  3. AMD Catalyst 14.4 Brings Few Linux Performance Improvements
  4. The Performance Of Fedora 20 Updated
Latest Linux News
  1. NGINX 1.6 Brings SPDY 3.1 & Other New Features
  2. Linux Foundation Announces A Core Infrastructure Initiative
  3. More Steam Linux Tests/Benchmarks Might Be Coming
  4. NVIDIA's Amazing Single-Board ARM Computer Might Be Delayed
  5. Fedora 21 To Get A Playground, New Features
  6. PC-BSD Is Developing Its Own Desktop Environment
  7. Valve Is Bringing VOGL To Windows & Working On Regression Tests
  8. Canonical Is Taking Over Linux 3.13 Kernel Maintenance
  9. Google Web Designer Is Now Natively Available On Linux
  10. Ubuntu 14.10 Is Codenamed The Utopic Unicorn
  11. Audacious 3.5 Lightweight Audio Player Released
  12. Steam Updated For Ubuntu 14.04 LTS, SteamOS
Latest Forum Discussions
  1. What Else Would You Like To See On Phoronix This Spring?
  2. HTPC-upgrade advice: AMD Richland A8-7600 or Kaveri A10-6700T ???
  3. Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
  4. The GNOME Foundation Is Running Short On Money
  5. The Most Amazing OpenGL Tech Demo In 64kb
  6. Announcing radeontop, a tool for viewing the GPU usage
  7. New card. Open source drivers only.
  8. Script for Fan Speed Control