Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-05-06, 04:10 PM   #1
RoyBoy
Registered User
 
Join Date: Jul 2005
Location: Cary North Carolina USA
Posts: 4
Default 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)

Using
./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
3854a3855,3856
> #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:

ldd /tmp/mplayer-conf-15085-11830.o
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.
RoyBoy is offline   Reply With Quote
Old 09-05-06, 06:42 PM   #2
Spyke
Foxie
 
Spyke's Avatar
 
Join Date: Aug 2004
Location: Canada
Posts: 618
Send a message via AIM to Spyke Send a message via MSN to Spyke Send a message via Yahoo to Spyke
Default 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.
__________________
Gaming:
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
Workstation:
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
Server:
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
Spyke is offline   Reply With Quote
Old 09-06-06, 06:01 AM   #3
Gumboot
Registered User
 
Join Date: Mar 2006
Posts: 14
Default Re: Compiled mplayer really using XvMCNVIDIA?

Quote:
Originally Posted by RoyBoy
Using
./configure --enable-xvmc --with-xvmclib=XvMCNVIDIA
I use --enable-xvmc on its own, and I let it find the XvMC abstraction library, and I configure that to use XvMCNVIDIA (/etc/X11/XvMCConfig contains "libXvMCNVIDIA.so.1"). That means it won't show up in ldd... but if you use a commandline that forces xvmc and ffmpeg12mc then it just fails until you have things set up correctly, so it's safe to assume it's working.

If you really want to check, then try 'lsof | grep mplayer' while mplayer is running.
Gumboot is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
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

All times are GMT -5. The time now is 05:26 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.