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.