This repository has been archived by the owner on Jul 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
82 lines (55 loc) · 3.03 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
DEPRECATION NOTICE:
This repo hasn't gotten any love in a long, long time. You might be interested in trying andreasvc/cplay or xi/cplay-ng
Description:
cplay 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 is written in Python and can use
either pyncurses or the standard curses module.
Requirements:
- python http://www.python.org/
- pyalsaaudio (optional) http://pyalsaaudio.sourceforge.net/
For Alsa mixer support
- mutagen (optional) http://code.google.com/p/mutagen/
For metadata support (IDv3 etc.)
- magic (optional) http://www.darwinsys.com/file/
For better filetype recognition
For playback either install mplayer (recommended): http://www.mplayerhq.hu/
or one or more of the following players:
- mpg321 http://sourceforge.net/projects/mpg321/
- ogg123 http://www.vorbis.com/
- mpg123 http://www.mpg123.org/
- splay http://splay.sourceforge.net/
- madplay http://www.mars.org/home/rob/proj/mpeg/
- mikmod http://www.mikmod.org/
- xmp http://xmp.sf.net/
- sox http://sox.sf.net/
- speex http://www.speex.org/
Installation:
make install
Usage:
cplay [-d <filename>] [-n] [-r] -[R] [ file | dir | playlist ] ...
-d Enable debugging output to <filename>.
-n Start in restricted mode: No shell commands, changing directory,
goto, or saving playlists.
-r Start in repeat mode.
-R Start in random mode.
When in doubt, press 'h' for a friendly help page.
Configuration:
If you would like to change options passed to the actual players
just edit the PLAYERS list in the cplay script or put the PLAYERS
definition in either ~/.cplayrc or /etc/cplayrc. If one of these
files is available, it is executed by cplay before initialization.
Macros are defined using the MACRO dictionary, where the key is
a key and the value is a string of cplay 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, 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.