oaubert / python-vlc

Python vlc bindings
GNU Lesser General Public License v2.1
384 stars 110 forks source link

Render to custom OpenGL texture #258

Closed bl1nch closed 1 year ago

bl1nch commented 1 year ago

Hello. Vlc 4.0 added the ability to render video into a custom opengl texture. Can you please find out if python-vlc supports this function. If so is there any example of using this? If not, will this be implemented in the future? Thanks in advance for your answer.

oaubert commented 1 year ago

https://gist.github.com/dgfitch/02b40ec77d12cc6ca11a81360de9f2ab

bl1nch commented 1 year ago

Yes, I know that I can use an external buffer to fill it into the texture manually, but VLC does not provide hardware acceleration for rendering to an external buffer. Therefore, they created an API for direct rendering inside an OpenGL texture, but in your python-vlc module, the function that should be responsible for this is not realized

oaubert commented 1 year ago

These functions are blacklisted because their signature and parameter types makes it not that easy to define automatic conversion to ctypes. If you want, you can contribute the appropriate ctypes wrapper definitions, I will gladly integrate them in the module.