Skip to main content

A command line utility to control a running vlc player instance.

Project description

Lets you control a running instance of vlc player, start a new instance, get track information, etc.

Supported platforms

  • python 2.7 / 3.4

  • Linux

Features

  • Controls vlc player over dbus.

  • Play, pause, shuffle, toggle, prev, next, stop commands.

  • Play all files in a directory (recursively added).

  • Add files / directories based on inclusion and exclusion patterns.

  • Change volume / fade volume.

  • Print current track info.

  • Quit vlc.

  • Quit based on return code of another command.

  • Can be used as a cron job.

Dependencies

  • vlc player, of course.

  • python-dbus or python3-dbus

    On Ubuntu: >apt-get install python-dbus or >apt-get install python3-dbus

Usage

  • Pause:

    vlc-ctrl pause
  • Play a directory:

    vlc-ctrl play -p /home/user/music
  • Increase volume 10%:

    vlc-ctrl volume +10%
    vlc-ctrl volume +0.1
  • Quit when return code of “command” is 0, retrying the command at most 5 times at 30s intervals and fade out in 10s:

    vlc-ctrl quit -c command -r 5,30 -f 10
  • Get info on currently playing track:

    vlc-ctrl info
  • For more commands, see:

    vlc-ctrl -h

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vlc-ctrl-1.0.7.tar.gz (9.8 kB view details)

Uploaded Source

File details

Details for the file vlc-ctrl-1.0.7.tar.gz.

File metadata

  • Download URL: vlc-ctrl-1.0.7.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vlc-ctrl-1.0.7.tar.gz
Algorithm Hash digest
SHA256 a32e2c4a7bbcdb9e43695550d7c642358d832a2e14e9d5985c92bedc6c7ff42f
MD5 fc7ce9ffea6099b937ecafaa51275948
BLAKE2b-256 9bf0909be6e970e29b2944a70aa439cb01901752944528ed9783ec726fd2c095

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page