A curses front-end for various audio players
Project description
Description
cplay-ng is a curses front-end for various audio players. It aims to provide a power-user-friendly interface with simple filelist and playlist control. cplay-ng is written in Python and can use either pyncurses or the standard curses module.
The original cplay is no longer maintained. This fork aims to maintaining the original code as well as keeping it up to date with recent developments (e.g. python3) and adding new features.
Requirements
pyalsaaudio (optional) For Alsa mixer support
python-oss (optional) For OSS mixer support
mutagen (optional) For metadata support (IDv3 etc.)
python-magic (optional) For better filetype recognition
For playback either install mplayer, gst123 or one or more of the following players:
Installation
pip install cplay-ng
Usage
cplay-ng [ file | dir | playlist ] ...
For a full list of command line options, see cplay-ng --help. When in doubt about runtime controls, press ‘h’ for a friendly help page.
Apart from cplay-ng, this distribution also includes the program cnq-ng to remote-control a running cplay-ng.
Configuration
If you would like to change options passed to the actual players just edit the PLAYERS list in the cplay-ng script or put the PLAYERS definition in either ~/.cplayrc or /etc/cplayrc. If one of these files is available, it is executed by cplay-ng before initialization.
Macros are defined using the MACRO dictionary, where the key is a key and the value is a string of cplay-ng input. For example, the following would make ,d delete tagged (or current) files:
MACRO['d'] = '!rm "$@"\n'
Note, there is currently no version control for the rc-file!
Miscellaneous
A playlist can contain URLs, but the playlist itself will have to be local. For mpeg streaming, splay is recommended.
It is also possible to pipe a playlist to cplay-ng, as stdin will be reopened on startup unless it is attached to a tty.
Remote control is available via /var/tmp/cplay\_control-$USER. Create this with mkfifo and see lircrc for examples.
The shell command gets the full path of either all tagged items or the current item as positional arguments.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cplay-ng-2.0.2.tar.gz
.
File metadata
- Download URL: cplay-ng-2.0.2.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd8c68f27a845f589ea02881582fccaca4ba0db7b233f953b34d82387914ad4e |
|
MD5 | 30af7b1b668bb8e3bb226b9d9fb62274 |
|
BLAKE2b-256 | 0017d2c5b7ac3a580f61623954fd88df7a10daf45bea424da5b90824b671cbbf |