LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 01-12-2010, 05:41 PM   #1
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Rep: Reputation: 16
Exclamation My nvidia driver works better on win XP than on ubuntu !!


I used to watch HD videos on my pc like h.264 720p videos, When I watch them on winxp there is no problem at all it works perfect on my nvidia 6200 LE but when I try on my ubuntu it has a small lag on this type of videos and it eats most of my core 2 due (3 GHZ) cpy approx 85%.

I installed the nvidia driver 185 from the ubuntu official repos.
I am using the same movie player on winxp and ubuntu which is smplayer the only difference is on winxp the output driver set on windows to (DirectX) but set on ubuntu to (xv).

I feel a small lag too in my compiz effects, I tried ubuntu on other pc it works more faster and the effects much faster than on my pc.

Is there something I have to do to enhance the performance on ubuntu ?
 
Old 01-12-2010, 06:37 PM   #2
explodingzebras
Member
 
Registered: Oct 2007
Location: UK
Distribution: Ubuntu
Posts: 63

Rep: Reputation: 18
Does performance improve when you disable compiz completely?
 
Old 01-12-2010, 09:31 PM   #3
Willrandship
Member
 
Registered: Oct 2009
Location: Utah
Distribution: Debian Testing (Wheezy atm.)
Posts: 109

Rep: Reputation: 17
You might try the nv driver instead. (That's the one built into the ubuntu install, open source driver) It tends to run faster, as it was designed for linux.
 
Old 01-12-2010, 11:10 PM   #4
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by explodingzebras View Post
Does performance improve when you disable compiz completely?
no its the same !!
 
Old 01-12-2010, 11:20 PM   #5
wanas
Member
 
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Willrandship View Post
You might try the nv driver instead. (That's the one built into the ubuntu install, open source driver) It tends to run faster, as it was designed for linux.
you mean I change the output on smplayer from (xv) to (nv) ?
If yes, I cant find (nv) there is only [xv(1-nv05 video blitter)]
I have attached a screenshot of the available output drivers.
Have I missed something to install ?
Attached Images
File Type: png Screenshot-SMPlayer - Preferences-1.png (83.1 KB, 8 views)
 
Old 01-13-2010, 06:27 PM   #6
explodingzebras
Member
 
Registered: Oct 2007
Location: UK
Distribution: Ubuntu
Posts: 63

Rep: Reputation: 18
@Willrandship
the nv driver is likely to be much slower since it has less access to the hardware (ie hardware acceleration) The Nvidia proprietary driver IS designed for Linux.
 
Old 01-14-2010, 02:47 PM   #7
Willrandship
Member
 
Registered: Oct 2009
Location: Utah
Distribution: Debian Testing (Wheezy atm.)
Posts: 109

Rep: Reputation: 17
Oh wait, I was thinking open source radeon. NV is significantly slower. And no, nv is not an smplayer option. It is a driver that is only on when the commercial driver isn't present.
 
Old 01-14-2010, 02:50 PM   #8
Willrandship
Member
 
Registered: Oct 2009
Location: Utah
Distribution: Debian Testing (Wheezy atm.)
Posts: 109

Rep: Reputation: 17
That's probably the only reason I can think of to use ATI over nvidia. The open source linux drivers work better. Other than that, I don't really care brand wise.
 
Old 01-14-2010, 04:21 PM   #9
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
I think there are VDPAU settings depending on the actual card, I think it's only an option starting at certain 8800gts cards and going up from there. Search LQ, I saw a post directly relating to this in the last few days, but it was an aside to what I was searching for. I personally use NVIDIA proprietary drivers and have zero issues with watching videos with an older 8800gts320 with the 195.30 beta driver, I never tried to watch a video outside of youtube prior to this driver, but i'm sure 185.xx and 190.xx would be fine.
 
Old 01-15-2010, 01:10 PM   #10
explodingzebras
Member
 
Registered: Oct 2007
Location: UK
Distribution: Ubuntu
Posts: 63

Rep: Reputation: 18
indeed, i havn't had any troubles with recent nvidia cards (older cards like old Geforce 2s are a different story).
 
Old 01-15-2010, 04:32 PM   #11
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
On my setups when playing back 720p content with out the help of something similar to VDPAU or VA API, my computers will use a lot of processing power. Also H.264 uses a lot of processing power, so this is one of the penalties of using this codec for its compression abilities.

DirectX is different than OpenGL. DirectX uses both the main processor and video card to render graphics. A high end video card is not needed to provide good performance. OpenGL only uses the video card, so it requires a high end video card to handle OpenGL. OpenGL requires a high memory bandwidth and memory capacity to perform well.

Video playback can use either XVideo (xv), OpenGL (gl or gl2), or SDL. Also to get good performance to decode H.264, the H.264 library have to be written using multi-threading. At this time H.264 does not yet have multi-threading. You can try upgrade H.264 library and Mplayer to provide better support and performance, but you will still be in the same problem.

In order to use VDPAU or VA API, you will need to upgrade your video card to at least a GeForce8 that supports PureVideo.

In Windows, probably the video you are seeing is dithered in order to handle the video playback with minimal frame dropping. You can the following command to play back HD videos in Linux with out the help of VA API or compatible API like VDPAU.

mplayer -vo xv -lavdopts skiploopfilter=all:fast=1 [file]

or

mplayer -vo gl -vf scale=-1:-1 -lavdopts skiploopfilter=all:fast=1 [file]

I have tested the above with my GeForce8 8400M GS even though I can playback HD videos with VDPAU. The problem using software playback compared to hardware playback is you need high video memory bandwidth unless you do not mind the tearing. Also a fast main processor is needed to handle larger resolution videos.
 
  


Reply

Tags
nvidia


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia driver works only on 2.6.18-4 emamarro Debian 6 10-22-2007 05:55 PM
nvidia driver fails on 3d but works on 2d samac Slackware 9 02-17-2005 05:58 AM
Need distribution that works well with the NVIDIA driver Baddox Linux - Software 13 01-18-2005 04:06 PM
Nvidia Driver - Works as Root troubledman Linux - Hardware 3 03-18-2004 06:27 PM
nVidia driver works! MBtronics LinuxQuestions.org Member Success Stories 1 07-13-2003 02:29 PM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration