Is it possible to write a VLC plugin in Python? If so how do you go about this?
I've seen the vlc.py file, all I can tell is you can write an application with functionality of VLC, but can you actually write something that you can open up in VLC that adds additional functionality, without going into the C code and recompiling everything?
In order to install the VLC module in Python, we will use the pip installer following the command shown below: Syntax: $ pip install python-vlc.
We can create a MediaPlayer object with the help of MediaPlayer method. Media can be video or even audio that is supported by vlc, it can be set with the help of set_media method.
The VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project.
According to the VLC plug-in (or modules as they are called in VLC) writer's guide:
Different programming languages can be used at least in theory. (The main VLC code base only uses C, C++ and Lua, and on MacOS Objective C.)
So, it looks totally possible. Now, according to the same resource you can also create "out-of-tree" modules, which means that to add them to to VLC's functionality you don't have to recompile VLC.
If you want more information, or a walk-through on how to make these modules I would highly suggest checking out that link.
You mentioned the VLC.py file. If you're going to use those Python binding, check out these examples.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With