Page 1 of 1

Disable using OpenGl to play videos

Posted: 26 Apr 2022 15:42
by Belini
My motherboard doesn't support OpenGl 2.0 and I always get error when I run VLC 4.0.0 Beta, how can I disable the use of OpenGL?

Image

Re: Disable using OpenGl to play videos

Posted: 27 Apr 2022 09:31
by Lotesdelere
From your screenshot it looks like you are using Windows XP and VLC 4.x is not compatible with Windows XP anymore. Minimum required version is Windows 7.

Re: Disable using OpenGl to play videos

Posted: 27 Apr 2022 11:17
by Rémi Denis-Courmont
How does a motherboard not support OpenGL 2.0? It's just an API. Even my SBC without a GPU (just a dumb 2D HDMI display controller) supports OpenGL 2.0 through software rasterisation. It's slow but it's supported.

Re: Disable using OpenGl to play videos

Posted: 27 Apr 2022 14:35
by Belini
I searched a lot and didn't find a way to put OpenGl 2.0 on my board so I think it doesn't support it, but regardless of that I would like to know if there is a way to disable the use of OpenGl in VLC?

Re: Disable using OpenGl to play videos

Posted: 27 Apr 2022 16:24
by Rémi Denis-Courmont
On Windows, VLC uses DirectX, not OpenGL to play videos by default, and even then, it can fall back to other mechanisms automatically.

Regarding the GUI, I don't think you can turn off OpenGL. You need to use a different interface.

Re: Disable using OpenGl to play videos

Posted: 27 Apr 2022 17:41
by Belini
Thanks for the clarifications.

Re: Disable using OpenGl to play videos

Posted: 28 Apr 2022 09:46
by chubinou
On windows, the 4.0 Qt interface uses an OpenGL implementation based on Direct3D11 (ANGLE). maybe your system is missing the d3dcompiler_47.dll which should be part of your system on an updated windows 7 (or above); as far as I know, It comes with directX

what version of windows do you use? as Lotesdelere said, we don't support windows XP

you may also try to force Qt to use software rendering, by exporting QT_OPENGL=software, but the result may be degraded.

Re: Disable using OpenGl to play videos

Posted: 28 Apr 2022 15:24
by Belini
I am using windows 7 and i have d3dcompiler_47.dll

How should I export QT_OPENGL=software

Image

Re: Disable using OpenGl to play videos

Posted: 28 Apr 2022 16:27
by chubinou
first, the variable I mentioned is the wrong one, the one that should be set is QT_QUICK_BACKEND, sorry about that

you can create a "vlc.bat" file in this file enter the following text

Code: Select all

SET QT_QUICK_BACKEND=software vlc.exe --qt-compositor=dummy %*
start VLC using this file

Re: Disable using OpenGl to play videos

Posted: 28 Apr 2022 17:59
by Belini
This way also did not work and gave this error now.

Image

Re: Disable using OpenGl to play videos

Posted: 28 Apr 2022 18:08
by Lotesdelere
As said by Chubinou, put both command lines in a .BAT file and then run this BAT file.
You can use Windows Notepad for creating this BAT file, or any other pure text editor of your choice.
That said, it appears that you are using a so called Windows 7 Lite version. There is no such official Windows 7 Lite version, the "Lite" is a custom build made by some third party. So it may lack some features of the regular Windows 7 from Microsoft.

Re: Disable using OpenGl to play videos

Posted: 28 Apr 2022 21:10
by Belini
The .bat file was created this way even with the two lines in it, it may even be my lite version of windows 7 but until version 3.0.17 it works normally on this windows and only gives this problem now in version 4.0.0 Beta.

Re: Disable using OpenGl to play videos

Posted: 29 Apr 2022 13:23
by chubinou
> This way also did not work and gave this error now.

that's odd, this option (--qt-compositor) has been here since November 2020, can you check that the your version is recent enough? I assume you downloaded vlc 4.0 from here https://nightlies.videolan.org/, you may try to download one from last week (the latest has a temporary regression in the player view -_-' )

otherwise you may try without the --qt-compositor option but you'll probably need to disable "integrate video in interface" in the preferences

> but until version 3.0.17 it works normally on this windows

the 4.0 version has a new interface with different requirements. It's supposed to work on windows 7, but maybe there are some edge cases that needs to be covered.

Re: Disable using OpenGl to play videos

Posted: 29 Apr 2022 14:25
by Belini
I downloaded version 29-Apr-2022 32bit and also 64bit and in both the OpenGl error continues and in this version now --video-x and --video-y don't work, I can put any value in --video- x and --video-y that nothing happens.