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

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-09-08, 06:10 PM   #1
norman-ramsey
Registered User
 
Join Date: Oct 2005
Posts: 9
Default mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

I recently upgraded my machine to the 173.14.09 linux drivers. As a result, mplayer no longer works with XvMC. The symptom is rather strange; although I have an GeForce 6600 which lists on lspci as an NV43 GPU, mplayer thinks it is seeing an NV17 GPU. I made contact with the mplayer maintainer for the vo_xvmc module, and he seems to think the problem lies in the Nvidia drivers.

lspci says:
01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2)
My mplayer command line is:
myplayer -vo xvmc -vc ffmpeg12mc auto-pit-ne@16.15.ts
XvMC is detected:
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.1
The next video output is as follows:
VO: [xvmc] 1920x1080 => 1920x1080 MPEG1/2 Motion Compensation and IDCT
[ASPECT] Warning: No suitable new res found!
vo_xvmc: Using Xv Adaptor #0 (NV17 Video Texture)

At this point the machine freezes and mplayer chews up all the CPU. Once I change
windows or similar, the machine comes back to life, and after I kill -9 mplayer, I get this remaining output:

vo_xvmc: Port 355 grabed
vo_xvmc: Found matching surface with id=54434449 on 355 port at 0 adapter
vo_xvmc: Allocated Direct Context
vo_xvmc: data_blocks allocated
vo_xvmc: mv_blocks allocated
vo_xvmc: Motion Compensation context allocated - 8 surfaces
vo_xvmc: idct=1 unsigned_intra=0
vo_xvmc: looking for OSD support
Subpicture id 0x34344149
vo_xvmc: OSD support by additional frontend rendering
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!


MPlayer interrupted by signal 15 in module: decode_video
Killed
The mplayer maintainer says things like 'the newer drivers don't support the GeForce 6600 GPU' and 'mplayer is detecting NV17 instead of NV43; new drivers don't support NV17, so either Nvidia library or Nvidia driver must be at fault'. I myself am not so sure, but I don't know how to proceed.

For what it's worth, gxine -V xxmc also goes into a tight loop grabbing 100% CPU.

Can anyone advise me how to proceed? I don't feel I have a quality bug report to give to Nvidia.

Also, if it matters, I am using an older kernel:
Linux curlycoat 2.6.18-4-k7 #1 SMP Mon Mar 26 17:57:15 UTC 2007 i686

All advice welcomed.


Norman
norman-ramsey is offline   Reply With Quote
Old 07-10-08, 12:42 AM   #2
jeisom
Registered User
 
Join Date: Dec 2005
Location: My own little world
Posts: 117
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

If you search the forum you should find that its nvidia driver broke. I forget which version
but an older driver version of nvidia's driver does work.
jeisom is offline   Reply With Quote
Old 07-24-08, 06:28 PM   #3
norman-ramsey
Registered User
 
Join Date: Oct 2005
Posts: 9
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

OK, thanks. It would be nice to hear from nvidia if there are plans to fix this problem.
I notice that xvmc is not supported on the newer GPUs. This looks bad to me as nothing
else does nearly as good a job with the 1080i HDTV from the USA ATSC technical standards.
norman-ramsey is offline   Reply With Quote
Old 07-24-08, 06:55 PM   #4
xbobmx
Registered User
 
Join Date: May 2003
Posts: 191
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

"NV17 Video Texture" refers to the Xv adaptor that uses HW first introduced in NV17, not that your chip is = NV17. I don't think that specifically is your problem.
xbobmx is offline   Reply With Quote
Old 07-25-08, 12:33 AM   #5
junksiu
Registered User
 
Join Date: Jun 2008
Posts: 21
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

What is the resolution of your display? As from your top psoting, the video you trying to play is huge with a 1920x1080 resolution. Try to half the size and see if it work?

xvmc working in my setup as follow:

Quote:
mplayer -vo xvmc -vc ffmpeg12mc best.mpg
MPlayer dev-SVN-r27120-4.3.1 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing best.mpg.
MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 7000.0 kbps (875.0 kbyte/s)
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.1
================================================== ========================
Forced video codec: ffmpeg12mc
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC accelerated codec.
Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC))
================================================== ========================
================================================== ========================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
================================================== ========================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 720 x 480 (preferred colorspace: MPEG1/2 Motion Compensation and IDCT)
VDec: using MPEG1/2 Motion Compensation and IDCT as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xvmc] 720x480 => 720x540 MPEG1/2 Motion Compensation and IDCT
vo_xvmc: Using Xv Adaptor #0 (NV17 Video Texture)
vo_xvmc: Port 355 grabed
vo_xvmc: Found matching surface with id=54434449 on 355 port at 0 adapter
vo_xvmc: Allocated Direct Context
vo_xvmc: data_blocks allocated
vo_xvmc: mv_blocks allocated
vo_xvmc: Motion Compensation context allocated - 8 surfaces
vo_xvmc: idct=1 unsigned_intra=0
vo_xvmc: looking for OSD support
Subpicture id 0x34344149
vo_xvmc: OSD support by additional frontend rendering
A: 5.2 V: 5.2 A-V: -0.010 ct: 0.044 152/152 5% 0% 0.3% 0 0
I also use a 6600GT, lspci give following result for my card:
Quote:
01:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600 GT] (rev a2)
Nvidia driver: 177.13 - 64bit
junksiu is offline   Reply With Quote
Old 07-25-08, 01:47 PM   #6
norman-ramsey
Registered User
 
