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
olympia Online
Team-XBMC Member
Posts: 2,398
Joined: May 2008
Reputation: 31
Post: #41
natethomas Wrote:The past two posts are the reason I believe I will never be able to conquer my fear of linux long enough to get something like this to work.

A) What is "nvidiawhatever.run"?

B) what does "modprobe" mean?

If you click on the link in the 3. post upper, you will see how to download the driver directly from nvidia.

A) nvidiawhatever is the exact file name, including the version number, you also can see the exact command in the link.

b) modprobe is a command (application)
find quote
dafart Offline
Junior Member
Posts: 24
Joined: Sep 2008
Reputation: 0
Post: #42
Compiler is crashing with this error:
Code:
DVDVideoCodecFFmpegVDPAU.cpp: In member function ‘int CDVDVideoCodecVDPAU::configVDPAU(uint32_t, uint32_t, uint32_t)’:
DVDVideoCodecFFmpegVDPAU.cpp:422: error: invalid conversion from ‘uint32_t’ to ‘VdpDecoder*’
DVDVideoCodecFFmpegVDPAU.cpp:422: error: too many arguments to function
DVDVideoCodecFFmpegVDPAU.cpp:427: warning: comparison between signed and unsigned integer expressions
DVDVideoCodecFFmpegVDPAU.cpp:440: warning: comparison between signed and unsigned integer expressions
DVDVideoCodecFFmpegVDPAU.cpp: In member function ‘void CDVDVideoCodecVDPAU::spewHardwareAvailable()’:
DVDVideoCodecFFmpegVDPAU.cpp:522: warning: comparison between signed and unsigned integer expressions
DVDVideoCodecFFmpegVDPAU.cpp: In static member function ‘static vdpau_render_state* CDVDVideoCodecVDPAU::VDPAUFindFreeSurface()’:
DVDVideoCodecFFmpegVDPAU.cpp:553: warning: comparison between signed and unsigned integer expressions
make[3]: *** [DVDVideoCodecFFmpegVDPAU.o] Error 1
make[3]: Leaving directory `/home/dafart/Desktop/xbmc-vdpau/XBMC/xbmc/cores/dvdplayer/DVDCodecs/Video'
make[2]: *** [Video] Error 2
make[2]: Leaving directory `/home/dafart/Desktop/xbmc-vdpau/XBMC/xbmc/cores/dvdplayer/DVDCodecs'
make[1]: *** [DVDCodecs] Error 2
make[1]: Leaving directory `/home/dafart/Desktop/xbmc-vdpau/XBMC/xbmc/cores/dvdplayer'
make: *** [dvdplayer] Error 2
Using nvidia 180.29 on ubuntu 8.10
Should I compile ffmpeg separately?

My card is a 9500GT btw
Code:
./vdpinfo
display: :0.0   screen: 0
API version: 0
Information string: Unknown

Video surface:

name   width height types
-------------------------------------------
420     4096  4096  NV12 YV12
422     4096  4096  UYVY YUYV

Decoder capabilities:

name          level macbs width height
------------------------------------
MPEG1             0  8192  2048  2048
MPEG2_SIMPLE      3  8192  2048  2048
MPEG2_MAIN        3  8192  2048  2048
H264_MAIN        41  8192  2048  2048
H264_HIGH        41  8192  2048  2048

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8          8192  8192    y  Y8U8V8A8 V8U8Y8A8
R10G10B10A2       8192  8192    y  Y8U8V8A8 V8U8Y8A8

Bitmap surface:

name              width height
------------------------------
B8G8R8A8          8192  8192
R8G8B8A8          8192  8192
R10G10B10A2       8192  8192
B10G10R10A2       8192  8192
A8                8192  8192

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     y
INVERSE_TELECINE                 y
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y         1     4096
VIDEO_SURFACE_HEIGHT             y         1     4096
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y

Not sure why it doesn give me VC-1 decoding as the card is supposed to support this.
http://global.msi.eu/index.php?func=prod...od_no=1532

As always, thumbs up for this great project!
find quote
j0bro Offline
Junior Member
Posts: 14
Joined: Dec 2008
Reputation: 0
Location: Eindhoven, Netherlands
Post: #43
Compiled r17752 yesterday due to broken code in the later commits and successfully played some 720p content. The CPU (E8400) was at 2-3% per core all the way, also at higher bitrates (15-20 Mbit/s).

However, when playing 1080p content, I saw no image but a garbled desktop from underneath XBMC. OSD popups display fine, audio plays fine but no video. I connect my htpc to my flat TV via HDMI only (video+audio), latest NVIDIA driver (180.29) and the screen resolution is set to 1080i@50Hz, which is the only resolution which my TV can display natively (1:1 pixel mapping).

The standard SVN builds of XBMC (no VDPAU) work just fine for all content. Anyone experiencing the same?

Asus P5N7A-VM + E8400
Ubuntu 9.10 32-bit
XBMC 9.11
find quote
olympia Online
Team-XBMC Member
Posts: 2,398
Joined: May 2008
Reputation: 31
Post: #44
j0bro Wrote:Compiled r17752 yesterday due to broken code in the later commits and successfully played some 720p content. The CPU (E8400) was at 2-3% per core all the way, also at higher bitrates (15-20 Mbit/s).

However, when playing 1080p content, I saw no image but a garbled desktop from underneath XBMC. OSD popups display fine, audio plays fine but no video. I connect my htpc to my flat TV via HDMI only (video+audio), latest NVIDIA driver (180.29) and the screen resolution is set to 1080i@50Hz, which is the only resolution which my TV can display natively (1:1 pixel mapping).

The standard SVN builds of XBMC (no VDPAU) work just fine for all content. Anyone experiencing the same?

I am experiencing very similar issues with 1080p on r17786 as the following:

With auto refresh rate enabled: exactly the same experience with all x264 mkv

With auto refresh disabled: Some x264 mkv is working, but some is not (including killa sample), in this case I have the same experience again (collapsed/ garbled picture, while audio and OSD is OK)
find quote
j0bro Offline
Junior Member
Posts: 14
Joined: Dec 2008
Reputation: 0
Location: Eindhoven, Netherlands
Post: #45
Interesting, that means that either 1080p mkv files have different properties that are not handled well by the current implementation VDPAU, or the higher amount of data is the culprit.

@motd2k: Could there be something like a buffer overflow while doing the off-screen rendering in the backbuffer when playing 1080p content?

@Olympia: What are your desktop resolution settings (especially regarding interlacing and refresh rate)?

Asus P5N7A-VM + E8400
Ubuntu 9.10 32-bit
XBMC 9.11
find quote
pilluli Offline
Fan
Posts: 320
Joined: Jul 2006
Reputation: 0
Post: #46
BLKMGK Wrote:Interested in doing this. However EnvyNG for 8.10 appears not updated in ages. The NVIDIA install instructions appear somewhat dire to include killing X\removing piles of files and the repo for 8.10 looks like it has 180 vs 180.29.

So, what are folks doing to get the latest NVIDIA drivers onboard smoothly? From the looks of the TRAC these changes are moving into mainstream code and I'd love to play with them on my machine!

Easiest IMO is to get the .deb packages from jaunty and install them in intrepid. They just work fine. Get all packages with 180 in them.

regards,
find quote
motd2k Offline
Team-XBMC Developer
Posts: 666
Joined: Dec 2008
Reputation: 0
Location: England
Post: #47
How much video ram do you green guys have?
find quote
olympia Online
Team-XBMC Member
Posts: 2,398
Joined: May 2008
Reputation: 31
Post: #48
motd2k Wrote:How much video ram do you green guys have?

It seems, that we use the same mobo (j0bro and I).
For me everything is default regarding video settings in the BIOS.

So you say we have to play with the video ram size?
I will check this out when I arrive home (If it is the problem, I hope it is possible to increase RAM allocated to video).
find quote
bogey Offline
Junior Member
Posts: 28
Joined: Feb 2009
Reputation: 0
Post: #49
olympia Wrote:I am experiencing very similar issues with 1080p on r17786 as the following:

With auto refresh rate enabled: exactly the same experience with all x264 mkv

With auto refresh disabled: Some x264 mkv is working, but some is not (including killa sample), in this case I have the same experience again (collapsed/ garbled picture, while audio and OSD is OK)

Refresh rate changing still needs to be fixed, vdpau context needs to be recreated after refresh rate change.
(This post was last modified: 2009-02-17 14:45 by bogey.)
find quote
fasteddy Offline
Senior Member
Posts: 230
Joined: Jan 2009
Reputation: 0
Location: Ottawa, Ontario, Canada
Post: #50
olympia Wrote:For me everything is default regarding video settings in the BIOS.

Your default video ram is likely 128mb. You should increase it to 512mb.
find quote
Post Reply