Menu

Script and fixture definition to control VLC Player (Linux)

offtools
2015-03-05
2015-03-05
  • offtools

    offtools - 2015-03-05

    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

     

    Last edit: offtools 2015-03-05
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.