3 abcde \- Grab an entire CD and compress it to Ogg/Vorbis, MP3, FLAC, Ogg/Speex and/or MPP/MP+(Musepack) format.
8 Ordinarily, the process of grabbing the data off a CD and encoding it, then
9 tagging or commenting it, is very involved.
11 is designed to automate this. It will take an entire CD and convert it into
12 a compressed audio format - Ogg/Vorbis, MPEG Audio Layer III, Free Lossless
13 Audio Codec (FLAC), Ogg/Speex or MPP/MP+(Musepack). With one command, it will:
16 Do a CDDB query over the Internet to look up your CD or use a locally stored CDDB entry
19 Grab a track from your CD
22 Compress it to Ogg/Vorbis, MP3, FLAC, Ogg/Speex and/or MPP/MP+(Musepack) format
28 Give it an intelligible filename
31 Delete the intermediate WAV file (or save it for later use)
38 Encode the whole CD in a single file. The resulting file uses the CD title
42 Comma-delimited list of actions to perform. Can be one or more of:
43 cddb, read, normalize, encode, tag, move, playlist, clean. Normalize
44 and encode imply read. Tag implies cddb, read, encode. Move implies
45 cddb, read, encode, tag. Playlist implies cddb. The default is to
46 do all actions except normalize and playlist.
49 Enable batch mode normalization. See the BATCH configuration variable.
52 Specifies an additional configuration file to parse. Configuration options
53 in this file override those in /etc/abcde.conf or $HOME/.abcde.conf.
56 Allows you to resume a session for
58 when you no longer have the CD available (abcde will automatically resume if
59 you still have the CD in the drive). You must have already finished at
60 least the "read" action during the previous session.
63 CD\-ROM block device that contains audio tracks to be read.
66 Capture debugging information (you'll want to redirect this \- try 'abcde \-D
70 Start [number] encoder processes at once. Useful for SMP systems. Overrides
71 the MAXPROCS configuration variable. Set it to "0" when using distmp3 to avoid
72 local encoding processes.
75 Keep the wav files after encoding.
78 Use the low-diskspace algorithm. See the LOWDISK configuration variable.
81 Use a local CDDB repository. See CDDBLOCALDIR variable.
84 Do not query CDDB database. Create and use a template. Edit the template to
85 provide song names, artist(s), ...
88 Non interactive mode. Do not ask anything from the user. Just go ahead.
91 Create DOS-style playlists, modifying the resulting one by adding CRLF line
92 endings. Some hardware players insist on having those to work.
95 Select output type. Can be "ogg", "mp3", "flac", "spx" or "mpc". Specify a
96 comma-delimited list of output types to obtain all specified types. See
97 the OUTPUTTYPE configuration variable.
100 Pads track numbers with 0\'s.
103 Remote encode on this comma-delimited list of machines using distmp3. See
104 the REMOTEHOSTS configuration variable.
107 Start the numbering of the tracks at a given number. It only affects the
108 filenames and the playlist. Internal (tag) numbering remains the same.
111 Set the speed of the CD drive. Needs CDSPEED and CDSPEEDOPTS set properly
112 and both the program and device must support the capability.
115 Show the version and exit
118 Be a bit more verbose. On slow networks the CDDB requests might give the
119 sensation nothins is happening.
122 Eject the CD when all tracks have been read. See the EJECTCD configuration
126 Get help information.
129 A list of tracks you want abcde to process. If this isn't specified, abcde
130 will process the entire CD. Accepts ranges of track numbers -
131 "abcde 1-5 7 9" will process tracks 1, 2, 3, 4, 5, 7, and 9.
133 Each track is, by default, placed in a separate file named after the track
134 in a subdirectory named after the artist under the current directory.
135 This can be modified using the OUTPUTFORMAT and VAOUTPUTFORMAT
136 variables in your abcde.conf. Each file is given an extension identifying
137 its compression format, '.ogg', '.mp3', '.flac', '.spx', or '.mpc'.
139 abcde sources two configuration files on startup - /etc/abcde.conf and
140 $HOME/.abcde.conf, in that order.
142 The configuration variables have to be set as follows:
145 Except when "value" needs to be quoted or otherwise interpreted. If other
146 variables within "value" are to be expanded upon reading the configuration
147 file, then double quotes should be used. If they are only supposed to be
148 expanded upon use (for example OUTPUTFORMAT) then single quotes must be used.
150 All sh escaping/quoting rules apply.
152 Here is a list of options abcde recognizes:
155 Specifies a server to use for CDDB lookups.
158 Specifies the style of encoder to use for the Ogg/Vorbis encoder. Valid options
159 are \'oggenc\' (default for Ogg/Vorbis) and \'vorbize\'.
160 This affects the default location of the binary,
161 the variable to pick encoder command-line options from, and where the options
165 Specifies the style of encoder to use for the MP3 encoder. Valid options are
166 \'lame\' (default for MP3), \'gogo\', \'bladeenc\', \'l3enc\' and \'mp3enc\'.
167 Affects the same way as explained above for Ogg/Vorbis.
170 Specifies the style of encoder to use for the FLAC encoder. At this point only
171 \'flac\' is available for FLAC encoding.
173 .B SPEEXENCODERSYNTAX
174 Specifies the style of encoder to use for Speex encoder. At this point only
175 \'speexenc\' is available for Ogg/Speex encoding.
178 Specifies the style of encoder to use for MPP/MP+ (Musepack) encoder. At this
179 point we only have \'mppenc\' available, from corecodecs.org.
182 Specifies the style of normalizer to use. Valid options are \'default\'
183 and \'normalize'\ (and both run \'normalize-audio\'), since we only support it, ATM.
186 Specifies the Hello information to send to the CDDB server. The CDDB
187 protocol requires you to send a valid username and hostname each time you
188 connect. The format of this is username@hostname.
191 Specifies a directory where we store a local CDDB repository. The entries must
192 be standard CDDB entries, with the filename being the DISCID value. Other
193 CD playing and ripping programs (like Grip) store the entries under ~/.cddb
194 and we can make use of those entries.
197 Store local copies of the CDDB entries under the $CDDBLOCALDIR directory.
200 Actually use the stored copies of the CDDB entries. Can be overriden using the
201 "-L" flag (if is CDDBUSELOCAL in "n"). If an entry is found, we always give
202 the choice of retrieving a CDDB entry from the internet.
205 Specifies the directory to place completed tracks/playlists in.
208 Specifies the temporary directory to store .wav files in. Abcde may use up
209 to 700MB of temporary space for each session (although it is rare to use
210 over 100MB for a machine that can encode music as fast as it can read it).
213 Specifies the format for completed Ogg/Vorbis, MP3, FLAC, Ogg/Speex or MPP/MP+
214 (Musepack) filenames.
215 Variables are included
216 using standard shell syntax. Allowed variables are GENRE, ALBUMFILE, ARTISTFILE,
217 TRACKFILE, TRACKNUM, and YEAR. Default is
218 \'${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}-${TRACKFILE}\'.
219 Make sure to use single quotes around this variable. TRACKNUM is
220 automatically zero-padded, when the number of encoded tracks is higher than
221 9. When lower, you can force with '-p' in the command line.
224 Specifies the encoding format to output, as well as the default extension and
225 encoder. Defaults to "ogg". Valid settings are "ogg" (Ogg/Vorbis), "mp3"
226 (MPEG-1 Audio Layer III), "flac" (Free Lossless Audio Codec), "spx" (Ogg/Speex)
227 and "mpc" (MPP/MP+ (Musepack)). Values like "ogg,mp3" encode the tracks in
228 both Ogg/Vorbis and MP3 formats.
230 For each value in OUTPUTTYPE, abcde expands a different process for encoding,
231 tagging and moving, so you can use the format placeholder, OUTPUT, to create
232 different subdirectories to hold the different types. The variable OUTPUT will
233 be 'ogg', 'mp3', 'flac', 'spx' and/or 'mpc', depending on the OUTPUTTYPE you define.
236 OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}._${TRACKFILE}'
239 Just like OUTPUTFORMAT but for Various Artists discs. Default is whatever
240 OUTPUTFORMAT is set to.
243 The following configuration file options specify the pathnames of their
244 respective utilities: LAME, GOGO, BLADEENC, L3ENC, XINGMP3ENC, MP3ENC,
245 VORBIZE, OGGENC, FLAC, SPEECENC, MPPENC, ID3, ID3V2, CDPARANOIA, CDDA2WAV,
246 HTTPGET, CDDISCID, CDDBTOOL, EJECT, NORMALIZE, DISTMP3, VORBISCOMMENT, and
249 .B COMMAND-LINE OPTIONS
250 If you wish to specify command-line options to any of the programs abcde
251 uses, set the following configuration file options: LAMEOPTS, GOGOOPTS,
252 BLADEENCOPTS, L3ENCOPTS, XINGMP3ENCOPTS, MP3ENCOPTS, VORBIZEOPTS,
253 OGGENCOPTS, FLACOPTS, SPEEXENCOPTS, MPPENCOPTS, ID3OPTS, ID3V2OPTS,
254 CDPARANOIAOPTS, CDDA2WAVOPTS, HTTPGETOPTS, CDDBTOOLOPTS, EJECTOPTS,
255 DISTMP3OPTS, NORMALIZEOPTS, CDSPEEDOPTS, and CDSPEEDVALUE.
258 If set, it points to the CD-Rom device which has to be used for audio
259 extraction. Abcde tries to guess the right device, but it may fail.
262 Defines how many encoders to run at once. This makes for huge speedups
263 on SMP systems. You should run one encoder per CPU at once for maximum
264 efficiency, although more doesn't hurt very much. Set it "0" when using
265 mp3dist to avoid getting encoding processes in the local host.
268 If set to y, conserves disk space by encoding tracks immediately after
269 reading them. This is substantially slower than normal operation but
270 requires several hundred MB less space to complete the encoding of an
271 entire CD. Use only if your system is low on space and cannot encode as
272 quickly as it can read.
275 If set to y, enables batch mode normalization, which preserves relative
276 volume differences between tracks of an album. Also enables nogap encoding
277 when using the \'lame\' encoder.
280 It defaults to no, so if you want to keep those wavs ripped from your CD,
281 set it to "y". You can use the "-k" switch in the command line. The default
282 behaviour with KEEPWAVS set is the keep the temporary directory and the wav
283 files even you have requested the "clean" action.
286 If set to "y", it adds 0's to the file numbers to complete a two-number
287 holder. Usefull when encoding tracks 1-9.
290 Specifies the format for completed playlist filenames. Works like the
291 OUTPUTFORMAT configuration variable. Default is
292 \'${ARTISTFILE}_\-_${ALBUMFILE}.m3u\'.
293 Make sure to use single quotes around this variable.
295 .B PLAYLISTDATAPREFIX
296 Specifies a prefix for filenames within a playlist. Useful for http
300 If set, the resulting playlist will have CR-LF line endings, needed by some
301 hardware-based players.
304 Specifies a comment to embed in the ID3 or Ogg comment field of each
305 finished track. Can be up to 28 characters long. Supports the same
306 syntax as OUTPUTFORMAT. Does not currently support ID3v2.
309 Specifies a comma-delimited list of systems to use for remote encoding using
310 distmp3. Equivalent to -r.
313 mungefilename() is an abcde shell function that can be overridden via
314 abcde.conf. It takes CDDB data as $1 and outputs the resulting filename on
315 stdout. It defaults to eating control characters, apostrophes and
316 question marks, translating spaces and forward slashes to underscores, and
317 translating colons to an underscore and a hyphen.
319 If you modify this function, it is probably a good idea to keep the forward
320 slash munging (UNIX cannot store a file with a '/' char in it) as well as
321 the control character munging (NULs can't be in a filename either, and
322 newlines and such in filenames are typically not desirable).
325 mungegenre () is a shell function used to modify the $GENRE variable. As
326 a default action, it takes $GENRE as $1 and outputs the resulting value
327 to stdout converting all UPPERCASE characters to lowercase.
330 pre_read () is a shell function which is executed before the CDROM is read
331 for the first time, during abcde execution. It can be used to close the CDROM
332 tray, to set its speed (via "setcd" or via "eject", if available) and other
333 preparation actions. The default function is empty.
336 If set to "y", abcde will call eject(1) to eject the cdrom from the drive
337 after all tracks have been read.
339 abcde requires the following backend tools to work:
342 An Ogg/Vorbis, MP3, FLAC, Ogg/Speex or MPP/MP+(Musepack) encoder (oggenc, vorbize, lame, gogo, bladeenc, l3enc, mp3enc, flac, speexenc, mppenc)
345 An audio CD reading utility (cdparanoia, cdda2wav, dagrab)
348 cd-discid, a CDDB DiscID reading program.
351 An HTTP retrieval program: wget, fetch (FreeBSD) or curl (Mac OS X, among others).
354 (for MP3s) id3 or id3v2, id3 v1 and v2 tagging programs.
357 (optional) distmp3, a client/server for distributed mp3 encoding.
360 (optional) normalize, a WAV file volume normalizer.
365 .BR normalize-audio (1),
379 Robert Woodcock <rcw@debian.org>
380 Jesus Climent <jesus.climent@hispalinux.es>