Kodi Community Forum
XBMC for Linux VDPAU - NVIDIA GPU video decoding support (now in the mainline SVN) - Printable Version

+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Kodi General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: XBMC for Linux VDPAU - NVIDIA GPU video decoding support (now in the mainline SVN) (/showthread.php?tid=45525)



- Haggy - 2009-03-07 20:55

cejstrup Wrote:Still needs some more testing. But I'm very pleased so far. I've been able to lower the fan speed to the lowest setting now and the noise has dropped dramatically. I'm considering some new even more silent fans or perhaps an external fanless power supply or something like that Smile

You may try a picoPSU together with a 90W+ external notebook power supply. I'm running an X2 4850e, nVidia 8300, WD3200BEVT notebook hdd, 2 x 2GB RAM and a bluetooth usb dongle with no problems whatsoever. Temperatures are way better than expected (i built the system into a SONY DVD-Player case). The only fan i use is a Scythe Slipstream 800 controlled by fancontrol - it IS ABSOLUTELY unhearable unless you stick your nose into the fan's fins :-)


- motd2k - 2009-03-07 21:05

shagworthy_uk Wrote:SVN:18315
Update:
<SNIP>
Here are the logs for the different symptoms i have:

Crash xbmc on start of HD file:
(to come, big log and pastebin does not like it)

Mosaic HD Video with autorefresh on:
http://pastebin.com/m430497da

No Video, sound for a few seconds and hang (arr on):
http://pastebin.com/m1fb9f917

Auto refresh off, hd file, audio but no video (little white boxes in the left top corner):
http://pastebin.com/m4599e459

Thanks for these - please could I ask you to try again with 180.37 and latest SVN? Got some better error logging code in there.


- AllanMar - 2009-03-07 22:13

I see people talking about underclocking for lower temp/power usage with VDPAU. I have a M3N78-EM (onboard Nvidia 8300GS) with 4gb ram and an X2 4850e (2.5ghz) and i've been unable to get 1080p to play without major frame dropping without overclocking to around 2.9ghz. Even still i see some jittery blocks once and awhile. Even 720p at stock speeds is slightly iffy.

Is this normal? Any advice on how to improve performance?

