930fdcd49a5985069836d087a246069a91382168
[abcde.git] / abcde.conf
1 # System defaults for abcde version 2.8.2
2 # Nothing in this file is uncommented by default.
3 #
4 # If you wish to override these system-wide settings, create your own
5 # .abcde.conf file in your home directory.
6
7 # CDDB options
8
9 # Choose whether you want to use "cddb", "musicbrainz" and/or
10 # "cdtext". Default is "musicbrainz", but all can be specified in a
11 # comma delimited list to be tried sequentially. All the results will
12 # be displayed ready for user choice.
13 #CDDBMETHOD=musicbrainz
14
15 # If you wish to use a different CDDB server, edit this line.
16 # If you just wanted to use a proxy server, just set your http_proxy
17 # environment variable - wget will use it correctly.
18 #CDDBURL="http://freedb.freedb.org/~cddb/cddb.cgi"
19
20 # The CDDB protocol level.
21 # Right now 5 is latin1 output and 6 is UTF8 encoding.
22 #CDDBPROTO=6
23
24 # The CDDB protocol requires hello information, including a valid username
25 # and hostname. If you feel paranoid about giving away such info, edit this
26 # line - the format is username@hostname.
27 #HELLOINFO="`whoami`@`hostname`"
28
29 # This controls the email address CDDB changes are submitted to.
30 #[email protected]
31
32 # The following options control whether or not fetched CDDB entries
33 # are cached locally in $CDDBLOCALDIR
34 #CDDBCOPYLOCAL="n"
35 #CDDBLOCALDIR="$HOME/.cddb"
36 #CDDBLOCALRECURSIVE="y"
37
38 # If NOSUBMIT is set to y, then abcde will never prompt asking if you
39 # wish to submit your edited cddb file.
40 #NOSUBMIT=n
41
42 # If NOCDDBQUERY is set to y, then abcde will never even try to access
43 # the CDDB server; running abcde will automatically drop you into a
44 # blank cddb file to edit at your leisure.  This is the same as the
45 # -n option.  NOCDDBQUERY=y implies NOSUBMIT=y.
46 #NOCDDBQUERY=n
47
48 # Select here if you want to use the locally stored CDDB entries.
49 # This is useful if you do a lot of editing to those CDDB entries.
50 # Also, other tools like Grip store CDDB entries under $HOME/.cddb,
51 # so they can be reused when ripping CDs. (If this is set to "y" make
52 # sure that CDDBLOCALRECURSIVE is also set to "y".)
53 #CDDBUSELOCAL="n"
54
55 # List, separated with a comma, the fields we want the parsing function to
56 # output. Defaults to YEAR and GENRE, for a complete list of fields provided by
57 # CDDB.
58 # The fields are not case sensitive. Actually, "y,g" will work as fine as "Y,G"
59 # or "YEAR, GENRE"
60 #SHOWCDDBFIELDS=year,genre
61
62 # Specify the style of encoder to use here -
63 # oggenc, vorbize - for OGGENCODERSYNTAX
64 # lame, gogo, bladeenc, l3enc, xingmp3enc, mp3enc - for MP3ENCODERSYNTAX
65 # flac - the only supported for FLACENCODERSYNTAX at the moment
66 # speexenc - the only encoder for SPEEXENCODERSYNTAX
67 # mpcenc - encoder for MPCENCODERSYNTAX
68 # wavpack, ffmpeg - encoder for WVENCODERSYNTAX
69 # mac - for APENCODERSYNTAX
70 # fdkaac, ffmpeg, neroAacEnc, faac, qaac, fhgaacenc - for AACENCODERSYNTAX
71 # opusenc - for OPUSENCODERSYNTAX
72 # twolame, ffmpeg - for MP2ENCODERSYNTAX
73 # tta, ttaenc - for TTAENCODERSYNTAX
74 # ffmpeg - for AIFFENCODERSYNTAX
75 # default is a valid option for oggenc, lame, flac, speexenc, mpcenc, wavpack,
76 # fdkaac, opus, twolame and tta. Currently this affects the default location of the
77 # binary, the variable to pick encoder command-line options from, and where
78 # the options are given.
79 #MP3ENCODERSYNTAX=default
80 #OGGENCODERSYNTAX=default
81 #FLACENCODERSYNTAX=default
82 #SPEEXENCODERSYNTAX=default
83 #MKAENCODERSYNTAX=default
84 #MPCENCODERSYNTAX=default
85 #WVENCODERSYNTAX=default
86 #APENCODERSYNTAX=default
87 #AACENCODERSYNTAX=default
88 #OPUSENCODERSYNTAX=default
89 #MP2ENCODERSYNTAX=default
90 #TTAENCODERSYNTAX=default
91 #AIFFENCODERSYNTAX=default
92
93 # Specify the syntax of the normalize binary here - so far only 'normalize'
94 # is supported.
95 #NORMALIZERSYNTAX=default
96
97 # CD reader program to use - currently recognized options are 'cdparanoia',
98 # 'libcdio' (cd-paranoia),'icedax', 'cdda2wav', 'dagrab', 'pird',
99 # 'cddafs' (Mac OS X only) and 'flac'.
100 #CDROMREADERSYNTAX=cdparanoia
101
102 # CUE reader syntax for the CUE reader program to use.
103 # abcde supports 2 CUE modes: 'mkcue' and 'abcde.mkcue' so you can set the
104 # MKCUE variable accordingly. The 'abcde.mkcue' uses an internal
105 # implementation, without the need of an external program.
106 #CUEREADERSYNTAX=default
107
108 # Specify the program to convert a CUE sheet back to a CD disc ID for CDDB queries.
109 # Select between '/path/to/cue2discid' (provided as an example) or
110 # 'abcde.cue2discid', implemented internaly.
111 #CUE2DISCID=abcde.cue2discid
112
113 # Keep the wav files after encoding. Set it to "y" and remove "clean" from
114 # the list of default actions, since we purge the temp directory as default.
115 #KEEPWAVS=n
116
117 # Track padding: force abcde to pad tracks using 0, so every song uses a two
118 # digit entry. If set to "y", even a single song encoding outputs a file like
119 # 01.my_song.ext
120 #PADTRACKS=n
121
122 # Define if you want abcde to be non-interactive.
123 # Keep in mind that there is no way to deactivate it right now in the command
124 # line, so setting this option makes abcde to be always non-interactive.
125 #INTERACTIVE=n
126
127 # Specify 'nice'ness of the encoder, the CD reader and the distmp3 proc.
128 # This is a relative 'nice'ness (that is, if the parent process is at a
129 # nice level of 12, and the ENCNICE is set to 3, then the encoder will
130 # run with an absolute nice value of 15. Note also, that setting these
131 # to be empty will result in some default niceness increase (4 in tcsh
132 # and 10 using the bsdutils' nice).
133 #ENCNICE=10
134 #READNICE=10
135 #DISTMP3NICE=10
136
137 # Paths of programs to use
138
139 # Encoders:
140 #LAME=lame
141 #GOGO=gogo
142 #BLADEENC=bladeenc
143 #L3ENC=l3enc
144 #XINGMP3ENC=xingmp3enc
145 #MP3ENC=mp3enc
146 #VORBIZE=vorbize
147 #OGGENC=oggenc
148 #FLAC=flac
149 #SPEEXENC=speexenc
150 #MPCENC=mpcenc
151 #WVENC=wavpack
152 #APENC=mac
153 #FAAC=faac
154 #NEROAACENC=neroAacEnc
155 #FDKAAC=fdkaac
156 #OPUSENC=opusenc
157 #TWOLAME=twolame
158 # Note that if you use avconv rather than FFmpeg give the
159 # path to avconv here (e.g. FFMPEG=/usr/bin/avconv):
160 # FFMPEG=ffmpeg
161 #TTA=tta
162 #TTAENC=ttaenc
163
164 # The path for qaac, refalac and fhgaacenc  can be problematic as abcde
165 # cannot cope with the 'standard' Wine location with spaces. For example:
166 # "$HOME/.wine/drive_c/Program\ Files/qaac/qaac.exe" is problematic. Try instead:
167 # "$HOME/.wine/drive_c/qaac/qaac.exe"
168 # Installation instructions for qaac, refalac and fhgaacenc here:
169 #    http://www.andrews-corner.org/linux/qaac.html
170 #    http://www.andrews-corner.org/linux/fhgaacenc.html
171 # (Hint: Use QAAC=refalac to use the Open Source alac encoder...)
172 #QAAC=qaac
173 #FHGAACENC=fhgaacenc
174
175 # Taggers, rippers, replaygain etc:
176 #ID3=id3
177 #ID3V2=id3v2
178 #MID3V2=mid3v2
179 #EYED3=eyeD3
180 #CDPARANOIA=cdparanoia
181 #CD_PARANOIA=cd-paranoia
182 #CDDA2WAV=icedax
183 #PIRD=pird
184 #CDDAFS=cp
185 #CDDISCID=cd-discid
186 #CDDBTOOL=cddb-tool
187 #EJECT=eject
188 #MD5SUM=md5sum
189 #DISTMP3=distmp3
190 #VORBISCOMMENT=vorbiscomment
191 #METAFLAC=metaflac
192 #NORMALIZE=normalize-audio
193 #CDSPEED=eject
194 #VORBISGAIN=vorbisgain
195 #MKCUE=mkcue
196 #MKTOC=cdrdao
197 #DIFF=diff
198 #WVGAIN=wvgain
199 #WVTAG=wvtag
200 #APETAG=apetag
201 #GLYRC=glyrc
202 #IDENTIFY=identify
203 #CONVERT=convert
204 #DISPLAYCMD=display
205 #WINE=wine
206
207 # Options to call programs with:
208
209 # If HTTPGET is modified, the HTTPGETOPTS options should also be defined
210 # accordingly. If HTTPGET is changed, the default options will be set,
211 # if HTTPGETOPTS is empty or not defined.
212 #HTTPGET=wget
213 # for fetch (FreeBSD): HTTPGETOPTS="-q -o -"
214 # for wget: HTTPGETOPTS="-q -nv -O -"
215 # for curl (MacOSX): HTTPGETOPTS="-f -s"
216 #HTTPGETOPTS="-q -O -"
217
218 # MP3:
219 # For the best LAME encoder options have a look at:
220 # <http://wiki.hydrogenaudio.org/index.php?title=LAME#Recommended_encoder_settings>
221 # A good option is '-V 0' which gives Variable Bitrate Rate (VBR) recording
222 # with a target bitrate of ~245 Kbps and a bitrate range of 220...260 Kbps.
223 #LAMEOPTS=
224 #GOGOOPTS=
225 # Bladeenc still works with abcde in 2015, and the last release of bladeenc
226 # was in 2001! Settings that will produce a great encode are: '-br 192' 
227 #BLADEENCOPTS=
228 # L3enc still works with abcde in 2015, pretty amazing when you realise 
229 # that the last release of l3enc was in 1997! Settings that will produce 
230 # a great encode are: '-br 256000 -hq -crc'
231 #L3ENCOPTS=
232 #XINGMP3ENCOPTS=
233 # And mp3enc also still works with abcde in 2015 with the last release
234 # of mp3enc in 1998! Settings that will produce a great encode, albeit
235 # a slow one, are: '-v -br 256000 -qual 9 -no-is -bw 16500'
236 #MP3ENCOPTS=
237
238 # Ogg:
239 #VORBIZEOPTS=
240 #OGGENCOPTS=
241
242 # FLAC:
243 # The flac option is a workaround for an error where flac fails
244 # to encode with error 'floating point exception'. This is flac 
245 # error in get_console_width(), corrected in flac 1.3.1
246 #FLACOPTS="--silent"
247 # Options passed to MetaFlac for ReplayGain tags:
248 #FLACGAINOPTS="--add-replay-gain"
249 # Speex:
250 #SPEEXENCOPTS=
251
252 # MPP/MP+ (Musepack):
253 # For the encoder options look at 'mpcenc --longhelp', consider
254 # setting '--extreme' for a good quality encode.
255 #MPCENCOPTS=
256
257 # WavPack:
258 # Look at 'wavpack --help' for detailed options, consider using '-hx3' 
259 # for a good quality encode
260 #WAVENCOPTS=
261 # For Wavpack replay gain we set both the default of 'track gain' 
262 # as well as this option for 'album gain'. Better media players
263 # such as vlc can select either or neither.    
264 #WVGAINOPTS='-a'
265
266 # Monkey's Audio (ape)
267 # Without this set mac chokes unfortunately. Choices
268 # are from 1000 to 5000.
269 #APENCOPTS='-c4000'
270
271 #AIFF
272 # These options needed by FFmpeg for tagging and selection of id3v2 version:
273 #  1. '-write_id3v2 1' allows id3v2 tagging while '-write_id3v2 0' disables tagging
274 #  2. '-id3v2_version 4' gives version id3v2.4 while '3' gives id3v2.3 
275 #AIFFENCOPTS="-write_id3v2 1 -id3v2_version 4"
276
277 # M4A/AAC
278 # There are now 6 AAC encoders available to abcde, the default being
279 # fdkaacenc. Note that the old AACENCOPTS has been rendered obsolete by
280 # the following options, new to abcde 2.7:
281 #  1. fdkaac: see 'fdkaac --help' and consider using 
282 #     '--profile 2 --bitrate-mode 5 --afterburner 1'
283 #     for a good quality encode. 
284 #FDKAACENCOPTS='--bitrate 192k'
285 #  2. FFmpeg: Use the following to use the FFmpeg native encoder, adding
286 #     -strict -2 if you have an older FFmpeg:
287 #     FFMPEGENCOPTS="-c:a aac -b:a 192k"
288 #  3. neroAacEnc: see 'neroAacEnc -help' and
289 #     consider using '-q 0.65' for a good quality encode.
290 #NEROAACENCOPTS=
291 #  4. faac: see 'faac --long-help' and consider
292 #     using '-q 250' for a good quality encode.
293 #FAACENCOPTS=
294 #  5. qaac: simply run 'wine qaac.exe' to see all options and
295 #     consider using '--tvbr 100' for a good quality
296 #     encode or '--alac' for Apple Lossless Audio Codec
297 #QAACENCOPTS=
298 #  6. fhgaacenc: simply run 'wine fhgaacenc.exe' to see all options.
299 #     consider using '--vbr 4' for a decent quality encode.
300 #FHGAACENCOPTS=
301
302 # True Audio
303 # This is a lossless format so no options of any note available:
304 #TTAENCOPTS=
305
306 # OPUS
307 # For the encoder options look at: 'opusenc -h'
308 #OPUSENCOPTS=
309
310 # MP2
311 # Currently uses either twolame or ffmpeg, for twolame options look at:
312 # 'twolame --help',a highly recommended setting is "--bitrate 320".
313 #TWOLAMENCOPTS=
314
315 # FFmpeg or avconv can be used for several audio codecs, as well as being
316 # the default encoder for the Matroska container mka::
317 # 1. Encoding to WavPack (FFmpeg only: avconv does not have a native encoder).
318 #    Consider setting the following with a compression_level between 0-8:
319 #    FFMPEGENCOPTS="-c:a wavpack -compression_level 6"
320 # 2. Encoding to ALAC (both FFmpeg and avconv have a native encoder).
321 #    Consider using the following for either FFmpeg and avconv:
322 #    FFMPEGENCOPTS="-c:a alac"
323 # 3. Encoding to mp2
324 #    Consider using the following for either FFmpeg and avconv:
325 #    FFMPEGENCOPTS="-c:a mp2 -b:a 320k"
326 #FFMPEGENCOPTS=
327
328 # mp3 tagging:
329 # There are three ways to tag MP3 files:
330 #   1. id3v1 (with id3)
331 #   2. id3v2.3 (with id3v2)
332 #   3. id3v2.4 (with eyeD3) This is the default
333 # Use ID3TAGV to select one of the older formats:
334 #ID3TAGV=id3v2.4
335 #ID3OPTS=
336 #ID3V2OPTS=
337 #EYED3OPTS="--set-encoding=utf16-LE"
338
339 # Other options:
340 # The variable CDPARANOIOPTS is also used by GNU's cd-paranoia,
341 # so use this when setting CDROMREADERSYNTX=libcdio.
342 #CDPARANOIAOPTS=
343 #CDDA2WAVOPTS=
344 #PIRDOPTS="-p"
345 # Options for the CD ripper dagrab can be seen by running 'dagrab -h'.
346 # A good option to experiment with is the 'sectors per request' setting
347 # which by default is '-n 8'.
348 #DAGRABOPTS=
349 #CDDAFSOPTS="-f"
350 #CDDBTOOLOPTS=
351 #EJECTOPTS=
352 #DISTMP3OPTS=
353 #NORMALIZEOPTS=
354 #CDSPEEDOPTS="-x"
355 #CDSPEEDVALUE=""
356 #MKCUEOPTS=""
357 #MKTOCOPTS=""
358 #DIFFOPTS=""
359 #VORBISCOMMENTOPTS="-R"
360 #METAFLACOPTS="--no-utf8-convert"
361 # Bear in mind that the AtomicParsley option '--overWrite' is already
362 # used in abcde...
363 #ATOMICPARSLEYOPTS=
364
365 # Actions to take
366 # Comma-separated list of one or more of the following:
367 #  cddb,cue,read,normalize,encode,tag,move,replaygain,playlist,getalbumart,embedalbumart,clean,default
368 #   encode implies read
369 #   normalize implies read
370 #   tag implies cddb,read,encode
371 #   move implies cddb,read,encode,tag
372 #   replaygain implies cddb,read,encode,tag,move
373 #   playlist implies cddb
374 #   embedalbumart implies getalbumart
375 # An action can be added to the "default" action by specifying it along with
376 # "default", without having to repeat the default ones:
377 #  ACTIONS=default,playlist
378 # The default action list (referenced as "default") is defined in the following
379 # comment:
380 #ACTIONS=cddb,read,encode,tag,move,clean
381
382 # CD device you want to read from
383 # It can be defined as a singletrack flac file, but since it might change from
384 # file to file it makes little sense to define it here.
385 #CDROM=/dev/cdrom
386 # If we are using the IDE bus, we need CDPARANOIACDROMBUS defined as "d"
387 # If we are using the ide-scsi emulation layer, we need to define a "g"
388 #CDPARANOIACDROMBUS="d"
389
390 # If you'd like to make a default location that overrides the current
391 # directory for putting mp3's, uncomment this.
392 #OUTPUTDIR=`pwd`
393
394 # Or if you'd just like to put the temporary .wav files somewhere else
395 # you can specify that here
396 #WAVOUTPUTDIR=`pwd`
397
398 # OUTPUTTYPE can be any of a number of formats, either a single format
399 # (e.g. "ogg") or a combination of them separated with ","
400 # (e.g. "flac,mp3"). Currently recognised and supported are:
401 # "flac", "m4a", "mp3, "mpc", "ogg", "opus", "mka", "spx", "vorbis", "wav", "wv", "ape", "aiff"
402 #OUTPUTTYPE=ogg
403
404 # Output filename format - change this to reflect your inner desire to
405 # organize things differently than everyone else :)
406 # You have the following variables at your disposal:
407 # OUTPUT, GENRE, ALBUMFILE, ARTISTFILE, TRACKFILE, TRACKNUM and YEAR.
408 # Make sure to single-quote this variable. abcde will automatically create
409 # the directory portion of this filename.
410 # NOTICE: OUTPUTTYPE has been deprecated in the OUTPUTFORMAT string.
411 # Since multiple-output was integrated we always append the file type
412 # to the files. Remove it from your user defined string if you are getting
413 # files like ".ogg.ogg".
414 #OUTPUTFORMAT='${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
415
416 # Like OUTPUTFORMAT but for Various Artists discs.
417 #VAOUTPUTFORMAT='Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'
418
419 # Like OUTPUTFORMAT and VAOUTPUTFORMAT but for the ONEFILE rips.
420 #ONETRACKOUTPUTFORMAT=$OUTPUTFORMAT
421 #VAONETRACKOUTPUTFORMAT=$VAOUTPUTFORMAT
422
423 # Define how many encoders to run at once. This makes for huge speedups
424 # on SMP systems. Defaults to 1. Equivalent to -j.
425 #MAXPROCS=2
426
427 # Support for systems with low disk space:
428 # n:    Default parallelization (read entire CD in while encoding)
429 # y:    No parallelization (rip, encode, rip, encode...)
430 #LOWDISK=n
431
432 # If set to y, enables batch mode normalization, which preserves relative
433 # volume differences between tracks of an album.
434 #BATCHNORM=n
435
436 # Enables nogap encoding when using the 'lame' encoder.
437 #NOGAP=y
438
439 # Set the playlist file location format. Uses the same variables and format
440 # as OUTPUTFORMAT. If the playlist is specified to be in a subdirectory, it
441 # will be created for you and the playlist will reference files from that
442 # subdirectory.
443 #PLAYLISTFORMAT='${ARTISTFILE}-${ALBUMFILE}.${OUTPUT}.m3u'
444 # If you want to prefix every filename in a playlist with an arbitrary
445 # string (such as 'http://you/yourstuff/'), use this option
446 #PLAYLISTDATAPREFIX=''
447
448 #Like PLAYLIST{FORMAT,DATAPREFIX} but for Various Artists discs:
449 #VAPLAYLISTFORMAT='${ARTISTFILE}-${ALBUMFILE}.${OUTPUT}.m3u'
450 #VAPLAYLISTDATAPREFIX=''
451
452 #This will give the playlist CR-LF line-endings, if set to "y".
453 #(some hardware players insist on CR-LF line-endings)
454 #DOSPLAYLIST=n
455
456 # album art download options (see glyrc's help for details with more detailed 
457 # examples here: https://github.com/sahib/glyr/wiki/Commandline-arguments).
458 # For example use '--formats jpg;jpeg' to only search for JPEG images
459 # These options: '--from <provider>' and '--lang <langcode>' might also be useful
460 #GLYRCOPTS=
461 #ALBUMARTFILE="cover.jpg"
462 #ALBUMARTTYPE="JPEG"
463
464 # Set to "y" to ask at runtime whether or not we should look for a
465 # user-specified path/URL for cover art, overriding automatic lookup
466 #OVERRIDEALBUMARTDOWNLOAD=n
467
468 # Options for ImageMagick commands used by album art processing when available
469 # For example: CONVERTOPTS="-colorspace RGB -resize 600x600>"
470 # to make the image RGB and fit inside 600x600 while keeping the aspect ratio
471 #IDENTIFYOPTS=
472 #CONVERTOPTS=
473 #DISPLAYCMDOPTS="-resize 512x512 -title abcde_album_art"
474 # By default convert is only called when the image type is different from
475 # ALBUMARTTYPE, use ALBUMARTALWAYSCONVERT="y" to always call convert
476 #ALBUMARTALWAYSCONVERT="n"
477
478 # Custom filename munging:
479 # By default, abcde will do the following to CDDB data to get a useful filename:
480 # 1. Delete any dots preceding the title (first sed command)
481 # 2. Replace all spaces with an underscore (second sed command). Simply remove
482 #   this if you prefer spaces.
483 # 3. Delete a grab bag of characters which variously Windows and Linux do not permit 
484 #   (tr command). Remove any of these from the list if you wish to actually use them.
485 #   
486 #mungefilename ()
487 #{
488 #       echo "$@" | sed -e 's/^\.*//' -e 's/ /_/g' | tr -d ":><|*/\"'?[:cntrl:]"
489 #}
490 #
491 # More examples for custom filename munging:
492 #
493 # VARIANT 1: (works anywhere style)
494 #
495 # Translate everything to lowercase
496 # replace ALL chars that may cause trouble for Linux, Windows and DOS
497 # with '_' (underscore); remove double underscores; remove leading and
498 # trailing underscores; recode to flat ASCII. WARNING! You'll likely
499 # need to install "recode" on your system as an extra package to use
500 # this.
501 #
502 #mungefilename ()
503 #{
504 #       echo "$@" | tr [A-Z] [a-z] | \
505 #                       sed "s/[- ,.:\'\/!@#\?\$%\^&()]/_/g" | \
506 #                       sed 's/_[_]*/_/g' | \
507 #                       sed 's/^_*//' | \
508 #                       sed 's/_*$//' | \
509 #                       recode -f iso8859-1..flat
510 #}
511 #
512 # VARIANT 2: (legible style)
513 #
514 # Accept all chars, EXCEPT '/' (obvious) or ":" (because eyeD3 cannot
515 # cope with ":" in pathnames): replace them with " " (space).
516 # Additionally, replace contiguous spaces with one space; strip
517 # leading spaces; strip trailing spaces and recode to flat filenames.
518 #
519 # mungefilename ()
520 # {
521 #       echo "$@" |     sed "s/[:\/]/ /g" | \
522 #                       sed 's/ [ ]*/ /g' | \
523 #                       sed 's/^ *//' | \
524 #                       sed 's/ *$//' | \
525 #                       recode -f iso8859-1..flat
526 # }
527
528
529 #
530 # Custom filename munging specific to track names:
531 # By default this function will call the mungefilename function.
532 #mungetrackname ()
533 #{
534 #       mungefilename $@
535 #}
536 #
537 # Custom filename munging specific to artist names:
538 # By default this function will call the mungefilename function.
539 #mungeartistname ()
540 #{
541 #       mungefilename $@
542 #}
543 #
544 # Custom filename munging specific to album names:
545 # By default this function will call the mungefilename function.
546 #mungealbumname ()
547 #{
548 #       mungefilename $@
549 #}
550
551 # Custom genre munging:
552 # By default we just transform uppercase to lowercase. Not much of a fancy
553 # function, with not much use, but one can disable it or just turn the first
554 # Uppercase.
555 #mungegenre ()
556 #{
557 #       echo $CDGENRE | tr "[:upper:]" "[:lower:]"
558 #}
559
560
561 # Custom pre-read function
562 # By default it does nothing.
563 # You can set some things to get abcde function in better ways:
564 # * Close the CD tray using eject -t (if available in eject and supported by
565 #   your CD device.
566 # * Set the CD speed. You can also use the built-in options, but you can also
567 #   set it here. In Debian, eject -x and cdset -x do the job.
568 # KEEP IN MIND that executables included in pre_read must be in your $PATH or
569 # you have to define them with full /path/to/binary
570 # Uncomment and substitute the ":" with your commands.
571 #pre_read ()
572 #{
573 #:
574 #}
575
576 # Custom post-read function
577 # By default it does nothing.
578 # You can set some things to get abcde function in better ways:
579 # * Store a copy of the CD TOC.
580 # KEEP IN MIND that executables included in post_read must be in your $PATH or
581 # you have to define them with full /path/to/binary
582 # Uncomment and substitute the ":" with your commands.
583 #post_read ()
584 #{
585 #:
586 #}
587
588 # post_encode
589 # By default it does nothing.
590 # You can set some things to get abcde function in better ways:
591 # * Move the resulting directory over the network
592 # * Compare results with a previously made run, for tests
593 # KEEP IN MIND that executables included in post_encode must be in your $PATH or
594 # you have to define them with full /path/to/binary
595 # Uncomment and substitute the ":" with your commands.
596 #post_encode ()
597 #{
598 #:
599 #}
600
601 # If you'd like to have abcde eject the cdrom after all the tracks have been
602 # read, uncomment the following line.
603 #EJECTCD=y
604
605 # To encode on the remote machines foo, bar, baz, quux, and qiix, as well as
606 # on the local machine (requires distmp3 to be installed on local machine and
607 # distmp3host to be installed and running on all remote machines - see README)
608 #REMOTEHOSTS=foo,bar,baz,quux,qiix
609
610 # Set to 1,2, etc. to obtain some information about actions happening in the background
611 # Useful if you have a slow network or CDDB servers seem unresponsive.
612 #EXTRAVERBOSE=0