|09-05-06, 04:10 PM||#1|
Join Date: Jul 2005
Location: Cary North Carolina USA
Compiled mplayer really using XvMCNVIDIA?
Is your compiled mplayer really using XvMCNVIDIA? Does "ldd /usr/bin/mplayer" (assuming mplayer is in /usr/bin) yield a line similar to:
libXvMCNVIDIA_dynamic.so.1 => /usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1 (0x00484000)
./configure --enable-xvmc --with-xvmclib=XvMCNVIDIA
ran but did not include XvMCNVIDIA (even though it said it did).
I am running GNU/Linux Fedora Core 5; nvidia.ko module compiled from NVIDIA-Linux-x86-1.0-8762-pkg1.run, MPlayer-1.0pre8.tar.bz2, 3.2GHz Intel processor, one gigabyte of system memory and a GeForce 6800 GT video card
my /etc/X11/XvMCConfig contains one line: libXvMCNVIDIA_dynamic.so.1
I added these three links:
ln -s /usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1 /usr/X11R6/lib/libXvMCNVIDIA.so.1
ln -s /usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1 /usr/X11R6/lib/libXvMCNVIDIA.so
ln -s /usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1 /usr/lib/libXvMCNVIDIA_dynamic.so.1
I edited "configure" and removed two include lines in the XvMC test compile program. Here is a diff of the original and the modified:
# diff configure configure.orig
> #include <X11/extensions/Xvlib.h>
> #include <X11/extensions/XvMClib.h>
These two files are part of the libXvMC-devel-1.0.1-3 RPM. The libXvMC-1.0.1-3 RPM is also installed.
After running the above configure command, check the XvMC section of configure.log and look for lines similar to:
linux-gate.so.1 => (0x00265000)
libXvMC.so.1 => /usr/lib/libXvMC.so.1 (0x009ff000)
libXvMCNVIDIA_dynamic.so.1 => /usr/lib/libXvMCNVIDIA_dynamic.so.1 (0x00425000)
If you do not see this, you or I have made a mistake.
Assuming all is well run "make"... and then "ldd ./mplayer" yielded (partial):
libXvMC.so.1 => /usr/lib/libXvMC.so.1 (0x00341000)
libXvMCNVIDIA_dynamic.so.1 => /usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1 (0x00209000)
So mplayer says it is using the library libXvMC from the RPM as well as the NVIDIA library. Did I do myself any good?
I have a station listing XXX1 in my ~/.mplayer/channels.conf and channels.conf.atsc file
and am using an HD-3000 card from pchdtv.com
I ran "./mplayer dvb://XXX1"
and "top" command in a separate window gave me CPU/Memory usage for mplayer of 46/2.6 percent
and for X of 12/2.4 percent
I ran "./mplayer -vo xvmc -vc ffmpeg12mc dvb://XXX1"
and "top" command in a separate window gave me CPU/Memory usage for mplayer of 31-35/1.2 percent
and for X of 0-1/1.8 percent
So CPU usage dropped about ten to fifteen percent for mplayer and eleven percent for "X". The GPU on the card must be in use. Since mplayer is the default driver program for mythtv, others might see an increase in performance if mplayer actually uses XvMCNVIDIA.
Am I missing something? Did I do the above changes for no good reason? The mplayer usage numbers seem to say the new mplayer is an improvement. I have only used this new mplayer for 24 hours but so far no problems. I would be interested in others experience.
I looked into solving this due to horizontal streaking in my HDTV output (See my post titled: Horizontal streaking with S-Video). Watching a file with mplayer still gives me horizontal streaking when the original content was from a 1080i broadcast but is fine within mythtv. Does someone know the proper switches for mplayer to emulate the deinterlacing in mythtv using the "Bob" algorythm? Or should the file simply be coverted to another format? Anyway, hope this helps someone.
The mplayer people have stated not to report problems if you enable any extra features (such as --enable-xvmc) and run into problems so do not bother them.
|09-05-06, 06:42 PM||#2|
Re: Compiled mplayer really using XvMCNVIDIA?
For some reason mplayer wants to statically link the lib.a, which is a pain in the butt comes time when you update the nvidia drivers, you also have to recompile mplayer.
Intel i7 980X @ 4GHz | ASUS Rampage III Extreme | GTX 480 3Way SLI @ 900Mhz | Koolance VID-NX480 | Corsair Obsidian 700D
Corsair H70 CPU Cooler | EK-FB RE3 | Corsair AX1200 | Black Ice SR1 360 | 240GB OCZ Revodrive X2 SSD | Windows 7 Ultimate
12GB Corsair Dominator GT @ 8-8-8-24-1T DDR3-1600 | Onkyo TX SR-707 | 70" Sharp Aquos LCD | KEF Audio 5.1 C3/C6LCR/C7
Intel i7 920 D0 @ 4GHz | ASUS Rampage II Extreme | GTX 480 @ 800Mhz | Koolance VID-NX480 | Lian-Li V1200B | Corsair HX1000
EK NB ASUS HP | Watercool HeatKiller 3.0 | Feser Extreme X-360 | 2x160GB Intel X25-M SSD RAID0 | 4x2TB WD20EARS RAID10
12GB Corsair Dominator @ 8-8-8-24-1T DDR3-1600 | Creative X-Fi Titanium | Pioneer DVR-212D | Gentoo Linux
Dell 3008WFP | JohnBlue JB3 | CityPulse DA2.03e II DAC | KingRex T20U w/ Modded Auricaps & PSU | Glow Audio Sub One
Quad Socket Opteron 8356 (16 cores) @ 2.3GHz | Supermicro H8QMi-2 | Supermicro 2U Chassis | Redundant 1200W PSU
32GB 2GBx16 DDR2-667 ECC | 4x 300GB Cheetah SAS RAID10 | Adaptec 5805 512MB w/BBU | Colocated | Gentoo Linux
|09-06-06, 06:01 AM||#3|
Join Date: Mar 2006
Re: Compiled mplayer really using XvMCNVIDIA?
If you really want to check, then try 'lsof | grep mplayer' while mplayer is running.
|Thread||Thread Starter||Forum||Replies||Last Post|
|295.40 295 cannot be compiled on 3.2 kernel||delta32||NVIDIA Linux||4||05-27-12 10:47 PM|
|X Failed to load NVdriver||c00lr4c3r||NVIDIA Linux||13||10-22-02 02:44 PM|
|Error messages... HELP!!!!||Imperito||NVIDIA Linux||3||09-24-02 11:46 PM|
|Need help to get the X to work on my Acer TravelMate 630||knchee||NVIDIA Linux||16||09-19-02 11:16 PM|
|mplayer & xmms problems!||replys2me||NVIDIA Linux||5||09-06-02 03:34 PM|