Skip to main content

A curses front-end for various audio players

Project description

Description

cplay-ng is a curses front-end for various audio players written in python. It aims to provide a power-user-friendly interface with simple filelist and playlist control.

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

  • python

  • pyalsaaudio (optional) For Alsa mixer support

  • python-oss (optional) For OSS mixer support

  • pulseaudio-utils, specifically the pactl command (optional) For PulseAudio mixer support

  • mutagen (optional) For metadata support (IDv3 etc.)

For playback, install 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 BACKENDS list in the cplay-ng script or put the BACKENDS 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.

The shell command gets the full path of either all tagged items or the current item as positional arguments.

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

cplay-ng-2.4.1.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cplay_ng-2.4.1-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file cplay-ng-2.4.1.tar.gz.

File metadata

  • Download URL: cplay-ng-2.4.1.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cplay-ng-2.4.1.tar.gz
Algorithm Hash digest
SHA256 a88ba2fc20bd053a0b5ccc29fcad5936d55170e40ccbfdf4b9f0d4a17e3829ba
MD5 e4b4d214f8cb9fc51c30738c28c96806
BLAKE2b-256 54729ba750d09282c4c24616919cffab77b4de1160c8a8e14612af27aa9573ff

See more details on using hashes here.

File details

Details for the file cplay_ng-2.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cplay_ng-2.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2cf204121ceb7754fcfbc3cf69eba8bfd8617c662eba8756b35f8aa00426cbf
MD5 b850d0aba174fd29e4b80a6caf0cd39d
BLAKE2b-256 9ad4100f98765218d99a6ce9005c5fe44b42782551bb83e338c4cfa983fe5cc0

See more details on using hashes here.

Supported by

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