File: abcde.1

package info (click to toggle)
abcde 2.0.3-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 176 kB
  • ctags: 26
  • sloc: sh: 1,131; makefile: 61
file content (227 lines) | stat: -rw-r--r-- 7,810 bytes parent folder | download
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
.TH ABCDE 1
.SH NAME
abcde \- Grab an entire CD and compress it to Ogg or MP3 format.
.SH SYNOPSIS
.B abcde
.I [options] [tracks]
.SH DESCRIPTION
Ordinarily, the process of grabbing the data off a CD and encoding it, then
tagging or commenting it, is very involved.
.BR abcde
is designed to automate this. It will take an entire CD and convert it into
a compressed audio format - Ogg Vorbis or MPEG Audio Layer III. With one
command, it will:
.TP
.B *
Do a CDDB query over the Internet to look up your CD
.TP
.B *
Grab a track from your CD
.TP
.B *
Compress it to Ogg or MP3 format
.TP
.B *
Comment or ID3 tag it
.TP
.B *
Give it an intelligible filename
.TP
.B *
Delete the intermediate WAV file
.TP
.B *
Repeat until finished
.SH OPTIONS
.TP
.B \-a [actions]
Comma-delimited list of actions to perform. Can be one or more of:
cddb, read, encode, tag, move, playlist, clean. Encode implies read. Tag implies
cddb, read, encode. Move implies cddb, read, encode, tag. Playlist implies
cddb. The default is to do all actions except playlist.
.TP
.B \-c [filename]
Specifies an additional configuration file to parse. Configuration options
in this file override those in /etc/abcde.conf or $HOME/.abcde.conf.
.TP
.B \-C [discid]
Allows you to resume a session for
.I discid
when you no longer have the CD available (abcde will automatically resume if
you still have the CD in the drive). You must have already finished at
least the "read" action during the previous session.
.TP
.B \-d [devicename]
CD\-ROM block device that contains audio tracks to be read.
.TP
.B \-D
Capture debugging information (you'll want to redirect this \- try 'abcde \-D
2>logfile')
.TP
.B \-j [number]
Start [number] encoder processes at once. Useful for SMP systems. Overrides
the MAXPROCS configuration variable.
.TP
.B \-l
Use the low-diskspace algorithm. See the LOWDISK configuration variable.
.TP
.B \-o [filetype]
Select output type. Can be either "ogg" or "mp3". See the OUTPUTTYPE
configuration variable.
.TP
.B \-r [hosts...]
Remote encode on this comma-delimited list of machines using distmp3. See
the REMOTEHOSTS configuration variable.
.TP
.B \-x
Eject the CD when all tracks have been read. See the EJECTCD configuration
variable.
.TP
.B \-h
Get help information.
.TP
.B [tracks]
A list of tracks you want abcde to process. If this isn't specified, abcde
will process the entire CD. Accepts ranges of track numbers -
"abcde 1-5 7 9" will process tracks 1, 2, 3, 4, 5, 7, and 9.
.SH OUTPUT
Each track is, by default, placed in a separate file named after the track
in a subdirectory named after the artist under the current directory. Each
file is given an extension identifying its compression format, '.ogg'
or '.mp3'. This can be modified using the OUTPUTFORMAT and VAOUTPUTFORMAT
variables in your abcde.conf.
.SH CONFIGURATION
abcde sources two configuration files on startup - /etc/abcde.conf and
$HOME/.abcde.conf, in that order. Here is a list of options abcde recognizes:
.TP
.B CDDBURL
Specifies a server to use for CDDB lookups.
.TP
.B ENCODERSYNTAX
Specifies the style of encoder to use. Valid options are \'oggenc\' (default
for Ogg Vorbis), \'vorbize\', \'lame\' (default for MP3), \'gogo\', \'bladeenc\',
\'l3enc\', and \'mp3enc\'. This affects the default location of the binary,
the variable to pick encoder command-line options from, and where the options
are given.
.TP
.B HELLOINFO
Specifies the Hello information to send to the CDDB server. The CDDB
protocol requires you to send a valid username and hostname each time you
connect. The format of this is username@hostname.
.TP
.B OUTPUTDIR
Specifies the directory to place completed tracks/playlists in.
.TP
.B WAVOUTPUTDIR
Specifies the temporary directory to store .wav files in. Abcde may use up
to 700MB of temporary space for each session (although it is rare to use
over 100MB for a machine that can encode music as fast as it can read it).
.TP
.B OUTPUTFORMAT
Specifies the format for completed Ogg or MP3 filenames. Variables are included
using standard shell syntax. Allowed variables are ALBUMFILE, ARTISTFILE,
TRACKFILE, and TRACKNUM. Default is
\'${ARTISTFILE}/${TRACKFILE}.${OUTPUTTYPE}\'.
Make sure to use single quotes around this variable. TRACKNUM is
automatically zero-padded.
.TP
.B OUTPUTTYPE
Specifies the encoding format to output as well as the default extension and
encoder. Defaults to "ogg". Valid settings are "ogg" (Ogg Vorbis) and "mp3"
(MPEG-1 Audio Layer 3).
.TP
.B VAOUTPUTFORMAT
Just like OUTPUTFORMAT but for Various Artists discs. Default is whatever
OUTPUTFORMAT is set to.
.TP
.B PATHNAMES
The following configuration file options specify the pathnames of their
respective utilities: LAME, GOGO, BLADEENC, L3ENC, XINGMP3ENC, MP3ENC,
VORBIZE, OGGENC, ID3, ID3V2, CDPARANOIA, CDDA2WAV, WGET, CDDISCID,
CDDBTOOL, EJECT, DISTMP3, and VORBISCOMMENT.
.TP
.B COMMAND-LINE OPTIONS
If you wish to specify command-line options to any of the programs abcde
uses, set the following configuration file options: LAMEOPTS, GOGOOPTS,
BLADEENCOPTS, L3ENCOPTS, XINGMP3ENCOPTS, MP3ENCOPTS, VORBIZEOPTS,
OGGENCOPTS, ID3OPTS, ID3V2OPTS, CDPARANOIAOPTS, CDDA2WAVOPTS, WGETOPTS,
CDDBTOOLOPTS, EJECTOPTS, and DISTMP3OPTS.
.TP
.B MAXPROCS
Defines how many encoders to run at once. This makes for huge speedups
on SMP systems. You should run one encoder per CPU at once for maximum
efficiency, although more doesn't hurt very much.
.TP
.B LOWDISK
If set to y, conserves disk space by encoding tracks immediately after
reading them. This is substantially slower than normal operation but
requires several hundred MB less space to complete the encoding of an
entire CD. Use only if your system is low on space and cannot encode as
quickly as it can read.
.TP
.B PLAYLISTFORMAT
Specifies the format for completed playlist filenames. Works like the
OUTPUTFORMAT configuration variable. Default is
\'${ARTISTFILE}_\-_${ALBUMFILE}.m3u\'.
Make sure to use single quotes around this variable.
.TP
.B PLAYLISTDATAPREFIX
Specifies a prefix for filenames within a playlist. Useful for http
playlists, etc.
.TP
.B COMMENT
Specifies a comment to embed in the ID3 or Ogg comment field of each
finished track. Can be up to 28 characters long. Supports the same
syntax as OUTPUTFORMAT. Does not currently support ID3v2.
.TP
.B REMOTEHOSTS
Specifies a comma-delimited list of systems to use for remote encoding using
distmp3. Equivalent to -r.
.TP
.B mungefilename
mungefilename() is an abcde shell function that can be overridden via
abcde.conf. It takes CDDB data as $1 and outputs the resulting filename on
stdout. It defaults to eating control characters, apostrophes and
question marks, translating spaces and forward slashes to underscores, and
translating colons to an underscore and a hyphen.
.br
If you modify this function, it is probably a good idea to keep the forward
slash munging (UNIX cannot store a file with a '/' char in it) as well as
the control character munging (NULs can't be in a filename either, and
newlines and such in filenames are typically not desirable).
.TP
.B EJECTCD
If set to "y", abcde will call eject(1) to eject the cdrom from the drive
after all tracks have been read.
.SH BACKEND TOOLS
abcde requires the following backend tools to work:
.TP
.B *
An Ogg or MP3 Encoder (oggenc, vorbize, lame, gogo, bladeenc, l3enc, mp3enc)
.TP
.B *
An audio CD reading utility (cdparanoia, cdda2wav)
.TP
.B *
cd-discid, a CDDB DiscID reading program.
.TP
.B *
wget, an HTTP retrieval program.
.TP
.B *
(for MP3s) id3, an id3 tagging program.
.TP
.B *
(optional) distmp3, a client/server for distributed mp3 encoding.
.SH "SEE ALSO"
.BR cdparanoia (1),
.BR cdda2wav (1),
.BR oggenc (1),
.BR vorbize (1),
.BR id3 (1),
.BR wget (1),
.BR cd-discid (1),
.BR distmp3 (1),
.BR distmp3host (1)
.SH AUTHOR
Robert Woodcock <rcw@debian.org>