Page 1 of 1

Script and fixture definition to control VLC Player (Linux)

Posted: Thu Mar 05, 2015 12:10 pm
by offtools
Hello,

maybe you noticed the issue concerning videoplayback on linux.
I wrote a small and dirty script to control VLC (play, pause, stop, next, prev, playlist entry) with QLCPlus through OSC.


I first tried subprocess and communicate (via stdin/stdout) to control vlc through the rc interface, but there seems to be a bug in vlc or lua, thatswhy the script is using oldrc and unix sockets.
Its very far from perfect. I'm thinking about to use mplayer in future. The slave mode there looks a bit more promising, although mplayer has not the pause feature in the playlist, which is quite handy.


One Thing. The unix sockets interface of vlc crashed as I tried out seeking. Thatswhy just simple playback buttons.


Second thing. The internal playlist ID's of VLC dont match with the gui. To get the right numbers you can start:
vlc -I rc
and then type playlist.

This is done really quick. Feel free to change this, or make this better :)

Files:

VLC-OSC-Remote.qxf (dummy Fixture definition for the python script)
test-vlcosc.qxw (demo)
vlcosc.py (python script)
vlcosc.ui (gtk ui def for the python script)

offtools

Script and fixture definition to control VLC Player (Linux)

Posted: Thu Mar 05, 2015 10:08 pm
by offtools
Hi,

tried the same for mplayer now, works a bit better. It uses files in a folder as playlist.

offtools

Re: Script and fixture definition to control VLC Player (Linux)

Posted: Mon May 04, 2015 6:27 pm
by anorod
Hi,

I'm a newbie with QLC+ and scripting, but I've been looking for a good opensource video player controlled by OSC/Artnet and haven't found any. The idea of controlling mplayer or VLC is the best one so far, but I don't understand what I need to do with the files you posted.

Could you give me some indications about what to do with them to make it work? Are there any scripts for Mac or Windows?

Thanks!

Re: Script and fixture definition to control VLC Player (Linux)

Posted: Tue May 05, 2015 2:09 pm
by plugz
Hi,

python scripts are missing. see here: https://sourceforge.net/p/qlcplus/discu ... /6e879b03/

I'm not sure, but they should work on windows and OSX.




.qxw files are qlcplus workspace files, they're just here as an example
.qxf files are fixture definitions files, they go to the fixture definition folder
.py files should be executed while qlc+ is running



I can't provide any more support on this, sorry.

Re: Script and fixture definition to control VLC Player (Linux)

Posted: Tue May 05, 2015 11:04 pm
by anorod
Perfect!. I got an idea. Thank you very much! :)