Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

mplayer wrapper providing per-file options & keybinding

Project Description

So, what does this do?

automp allows you to automatically append options or use different keybinding depending on the file you’re playing. This is great if you want to skip the intro at the beginning (by providing an -ss xx:xx option) without doing anything or skipping something with a known length in the middle of the file at the press of a button(by providing a key=seek xx.xx mapping) To use it, just type automp every time you want to start mplayer instead of mplayer or use an alias.

The config file (which can be found in $XDG_CONFIG_HOME/mplayer-autocmd-config) is a file that’s parsed by Pythons configparser module, for a description of the terminology and it’s possibilities look at the documentation.

The section name is used as a “profile name”, it has no special meaning except for showing you which profile has been chosen.

There are only three supported options (or keys):

An application to call after the file has been played. If the application needs any arguments, separate them with commas from each other and the applications name.
A string containg the arguments to pass to mplayer for this profile.
A regular expression that has to match the filename using Pythons function in order for the other stuff in the section to be applied.
If this is a True value according to the documentation for getboolean the file will be removed after it has been played.

Every other option is treated as a key (like on your keyboard) with the value being the command the key is bound to. For a list of all possible keys, use mplayer –input=keylist. For a list of all possible commands, use mplayer –input=cmdlist.

An example config file called example.config is part of the git repository.

Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mplayer-autocmd-4.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Aug 26, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting