Log in

View Full Version : OpenGL renderer


LigH
14th December 2014, 11:51
In contrast to DirectShow media players, VLC additionally supports an OpenGL surface as renderer. So I wondered if there are any installable OpenGL Renderers for DirectShow at all. Indeed, there is at least one project (http://code.google.com/p/opengl-directshow-video-renderer/), apparently source only. Now that I found one, I also wonder:


Are there any advantages to use OpenGL surfaces; if yes, only for specific graphic hardware (probably depending on the driver support)? Or would it be not much more than a "collector trophy"?
Would media player authors (specifically MPC-??) consider supporting it explicitly when it is in a mature stage? Until then, I may probably have to prefer it in the DirectShow filters to make it work?

nevcairiel
14th December 2014, 12:14
There isn't really a good reason to prefer OpenGL on Windows over Direct3D. Windows GPU drivers are usually much more optimized for Direct3D, plus it offers access to DXVA, which not only is required for GPU decoding, but also hardware deinterlacing or the GPUs video scaling algorithms (as default EVR uses, for example).

That said, if a OpenGL video renderer becomes usable and popular, I'm sure MPC-HC wouldn't be against adding it to the renderer dropdown menu.
In the meantime, you guessed right, you can simply add it to the preferred filter list.

huhn
14th December 2014, 12:19
isn't openGL limited to 8 bit and only professional GPU can output 10 bit with an openGL source?

wouldn't that make the future very grim for this type of renderer?

dukey
15th December 2014, 13:28
I wrote an opengl video renderer for directshow, but for the reasons nev mentioned dxva and hardware deinterlacing, I scapped it and went with some evr variant.