XBMC for Linux VDPAU - NVIDIA GPU video decoding support (now in the mainline SVN)

  Thread Rating:
  • 15 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
motd2k Offline
Team-XBMC Developer
Posts: 666
Joined: Dec 2008
Reputation: 0
Location: England
Thumbs Up  XBMC for Linux VDPAU - NVIDIA GPU video decoding support (now in the mainline SVN) Post: #1
Merged into Linuxport.

VDPAU is a hardware video decoding library, provided by NVIDIA. Currently it only functions on their 8xxx and later GPUs.

Current state-of-play:
h264 decoding
mpeg1/2 decoding
VC1 decoding
Hardware deinterlacing
VDPAU post-processing

Instructions:

Make sure you have the latest NVIDIA driver. This link will point you in the direction of the current version.

VDPAU decoding is now in both the binary 9.04 release, and in the mainline SVN tree. To activate it simply install XBMC via your usual method, launch it, choose 'Settings->Video->Players' and change the Render Method to VDPAU.

XBMC-VDPAU is not currently capable of displaying overlay surfaces, so SSA/ASS subtitles will not be visable... if you miss these you'll have to change the Render Method back to Auto for the moment. Additionally standard definition mpeg2 content (ie DVD's) is currently handled in software for a related reason. This is obviously subject to change - PATCHES WELCOME!!!


motd
(This post was last modified: 2009-05-07 14:15 by motd2k.)
find quote
knatsch Offline
Member
Posts: 74
Joined: May 2007
Reputation: 0
Post: #2
WOW
Ordering ASAP a sufficient video card Smile
Are there any xbmc-specific minimum requirements to this card except VDPAU compatibility? Or will the cheapest VDPAU card do the trick?
find quote
natethomas Offline
Team-XBMC Community Manager
Posts: 2,828
Joined: Apr 2008
Reputation: 53
Post: #3
Good work!

What's the news on the color and other various syncing issues using the VDPAU renderer?
find quote
Jezz_X Online
Team-XBMC Skinner
Posts: 5,263
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #4
most of the answers can be found to the end of the development thread
http://forum.xbmc.org/showthread.php?tid=40362

but yes it currently has small sync issues (for me) and also doe snot play avi files at all (seg fault) so its not really a main xbmc use thing yet like motd2k says

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote
fasteddy Offline
Senior Member
Posts: 230
Joined: Jan 2009
Reputation: 0
Location: Ottawa, Ontario, Canada
Post: #5
motd2k Wrote:Current state-of-play:
h264 decoding enabled
mpeg12/WMV decoding not enabled
currently no fallback to none-VDPAU mode

Very interesting, I was wondering when someone would start this (sooner than I expected). Quick question, though. When you say decoding not enabled, does that mean this version cannot decode - that is to say, play - mpeg12/WMV, or merely that they are not decoded using VDPAU (so using the cpu, instead)?

Again, thanks for the start on this!
find quote
motd2k Offline
Team-XBMC Developer
Posts: 666
Joined: Dec 2008
Reputation: 0
Location: England
Post: #6
This branch will currently (15-FEB-09) only play h264 files. Obviously thats high on the priority list.

EDIT: 16-FEB-09 -- Should now play most files that XBMC would play before
(This post was last modified: 2009-02-16 11:08 by motd2k.)
find quote
brandonj Offline
Junior Member
Posts: 34
Joined: Sep 2007
Reputation: 0
Post: #7
Very nice! I just tried it with my GeForce 9500 GT/AMD 5600+ X2 and it seems to be a vary good start!

Using the cloverfield sample, i think it dropped only 1 frame, with both CPU's sitting at about 16%. On Atlantis, the CPU's go up to about 80%, dropping frames the whole way.

I also tried a BD Rip of National Treasure 2, which caused more problems than the cloverfield one, but a very significant and noticable improvement over the Atlantis build. With VDPAU, it used the same 16% on both CPUs, and on Atlantis, one CPU was pegged at 100%, and the other at about 60% (strange?).

Finally, 2Mbps/H.264 high profile DVD rip of X-Men 3 produced flawless results, at the same 16% CPU, while Atlantis gave flawless results with about 40-50% CPU.

There were some audio syncing issues in all but the X3 video, but that is an already known issue, so i didn't pay much attention to it. I did not notice any colorspace issues, but again, wasn't really looking for them.

In all, I am very impressed! I realize this is pretty new stuff, but I thought I would congratulate the authors and thank them for their awesome work, and share my findings.

-Brandon
(This post was last modified: 2009-02-16 01:10 by brandonj.)
find quote
motd2k Offline
Team-XBMC Developer
Posts: 666
Joined: Dec 2008
Reputation: 0
Location: England
Post: #8
  • Now supports accelerated MPEG1/2 and VC1.
  • Fallback to GLSL for formats which VDPAU doesnt accelerate - meaning that the branch will now playback all formats once more.
  • Changed the code to default to having the renderer set to VDPAU for machines with the libs installed.
  • Ability to change the renderer dynamically within XBMC
find quote
rodalpho Offline
Fan
Posts: 546
Joined: Nov 2006
Reputation: 16
Post: #9
Just tried the new branch on my 2.93Ghz C2D with a 9500GT. It plays the killa sample absolutely flawlessly with roughly 25% total CPU usage; 15% CPU0, 10% CPU1. It also seamlessly fails back to software on formats unsupported by VDPAU. I didn't get a single crash and everything played, although compilation had a ton of warnings and whatnot. I'd even consider using this branch as my primary at this point, if we weren't directly cautioned not to do so. Great work!!
find quote
EMK0 Offline
Senior Member
Posts: 207
Joined: Oct 2008
Reputation: 0
Post: #10
I know this is the linux forum but i just want to know is this going to be able to be ported to windows and mac?
find quote
Post Reply