Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
finottiOffline
Post subject: propriatary nvidia and vdpau  PostPosted: 15.03.2011, 14:37



Joined: 2010-09-12
Posts: 315

Status: Offline
Dear all,

The recent topics on the proprietary nvidia driver (and the need for vdpau) reminded me that I could never use vdpau, so I thought I'd try again... But still, with the infamous player from the infamous French repository I get much less CPU usage from xv than from vdpau (3% versus %30, using -vo xv/vdpau). (I have nvidia-vdpau-driver installed from the frickelplatz repo.)

Any ideas on why?


EDIT: almost forgot

      Code:

root@t510[/home/finotti]# infobash -v3
Host/Kernel/OS  "t510" running Linux 2.6.37-3.slh.2-aptosid-amd64 x86_64 [ sidux 2010-01 Ύπνος - kde-full - (201006131622) ]
CPU Info        4x Intel Core i5 M 520 @ 3072 KB cache flags( sse3 ht nx lm vmx ) clocked at [ 2400.000 MHz ]                                       
Videocard       nVidia GT218 [NVS 3100M]  X.Org 1.9.4.901  [ 1366x768@50.0hz ]                                                                       
Network cards   Intel 82577LM Gigabit                                                                                                               
                Intel Centrino Advanced-N 6200                                                                                                       
Processes 178 | Uptime 2:19 | Memory 750.6/3829.0MB | HDD ST9320423AS Size 320GB (40%used) | GLX Renderer NVS 3100M/PCI/SSE2 | GLX Version 3.3.0 NVIDIA 270.26 | Client Shell | Infobash v3.35


Thanks,

Luis
 
 View user's profile Send private message  
Reply with quote Back to top
blackholeOffline
Post subject: RE: propriatary nvidia and vdpau  PostPosted: 15.03.2011, 15:01



Joined: 2010-09-12
Posts: 110

Status: Offline
I have a well working vdpau.

Since I had problems with some nvidia drivers (those different from 256.53) for my netxtwindow touchscreen, I had to install with official nvidia installer (I know, this is not supported by aptosid but it was the only optionat the time).

In this case vdpau drivers are installed directly by the nvidia script. The only debian package relating to vdpau is libvdpau1 (not sure if it is necessary). Naturally all debian nvidia packages has been purged.

That said the "infamous player" is working very good (really I am using sm****** with vdpau option), but also my installation of xbmc is using vdpau at his best. The only figures I have are about VDRDEVEL alone against XBMC+VDRDEVEL: with XBMC (using vdpau by default) I have around 10-12% CPU less than VDR alone, this watching H264 coded italian channels.

Various tentatives to use players based on xine with vdpau was futile. Libxine is very well behind and at the time of writing it is not working correctly.

I understand that this is a very personal configuration, but...are you sure that vdpau is working?

What m****** -vc ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau, -vo vdpau is saying?

NOTE:

There is a small script about checking vdpau:vdpinfo
Remember that cards with limited memory cannot use vdpau.
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject: Re: RE: propriatary nvidia and vdpau  PostPosted: 15.03.2011, 16:17



Joined: 2010-09-12
Posts: 315

Status: Offline
Thanks for the reply!


      blackhole wrote:
I have a well working vdpau.

[snip]



I understand that this is a very personal configuration, but...are you sure that vdpau is working?

What m****** -vc ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau, -vo vdpau is saying?


I have the Debian/Frickelplatz/Multimedia versions... Adding the codecs, as you suggested improved in comparison with the previous (with -vo vdpau), reducing CPU to about 10% (from 30%), but -vo xv still is better (with 3%).

Here is the output:

      Code:

t510[~/media/video]$ m**** -vc ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau, -vo vdpau video.avi
**removed** SVN-r33057 (C) 2000-2010 **removed** Team
**removed**: could not connect to socket
**removed**: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing file.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  624x352  12bpp  23.976 fps  989.0 kbps (120.7 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.5.10.2 (build 2540/release)
Load subtitles in ./
==========================================================================
Forced video codec: ffh264vdpau
Forced video codec: ffmpeg12vdpau
Forced video codec: ffwmv3vdpau
Forced video codec: ffvc1vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO: [vdpau] 624x352 => 624x352 Planar YV12
A:   4.4 V:   4.4 A-V:  0.002 ct: -0.037 106/106 15%  4%  0.4% 7 0

Exiting... (Quit)


Ah! But, with a x264 file the performance does get better, with xv at 7% and vdpau at 3%. Adding ffodivxvdpau helps the AVI file, leaving it with the same usage as -vo xv.

Here is an x264 file:

      Code:


$ **removed** -vc ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau, -vo vdpau Spock\'s\ Beard\ -\ Live.mkv
**removed** SVN-r33057 (C) 2000-2010 **removed** Team
**removed**: could not connect to socket
**removed**: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Spock's Beard - Live.mkv.
libavformat file format detected.
[matroska,webm @ 0x2709370] Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
[lavf] stream 2: audio (ac3), -aid 1
[lavf] stream 3: audio (ac3), -aid 2
VIDEO:  [H264]  720x480  0bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
Load subtitles in ./
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 720x480 => 852x480 H.264 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
A:  47.8 V:  47.8 A-V:  0.000 ct: -0.000   0/  0  1%  2%  0.2% 7 0


**removed** interrupted by signal 2 in module: sleep_timer
A:  47.8 V:  47.8 A-V:  0.000 ct: -0.000   0/  0  1%  2%  0.2% 7 0

Exiting... (Quit)


Thanks for your help,

Luis
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio