PDA

View Full Version : MPlayer problem with NVidia cards?


rvm
10th June 2007, 01:15
Hi, I'm developing SMPlayer (http://smplayer.sourceforge.net/windows/), which it's a front-end for MPlayer.

I received several reports from people with NVidia cards that say that SMPlayer won't work with gl/gl2. MPlayer just says "[gl] Could not create GL context!" and then crashes.

I have myself a NVidia graphic card, and in fact I can reproduce the problem.

I tested other front-ends (MPUI (http://mulder.dummwiedeutsch.de/home/?page=projects#mplayer) and rulesPlayer (http://rulesplayer.altervista.org/)). All of them have the same problem too.

But MPlayer running on its own does work with gl/gl2. So it only fails when it's embedded in another application.

In another computer, with an ATI card, SMPlayer (and MPUI) work perfectly with gl/gl2, so this problem seems to be related to NVidia cards.

This post is to try to confirm the problem.

Can anyone with a NVidia card use gl or gl2 in SMPlayer or MPUI?
Does anyone with a different card have the same problem?

Here it's how to test it:

SMPlayer:
You can select the video output driver in Options->Preferences->General. First select "directx" and be sure you can play any video. Then select "gl2" and try to play it again. If it fails you can see the log in Options->View logs->MPlayer. At the end of the log see if you can find something like this: "stderr: [gl] Could not create GL context!"

MPUI
First try to play any file and be sure it plays well. Then choose Tools->Options and in the "Additional parameters" field add: -vo gl2. Press Ok and try to play again the same file. If it fails you can see the output in Tools->Show MPlayer output.

To verify that MPlayer itself work with gl/gl2, maybe the easiest way it's doing it with SMPlayer this way: go to Options->Preferences->General. Choose gl2 as video output driver. But now select the Advanced section and check the option "Run MPlayer in its own window". This way the real MPlayer window is used. Now try to play a video, it should work. If you see the MPlayer log, there should be these lines:
VO: [gl2] 624x352 => 624x352 BGR 24-bit [zoom]
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off

LoRd_MuldeR
10th June 2007, 16:26
I can confirm that it does work on my ATI Radeon 9800 Pro:

http://img478.imageshack.us/img478/1735/filemplayergl2gh6.th.png (http://img478.imageshack.us/my.php?image=filemplayergl2gh6.png)

Xin-Hong
11th June 2007, 17:54
GeForce 6600GT, Forceware 158.18, Vista, SMPlayer : "stderr: [gl] Could not create GL context!" :(

Henrikx
11th June 2007, 18:27
Windows XP, Nvidia Geforce 4 MX 460, 93.71_forceware_winxp2k_international_whql, "Could not create GL context!", no Crash (SMPlayer)!
.

casio7131
12th June 2007, 13:47
i can confirm this also using gl2 (MplayerProcess::parseLine: 'stderr: [gl] Could not create GL context!').

Here's plenty of info from dxdiag (win xp, smp 0.5.11): Card name: NVIDIA GeForce FX 5200, Display Memory: 128.0 MB, Driver Name: nv4_disp.dll, Driver Version: 6.14.0010.8421 (English), DDI Version: 9 (or higher), Driver Attributes: Final Retail, Driver Date/Size: 3/9/2006 14:29:00, 3968512 bytes, WHQL Logo'd: No
---
note: "Run MPlayer in its own window" works with gl2.