4 Q. Who created abcde? Who develops it nowadays?
5 A. It was originally created by Robert Woodcook. He decided to give up
6 maintaining it at some point in 2002 and Jesus Climent took over. In 2012,
7 Colin Tuckley and Steve McIntyre joined in to help. During 2015-2016 Andrew
8 Strong helped out. Currently Steve maintains abcde. Contact Steve with
9 comments or suggestions at the following email address:
10 Steve McIntyre <93sam@@debian.org>
16 Q. How can I install abcde on my system?
17 A. To get abcde you can use a pre-packaged version, available for Debian,
18 FreeBSD, OpenBSD, NetBSD and others.
19 In case you want to install your own release, you need to download the
20 source and install the complementary programs (abcde is just a frontend
21 and its functionality is provided by other programs).
23 abcde needs cd-discid. Grab it from:
24 http://www.hispalinux.es/~data/files/cd-discid/
26 Read the README files for a complete list of requirements.
28 Q. I have a problem, and I reported some time ago. Have you solved it already?
29 A. Maybe. Try downloading the master branch of the development from
30 https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git
32 Q. When are you going to release a new version?
33 A. When it is ready. :-) We keep on adding new ideas to the trunk
34 (stored in the URL above) and release periodically when we think
41 Q. I want to force abcde 2.x to behave more like 1.x. How do I do it?
42 A. Put these options in your abcde.conf:
49 A. abcde has different algorithms to schedule ripping and encoding - to
50 optimize for disk conservation, use -l. You can also define
51 WAVOUTPUTDIR=/some/other/path to your /etc/abcde.conf or ~/.abcde.conf to
52 store the WAV files on another NFS shared fisk, for example.
53 Also, UNIX pipes have also been implemented, using "-P", so abcde reads and
54 encodes the tracks from the CD at once. However, it has the drawback that
55 only one format can be encoded at a time.
57 Q. How can i make abcde encode faster? My CD reader is way faster than the pace
58 it can encode my tracks.
59 A. abcde can take advantage of SMP systems, just like make. Try 'abcde -j 2' -
60 it'll run two encoder jobs while it rips the next track.
61 You can also make use of systems which are networked, with the help of
62 distmp3. For example, MachineA has a better CPU power and MachineB has a CD
63 drive. Run distmp3host (included in distmp3) on Machine A, and then run
64 abcde -r MachineA from MachineB (where "MachineA" is a dns name or IP
65 address). Use this in combination with '-j 0' to shift all encoding off the
68 Q. I am having problems with *my CD reading program* reading the drive as a
70 A. You might have to add yourself (or the users who want to use abcde) to the
71 cdrom group and change the permissions of the cdrom device to 660. If you
72 have a SCSI cdrom drive, check the permissions of /dev/sg* as well.
74 Q. I would like to give the trackname and the artist_name directly to the
75 encoder (in my case oggenc), but found no documentation.
76 A. That is not possible, since abcde gets the information from CDDB database.
77 You can create a template and fill it with the option "-n". Also, you can
78 get the CDDB entry and edit it yourself. abcde has also an option to drop
79 back to a template if you like none of the CDDB entries, selecting 0 from
82 Q. (Thanks to Amaya) Where are those options and settings defined? Why dont
83 you include a proper abcde.conf as an example?
84 A. We do. It should be installed under /etc/abcde.conf and contains more or
85 less all the defaults abcde uses. You can use $(HOME)/.abcde.conf to
86 override those defaults. More information can be obtained from the man page
87 which can be consulted using "man abcde".
89 Q. I keep on getting files with ".ogg.ogg" extension. What am I doing wrong?
90 A. The code for multiple-output adds automatically the extension of the
91 different outputs you select with the "-o" extension (or with OUTPUTTYPE
92 variable). Erase the ".${OUTPUTTYPE}" part from the OUTPUTFORMAT variable
93 in /etc/abcde.conf or ~/.abcde.conf
95 Q. I have modified some of the options, and now CDDB has stopped working.
96 A. Check that you have modified everything in the right way. For instance, if
97 you modify the HTTPGET program you might want to set some options of your
98 own. If you use the predefined ones (wget, curl and fetch) abcde will try
99 to use some defaults. Keep in mind that the output should go to the output
100 as standard output, to be saved in a file for later use.
102 If abcde seems to be ignoring your configuration options or not running
103 commands such as the encoder, you may have misquoted something. Config
104 options such as the following do not work:
112 Q. How can I separate the different output files I get using multiple-output
114 A. Use the OUTPUT variable in PLAYLISTFORMAT and OUTPUTFORMAT. It holds the
115 different output file types you passed to abcde (i.e., ogg, mp3, flac)
116 during playlist creation and file/directory creation.
118 Q. I have a CD with a data track, and abcde complaints it cannot read/encode
120 A. From version 2.2 onwards, abcde includes some checkings with cdparanoia, to
121 try to get this right.
122 (It is not easy to find a data track on a CD. If you find a "data"
123 track and you know the number, restart abcde specifying the tracks
124 to be encoded, leaving out the data one).
126 Q. I am requested to have "eject" when setting the speed although I do not use
128 A. If you do not use cdparanoia, eject is used for setting the speed of the
129 cdrom drive. You can substitute it for "setcd" with "-x" as the argument,
130 but you have to install it manually (setcd is, at least, available in
132 Another way to get the same results is using the pre_read function, defined
133 in your /etc/abcde.conf file.
135 Q. I have a CD set with 1+ discs, and want to have them in the same directory,
136 sorted properly. What can abcde do for me?
137 A. Set abcde to rip the first CD and give it the option "-t 101". Use a generic
138 name for the CD, and reuse it with the rest of the CDs, editing the CDDB
139 entries. Use "-t 201" for the second CD and so on. Use "-w <comment>" to
140 add a comment about the CD you are ripping (-w "disc #"). Alternatively you
141 can use only the "-t ###" option and then move all the files to the same
142 directory, but the tag/comment information on the files will differ. If you
143 want the tagged track number to be set to the modified number you should use
145 Even better! If you use "-W <cd_number>", abcde will put a comment to every
146 CD set ("CD <number>") and modify the number of the tracks both in the file
147 name and the tag/comment information.
149 Q. I have a live concert. I want to encode it in a single file. How do i do it?
150 A. Use "-1" and it will be encoded in a single file. Use "cue" as an action to
151 make a CUE sheet file where the information about the tracks is stored.
153 Q. Can I use abcde to take a backup of my CD collection?
154 A. Yes. Use "abcde -1 -o flac -a default,cue" and it will create a single-track
155 FLAC file with an embedded cuesheet. Later on, you can use the command
156 "abcde -o vorbis -d flac-file.flac" to extract the individual tracks in
157 Ogg/Vorbis format. Of course you can select whatever format you want.
160 3. CDDB and Musicbrainz
163 Q. I need to go through an HTTP proxy for CDDB access.
164 A. No problem, just export your http_proxy variable first so wget/fetch/curl
167 Q. I already store CDDB entries in my hard disc. Can I make use of them?
168 A. Piece of cake. Just edit CDDBLOCALDIR to point to the repository and give
169 abcde the "-L" flag to make use of it.
171 Q. Fine, now it uses local CDDB, but I have no network connection. How can I
173 A. Use the "-L -n" combination. It will try to use local CDDB entries, and if
174 nothing can be found, it will use a template. You will be also given the
175 choice to edit such template.
177 Q. How can I use some other CDDB information provider?
178 A. abcde now uses FreeDB by default. To use a different FreeDB mirror or
179 another CDDB service, change the CDDBURL option in your abcde.conf.
181 Q. After requesting CDDB data, I received several answers which seem to be
182 quite alike. Can I find out the difference between some of them?
183 A. Yes. When asked which one you want to select, use "X,Y" where X and Y are
184 the numbers of the selections you want to find the difference between.
186 Q. I get stuck at the screen with multiple CDDB results. How do I exit this
187 screen so I can make my final selection?
188 A. abcde tries to use the system's default pager to display these results
189 and thus the actual application used and the method to exit from this
190 application may vary from system to system.
191 Many systems will be using the applications 'more' or 'less' as their
192 pager and the common key to exit this screen is the letter 'q'. If this
193 does not work on your system you should investigate what your system's
194 default pager application is and from there learn the correct method of
197 Q. I don't like CDDB/FreeDB. How can I use Musicbrainz instead?
198 A. Set CDDBMETHOD=musicbrainz and try it!
201 4. abcde and Album Art
204 Q. Can abcde download album art?
205 A. As of abcde 2.7 it is possible to download a suitable cover
206 image from within abcde that can be used by applications such
207 as Audacious and vlc to illustrate playback with an album cover.
208 Many hardware playback devices such as iPODs will also use this
209 image during playback and show it on the device's display.
211 Q. How does album art downloading work?
212 A. The details are contained in abcde within a new function called
213 'getalbumart' which can be called either from the commandline or
214 from within an ~/.abcde.conf file. The technique works in 3 possible
217 1. If CDDBMETHOD is musicbrainz the album art is downloaded from
218 coverartarchive by MBID (MusicBrainz Identifier)
219 2. If 1 fails, download is tried from amazon by ASIN (Amazon
220 Standard Identification Number)
221 3. If if 1 and 2 fail or CDDBMETHOD is cddb the album art will
222 be downloaded using glyrc by artist + album title
224 You will need to install your distro's package of glyr, a music
225 related metadata search engine, and it is strongly advised that
226 you use 'musicbrainz' for your cddb lookups. To access the more
227 advanced features of getalbumart it is also strongly advised that
228 you install the ImageMagick package of your distro. getalbumart
229 will work without ImageMagick but functionality will be reduced.
231 Q. What settings and options should I select?
232 A. If you want to operate abcde from the commandline only you will
233 get reasonable results with something like either of the following:
235 abcde -o mp3:-V2 -a default,getalbumart
238 But to experience all of the options of getalbumart you should also
239 consider setting the following in your ~/.abcde.conf file:
241 #----------------------------------------------------------------#
242 CDDBMETHOD=musicbrainz # Use MusicBrainz for CDDB
243 ACTIONS=default,getalbumart # Select the album art action + default
245 # Give the path to the metadata search application glyrc. Add any
250 # Give the path to ImageMagick's 'identify' which is used to give a
251 # commandline summary of the album art and also assist in any conversions.
252 # Add any 'identify' options:
256 # Give the path to ImageMagick's 'display' which will show the album art.
257 # The options below are the abcde default, feel free to add your own:
259 DISPLAYCMDOPTS="-resize 512x512 -title abcde_album_art"
261 # Give the path to ImageMagick's 'convert' which is used to convert album
262 # art to the format specified in ALBUMARTTYPE. Add any 'convert' options:
265 # If you want to run CONVERTOPTS on all files (including those specified
266 # in ALBUMARTTYPE) set the following to "y":
267 ALBUMARTALWAYSCONVERT="n"
269 # By default the filename will be cover.jpg and the file format will
270 # be jpeg. 'convert' will automagically change other formats to jpeg:
271 ALBUMARTFILE="cover.jpg"
273 #----------------------------------------------------------------#
275 There are more hints concerning commandline options in the sample
276 abcde.conf file included with your abcde package. Good news is that
277 the existing defaults will work well without any extra adjustments :).
279 Q. Can I manually select album art?
280 A. If you have set INTERACTIVE=y (this is the default) then you will have
281 the opportunity to manually select the album art of your choice either
282 from online by typing in a URL or by typing in the path to a local file.
284 Q. What if I want my album art embedded?
285 A. As of abcde 2.8.2 it is possible to have the album art automatically
286 embedded in the mp3 container using eyeD3, embedded in the flac container
287 using metaflac, embedded in the m4a container using AtomicParsley,
288 embedded in the wv container using wvtag and embedded into an ogg
289 container using vorbiscomment.
291 There are 3 different ways to accomplish this:
293 1. Use the command line '-B' option (this will also call getalbumart)
294 2. Use the command line '-a embedalbumart' option to add to list of actions
295 3. Use 'embedalbumart' in the 'ACTIONS' list in ~/.abcde.conf
297 Adding newer containers for album art embedding should be fairly straightforward
298 and these will be added when the right combination of available abcde developer
299 time and abcde user interest occurs...
304 Q. What formats can I encode my music to?
305 A. As of version 2.8.2 abcde includes support for MP3, Ogg/Vorbis,
306 Ogg/Speex, Flac, MPP/MP+(Musepack), AAC, AIFF (Audio Interchange File Format),
307 Alac, WavPack, TTA (True Type Audio), APE (Monkey's Audio), Opus,
310 Q. I want the new *put the newest and coolest codec there* format to be
311 supported by abcde. Abcde is so cool but i want to encode also to this
313 A. Patches are welcome! ;)
314 No, seriously, if the format is usable, available for Linux and open
315 source/free software, it should be fairly easy to integrate. Support for
316 AAC (m4p) should be the next one to be introduced.
318 Q. I use Debian/RedHat/(put your Unix flavour here) and MP3 encoding is not
319 working. What am I doing wrong?
320 A. Since MP3 is considered non-free (you get it for free, but hardware players
321 and net broadcasters have to pay license fees), some release engineering
322 groups and release management teams have decided not to provide MP3 encoding
324 These distributions or operating systems have decided to use Ogg/Vorbis as
325 the default encoding format, since it contains no (known) patent claims
326 and they are (supposed to be) completely Free (released under a BSD-like
328 However, there is no strong (at the moment) hardware support, although
329 some groups and companies are strongly working on getting it, real soon
330 now. For that reason some people prefer to encode to MP3.
333 There are known brands already selling Ogg/Vorbis portable players: Rio,
334 iRiver, Neuros, iAudio,...
335 Go buy one and you have no more reasons to use MP3.
337 If you are among those individuals, you might need to add support for MP3
338 encoding to your system:
339 Debian : check http://ftp.nerim.net/debian-marillat to install lame in your
340 system. Others prefer bladeenc. Check www.apt-get.org or google.
341 RedHat : search on rpmfind.net
342 FreeBSD: By default includes LAME support.
343 OpenBSD: Available by specifying you want to install the port with LAME
344 support, or by just installing it later from the ports tree.
345 NetBSD : Available in pkgsrc.
347 Others : Please, help us here.
349 Q. Huh! Why is MPPENCODER (with MPP) and .mpc the extension?
350 A. Dunno. You must ask the guys who created and defined the format. The
351 standard is MPEGplus (MPP/MP+) but the files use .mpc extension.
353 Q. Why do I get .aac files instead of .m4a files when I encode with faac?
354 A. Faac uses mp4v2 to create aac files in an m4a or mp4 container. Some
355 Linux distros have disabled this mp4v2 support due to a licensing issue
356 and this leave faac only capable of generating mpeg-2/ADTS streams.
357 These streams should correctly have the .aac file extension and some
358 players (such as Audacious) will not even play mpeg-2/ADTS streams when
359 they are placed in an .m4a container.
360 As of version 2.7 abcde tests the version of faac being used for mp4v2
361 support and then appropriately places the audio either in .m4a or .aac.
362 Note that tagging is not possible with mpeg-2/ADTS streams in .aac.
364 Q. How do I encode to Apple Lossless Audio Codec (alac)?
365 A. As of abcde 2.7.1 there are 3 ways to encode to alac: using qaac, refalac
366 or FFmpeg. To use qaac or refalac follow the installation directions here:
368 http://www.andrews-corner.org/qaac.html#installation
370 and then set your ~/.abcde.conf file as follows:
372 AACENCODERSYNTAX=qaac
373 QAAC="$HOME/.wine/drive_c/qaac/qaac.exe"
374 # Or use the Open Source alac encoder with this small hack:
375 # QAAC="$HOME/.wine/drive_c/qaac/refalac.exe"
376 QAACENCOPTS="--alac --threading --verbose"
379 To use FFmpeg (or avconv) set your ~/.abcde.conf file as follows:
381 AACENCODERSYNTAX=ffmpeg
383 # Or give the path to avconv instead:
385 FFMPEGENCOPTS="-c:a alac"
388 And then sit back and enjoy the music :)
390 Q. Will FFmpeg be used with abcde for any other audio formats?
391 A. The plan is to use FFmpeg (or avconv) when FFmpeg has a good quality native
392 encoder available. For example FFmpeg has a low quality native native encoder
393 for Vorbis and AAC which will not be used but a great reverse engineered alac
394 encoder that has been used in abcde. FFmpeg also has a good WavPack encoder
395 that has been added in abcde 2.7.1 which can be added into your ~/.abcde.conf
398 # WVENCODERSYNTAX=wavpack
399 WVENCODERSYNTAX=ffmpeg
403 # Appropriate options:
404 FFMPEGENCOPTS="-c:a wavpack -compression_level 6"
405 WAVPACKENCOPTS="-hx3"
406 # Correct output type:
409 You can see in this example how easy it is to switch from one WavPack encoder to
410 another by changing the comment mark '#' on the WVENCODERSYNTAX line. For mp2
411 encoding with FFmpeg try the following:
413 # MP2ENCODERSYNTAX=twolame
414 MP2ENCODERSYNTAX=ffmpeg
418 FFMPEGENCOPTS='-c:a mp2 -b:a 320k'
419 TWOLAMENCOPTS='--bitrate 320'
420 # Correct output type:
423 Currently FFmpeg supports: alac, wavpack,mp2 and AIFF. FFmpeg native aac support will
424 be added when it comes out of 'experimental'. FFmpeg is also used as the default
425 encoder for the Matroska or mka container. A typical example, using the FFmpeg
426 native ac3 encoder, is:
428 MKAENCODERSYNTAX=ffmpeg
430 FFMPEGENCOPTS="-c:a ac3 -b:a 448k"
433 Other suitable codecs for this usage are Vorbis, MP2, MP3, LC-AAC, HE-AAC, WMAv1,
434 WMAv2, eAC3 and Opus. There is much more to come in the future for abcde and FFmpeg!
440 Q. What is/are 'USEPIPES'??
441 A. This is a slightly different method of ripping and encoding with abcde
442 utilising Unix pipes. Using this method a program sends as output what
443 another programs expects as input without writing the information to the
444 hard disk. For it to work with abcde, a ripper must send the data of the
445 CD tracks which are ripped to the 'standard output', while sending other
446 information and error messages to 'standard error' so that the encoder
447 does not get confused. The encoder program needs to be able to encode the
448 information send to it by reading from the standard input (which is what
449 the ripper sends to the standard output).
450 Usually Unix/Linux programs deal with the standard input/output by using
451 the special file name '-', as in the following example:
453 cdripper -o - | audioencoder -i - -o file.ext
455 The 'cdripper' program uses the flag '-o' to identify the file it will
456 output the data to. For the 'audioencoder' program to be able to read
457 the output through a Unix pipe (the '|' symbol), the output needs to be
458 sent to the standard output using the '-' special filename. Once the
459 output has been piped to 'audioencoder' we use the same special filename
460 to read the information as input with the '-i' flag and output it to
461 'file.ext' with the '-o' flag.
463 Q. How do I use USEPIPES with abcde?
464 A. You can run USEPIPES in either of two ways:
466 1. Add 'USEPIPES=y' to your ~/.abcde.conf file
467 2. Use the commandline option 'abcde -P'
469 Q. Do all rippers and encoders work with USEPIPES?
470 A. No :). Keep in mind that every ripper and encoder differs from in each
471 other in the way they interact with pipes and not all rippers and encoders
472 will use or understand the '-o' and '-' options. Currently (August 2015) the
473 following rippers and encoders work:
475 Rippers: cdparanoia, debug, libcdio, cdda2wav, flac, pird.
476 Encoders: mp3enc, lame, bladeenc, oggenc, opusenc, flac, speexenc,
477 mpcenc, wavpack, faac, neroAacEnc, fdkaac, qaac, fhgaacenc,
480 Q. Can I add a ripper or encoder which is not supported?
481 A. Sure! If you plan to use a ripper or encoder which is not supported you
482 need to know how to use the ripper/encoder. For example, cdparanoia just
483 uses '-' as the output filename and works. The program used to decode
484 FLAC files (yes, abcde supports 'ripping' from a FLAC file :) uses '-c'.
485 To add support for a ripper called 'cdripper' which uses the '-' special
486 flag for outputting to the standard output, you need to open the config
487 file (either /etc/abcde.conf or ~/.abcde.conf) and add the line:
489 PIPERIPPER_cdripper="-"
491 For an encoder called 'audioencoder' which uses '--stdin' to read the pipe
492 input, you need to add:
494 PIPE_audioencoder="--stdin"
496 Of course, you should try your configuration and report it to the abcde
497 developers so that it can be included in future versions of abcde. If
498 you are familiar with POSIX shell programing, please open "abcde" and
499 take a look at the lines below the one marked with "###USEPIPESSUPPORT###",
500 the required syntax is reasonably clear.
505 Q. What happened with normalize?
506 A. Normalize has changed its name under Debian, which is the GNU/Linux
507 distribution for developing abcde (well, is The GNU/Linux Distribution
508 Steve uses, at the moment). Now it is called normalize-audio.
509 If you are using some other flavour of OS, you need to change the name
510 of the executable in your abcde.conf file.
512 Q. I am using MacOSX and I am having problems to use abcde.
513 A. Well, I have a Mac, but I use linux on it. I have not been able to find
514 a way to make it work there, since I do not have the development tools
515 installed. I have placed a basic support, but some user reports are just
516 complaining about abcde not encoding the ripped tracks, as if
517 icedax/cdda2wav/cdparanoia/cddafs would never end reading them. If you have
518 such a system and experience problems, please, report them, and I will
519 try to work them out with your help.
521 Q. My hardware player (put it here) does not recognize the playlists created
522 with abcde. What I am doing wrong?
523 A. Try using "-m" when creating the playlists, or setting DOSPLAYLIST as an
524 option in the config file.
528 Q. I set KEEPWAVS to "y" but abcde insists on erasing my directory, along
529 with the wav tracks. What I am doing wrong?
530 A. The default action set includes clean, which cleans the temp directory,
531 if nothing goes wrong. Take the "clean" out from the action list and you
533 UPDATE: KEEPWAVS unselects now the clean action.
536 Steve McIntyre <93sam@@debian.org>