I've disabled powernowd and ive got 2x2gb of DDR2 800mhz. Video mem is set to 512mb. I've tryed many different svn versions (i'm now running driver 180.37 with SVN 18327)


- shagworthy_uk - 2009-03-07 22:21

motd2k Wrote:Thanks for these - please could I ask you to try again with 180.37 and latest SVN? Got some better error logging code in there.

Here you go:
SVN 18327
180.37

Black screen an mouse cursor (not desktop), few seconds of audio, hangs xbmc (sending cpu to 100%)
http://pastebin.com/d46121299

Mosaic effect, few seconds of audio and hang xbmc(sending cpu to 100%)
http://pastebin.com/m27cc5770

HD file starts (one that did not before in previous post) few seconds of garbled coloured image then plays normal to the end:
http://pastebin.com/m450f4d15

Finally, Mosaic video, audio plays, does not hang xbmc though so was able to stop the playback and return to menu:
http://pastebin.com/m60cba3a4

Hope this helps. Let me know if you need me to try anything else.


- Haggy - 2009-03-07 22:36

AllanMar Wrote:I see people talking about underclocking for lower temp/power usage with VDPAU. I have a M3N78-EM (onboard Nvidia 8300GS) with 4gb ram and an X2 4850e (2.5ghz) and i've been unable to get 1080p to play without major frame dropping without overclocking to around 2.9ghz. Even still i see some jittery blocks once and awhile. Even 720p at stock speeds is slightly iffy.

Is this normal? Any advice on how to improve performance?

I've disabled powernowd and ive got 2x2gb of DDR2 800mhz. Video mem is set to 512mb. I've tryed many different svn versions (i'm now running driver 180.37 with SVN 18327)

I have exactly the same hardware and at least with mplayer i have no issues playing any hd content by using vdpau. cpu load is about 5-10% @1800MHz. Running on the lowest setting (1000MHz) however was not enough since memory bandwidth is directly tied to core clock on AMD. What distro are you using? I'm on ArchLinux and unfortunately am completely unable to compile anything newer than 18158 on both x86_64 and i686, so i cannot tell if this is an issue of the newer builds since i never saw anything newer than Atlantis on my box :-(


- AllanMar - 2009-03-07 22:53

Haggy Wrote:I have exactly the same hardware and at least with mplayer i have no issues playing any hd content by using vdpau. cpu load is about 5-10% @1800MHz. Running on the lowest setting (1000MHz) however was not enough since memory bandwidth is directly tied to core clock on AMD. What distro are you using? I'm on ArchLinux and unfortunately am completely unable to compile anything newer than 18158 on both x86_64 and i686, so i cannot tell if this is an issue of the newer builds since i never saw anything newer than Atlantis on my box :-(
I'm using Ubuntu 8.10, I actually havnt tried mplayer vdpau in awhile so i'll give that a shot to see how it performs. Even with the dropped frames though i'm only seeing 15-20% cpu (@2.5ghz) usage, which seems a bit odd.

Thanks for the info.


- Haggy - 2009-03-07 22:57

What display resolution/refresh rate are you using? what does xbmc system info say about reached fps? your stutter may also come from unfortunate timing issues. i watched casino royale (1080/24p) having a wonderful, tearing- and judderfree experience after forcing the nvidia driver to use 24Hz. Unfortunately even that is impossible in xbmc for now :-(


- AllanMar - 2009-03-07 23:12

Haggy Wrote:What display resolution/refresh rate are you using? what does xbmc system info say about reached fps? your stutter may also come from unfortunate timing issues. i watched casino royale (1080/24p) having a wonderful, tearing- and judderfree experience after forcing the nvidia driver to use 24Hz. Unfortunately even that is impossible in xbmc for now :-(
1920x1080 50hz display setting (XBMC). XBMC struggles to reach 24hz (around 20hz) when playing 1080p at stock. When overclocked i stay steady at 24hz and its fairly good except for some jitter and sorta of blocky lines that appear and move a little and disapear. I'm more concerned with being able to play content at stock (or ideally lower) speeds.


- motd2k - 2009-03-07 23:43

Are you actually using VDPAU? Overclocking will have nil impact if you are.


motd

Edit: Looks like you are from your previous comments. I'm running this on a very similar system, and play content fine - 5050e with a 8200 integrated(512 shared RAM). Make sure your memory is in dual channel mode. Try 'sudo make reallyclean' in your XBMC folder. Make sure composite is disabled in xorg.conf. Report back either way please!


- AllanMar - 2009-03-08 01:08

motd2k Wrote:Are you actually using VDPAU? Overclocking will have nil impact if you are.


motd

Edit: Looks like you are from your previous comments. I'm running this on a very similar system, and play content fine - 5050e with a 8200 integrated(512 shared RAM). Make sure your memory is in dual channel mode. Try 'sudo make reallyclean' in your XBMC folder. Make sure composite is disabled in xorg.conf. Report back either way please!
Composite was not explicitly enabled, but i added the line to disable it. I also did a make reallyclean and recompiled and its working perfectly now. no dropped frames, no jitter that ive noticed so far. 100x better than it was performing at stock speeds before and even better than when overclocked. One thing i thought of where the overclocking may of come into play was I am playing some of these videos from rar files.

In addition the two WMV VC1 movies I had now play (simply crashed XBMC before) although not quite as well as the h264 ones do.

I see other posts regarding 24hz support, working and not working. I wanted to try it, but when i enable adjust framerate in XBMC the refresh rate dosnt change, is there something else that needs to be done?

Many thanks!


Flawless - cyba - 2009-03-08 01:15

Hi,

just had a really great experience with this branch of XBMC. Have been using xbmc for ages on an old xbox, but recently bought an hd projector and an htpc (Shuttle SN78SH7 with 4GB mem (GeForce 8200 chipset)).

Was building different versions previously this week, but without too much success in running them. But today I found out about setting the memory size in bios, and now everything works great.

My current build is: 18308 180.37

Killa sample runs spot on target framerate, using 15-30% CPU. And then I think the processor is only running at 1GHz (AMD Cool and quiet Phenom x3 - 2.3 GHz processor). At least I see it presented as 1GHz most of the time in xbmc.

About donations, I'd really like to support work on the VDPAU branch of the project. Should I still donate as per xbmc.org instructions, or do you have a special way to donate to this project?

Really appreciate the work you guys put into this!


- motd2k - 2009-03-08 01:56

Donations to the project gladly received!

http://xbmc.org/contribute/donate/


Thanks

motd


- AllanMar - 2009-03-08 02:05

So now the behavior is strange. Make really clean solved my problems. So I started rebuilding my library. Now im back exactly where i was before same playback issues. Any thoughts on what could be going on here?

I tryed to delete the library to see if problems went away but i screwed it up so im in the process of recompiling (after a make reallyclean) to see if it comes back as it did before.

EDIT: So perhaps even stranger. I restore userdata to the default. Open XBMC change resolution to 1920x1080p 50hz change audio to hdmi , disable subtitles and play a movie and everything is perfect. Close XBMC open it back up attempt to play the same movie and i get dropped frames and stuttering video. Restore userdata and i can repeat the process all over again. This seems VERY strange.

EDIT2: Okay so the problem only occurs if XBMC is started in 1080/fullscreen mode. If it starts in Auto mode then i change it to 1080p/60 i have no problems. (until the next restart where it starts in 1080p)


- penquissciguy - 2009-03-08 07:03

Thanks for posting this. When I saw the work going on with XBMC and VDPAU, I decided a low power HD media server would be a good project. My hardware is very similar - a 1.6 GHz Celeron-L 420, 2 gigs of RAM, and an nVidia 9400GT PCI-E card. Just got the machine together tonight and was playing with XBMC Live. I'll report when I have a VDPAU-enabled install set up - here's hoping it works as well as yours.

Ken

cejstrup Wrote:motd2k I want to thank you and the entire team for the great effort. Yesterday I decided to donate to the project to support you guys mainly because of your effort with VDPAU Smile

I took the plunge and swapped my core 2 duo and 7100gs setup with a VDPAU compatible setup to try and make it more silent and use less power Smile

It works perfectly. It can play back 1080p even the killa sample with very low CPU usage and no dropped frames. No problems playing non-VDPAU accelerated content either. :cool2:

Here's how much the CPU is loaded during playback:

720p: cpu load 5-10%

1080p: cpu load 10-15%

killa sample: cpu load 27%

I guess I could try and find an even lower clocked CPU since this is more that sufficient Smile This is a single core CPU with small amount of cache which doesn't seem to be a problem at all.


Once again thanks for the great effort.


In case people are curious here's my setup:

mobo: gigabyte ga-e7aum-ds2h with integrated nvidia 9400

cpu: intel celeren L-430 1.8GHz (low power )

memory: kingston twinx 4x1GB dual channel (maybe a bit overkill,but it was cheap as chips so I had to buy it lol )

case: silverstone lascala lc-02

OS: XBMC Live 8.10 (ubuntu hardy), nvidia 180.35 drivers

everything runs off a 4GB USB stick.

Still working on reducing the noise even more and trying to cool the nvidia 9400 a bit more. It does go up to 70 degrees sometimes. But it shouldn't be a problems since it's rated to a max of around 100 or so. But still ,I prefer it to be cooler Smile



- pyrates - 2009-03-08 09:16

Tried this on a 7600GT and every time I tried to open a h.264 movie in mkv or hdmov, it would immediately crash X and I would need to shutdown and restart the computer. I did update to the latest prerelease driver.