Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to write a VLC plugin in Python?

Tags:

python

vlc

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?

like image 530
AlexW.H.B. Avatar asked Jan 18 '13 18:01

AlexW.H.B.


People also ask

How do I run VLC in Python?

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.

Can you make a media player in Python?

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.

What is Python-VLC?

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.


1 Answers

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.

like image 140
mjgpy3 Avatar answered Sep 28 '22 00:09

mjgpy3