Skip to main content

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 two supported options (or keys):

regex

A regular expression that has to match the filename using Pythons re.search function in order for the other stuff in the section to be applied.

options

A string containg the arguments to pass to mplayer for this profile.

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.

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

mplayer-autocmd-1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file mplayer-autocmd-1.tar.gz.

File metadata

File hashes

Hashes for mplayer-autocmd-1.tar.gz
Algorithm Hash digest
SHA256 41e978e629fe9bb891949fce60aec157850b1992f8bd922bbf42c8be8fbf4740
MD5 2c0aba9212227b75659a151cf068ccfb
BLAKE2b-256 b8d9ac08d660147dabf629e67755b4ba0df6f37213273bb17c37197585dc2d2a

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