Join Date: Oct 2005
Posts: 9
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

Quote:
Originally Posted by junksiu View Post
What is the resolution of your display? As from your top psoting, the video you trying to play is huge with a 1920x1080 resolution.
I'm using the 6600GT to drive two displays, one 1920x1080, one 1440x900.
I get the same error regardless.

Quote:
Try to half the size and see if it work?
I can try this on a 720x280 DVD perhaps. The machine in question is down right at the minute.

Quote:
Nvidia driver: 177.13 - 64bit
I'm running 32-bit. I wonder if this is a difference.


Are you using stock mplayer? In the past I have had to recompile mplayer to get xvmc support, so I compiled the latest SVN version. The suggestion that drivers (and card was misdiagnosed) were broken came from the maintainer of mplayer's vo_xvmc driver.
norman-ramsey is offline   Reply With Quote
Old 07-25-08, 03:24 PM   #7
conky
Registered User
 
Join Date: Nov 2007
Posts: 70
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

I also have this problem with a 32-bit machine (Athlon XP 2400+) and an AGP GeForce 7600GS with drivers >=169.xx. Downgrading to 100.14.23 and applying the unofficial patch for 2.6.25 fixed the problem with XvMC, so it was certainly introduced in recent driver versions. XvMC chews 100% cpu with black output for mpeg2 of all resolutions I've tried (480i, 720p and 1080i) in MythTV, mplayer and xine. Looking at previous reports of similar problems, I think it is a problem with AGP cards and XvMC. For now, I have downgraded the machine to 100.14.23, but I am also curious as to what caused this bug.
conky is offline   Reply With Quote
Old 07-25-08, 05:21 PM   #8
norman-ramsey
Registered User
 
Join Date: Oct 2005
Posts: 9
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

Very interesting. The symptoms are definitely the same, and I'm running an AGP card on an old motherboard to save power (I have Sempron 4300+; amazing it works at all).

I tend to avoid the bleeding-edge kernels and especially having to patch kernels. I wonder if 2.6.25 is necessary, and who can point me to the 'unofficial patch'? I'm actually thinking of winding all the way back to 1.0-9755, which worked last year...


Norman
norman-ramsey is offline   Reply With Quote

Old 07-25-08, 05:29 PM   #9
conky
Registered User
 
Join Date: Nov 2007
Posts: 70
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

The patch isn't a kernel patch, it's a patch to make the 100.14.19/100.14.23 drivers work with newer kernels. 2.6.25 isn't necessary. I just mentioned I was using the patch since I am using the driver with a newer kernel. Since you're using 2.6.18, the patch shouldn't be necessary. It is located in this thread: http://www.nvnews.net/vbulletin/showthread.php?t=112452 if you're curious.
conky is offline   Reply With Quote
Old 07-26-08, 02:17 PM   #10
junksiu
Registered User
 
Join Date: Jun 2008
Posts: 21
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

I tested it in my 32-bit environment and xvmc works there too.

I am running gentoo and the mplayer is compiled with the following USE flag:
Quote:
media-video/mplayer
Installed versions: 1.0_rc2_p27120(01:29:59 AM 07/23/2008)(X a52 aac alsa amrnb amrwb bidi bl cddb cdio cdparanoia cpudetection custom-cflags custom-cpuopts dga directfb dts dv dvb dvd enca encode fbcon ftp ggi gif gtk iconv ipv6 jpeg kernel_linux live lzo mad md5sum mmx mmxext mp2 mp3 musepack nas nemesi openal opengl png pnm pulseaudio quicktime radio rar real rtc samba sdl speex srt sse sse2 ssse3 teletext tga theora truetype unicode v4l v4l2 vorbis x264 xanim xscreensaver xv xvid xvmc zoran -3dnow -3dnowext -aalib -altivec -arts -bindist -debug -doc -dxr2 -dxr3 -esd -jack -joystick -ladspa -libcaca -lirc -oss -svga -video_cards_mga -video_cards_s3virge -video_cards_tdfx -video_cards_vesa -vidix -win32codecs -xinerama)
junksiu is offline   Reply With Quote
Old 07-26-08, 02:23 PM   #11
conky
Registered User
 
Join Date: Nov 2007
Posts: 70
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

My environment is also a 32-bit gentoo environment with mplayer-1.0_rc2_p27120 installed, but XvMC does not work. Is your card a PCI-express card? I think the problem only affects AGP cards as in this thread: http://www.nvnews.net/vbulletin/showthread.php?t=107760.
conky is offline   Reply With Quote
Old 07-26-08, 05:34 PM   #12
junksiu
Registered User
 
Join Date: Jun 2008
Posts: 21
Default Re: mplayer misdiagnoses GPU; XvMC fails -- is it mplayer or nvidia?

Yes, I am using pci express.
junksiu 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
Russian Masterpieces Put on Display Using NVIDIA GPU Technology News Archived News Items 0 06-25-12 05:10 PM
NVIDIA and J├╝lich Join Forces to Drive GPU Computing Innovation News Archived News Items 0 06-18-12 10:50 PM
Choosing The Right GPU To Take Adobe Workflows To The Max News Archived News Items 0 05-29-12 06:40 PM
New GPU from Nvidia Announced Today, the GeForce GTX 670 News Archived News Items 0 05-10-12 02:50 PM

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


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