echo "-m Modify playlist to include CRLF endings, to comply with some players"
echo "-M Create a CUE file"
echo "-o <type1[,type2]...>"
-echo " Output file type(s) (ogg,mp3,flac,spx,mpc). Defaults to ogg"
+echo " Output file type(s) (vorbis,mp3,flac,spx,mpc). Defaults to vorbis"
echo "-p Pad track numbers with 0's (if less than 10 tracks)"
echo "-P Use UNIX pipes to read+encode without wav files"
echo "-r <host1[,host2]...>"
echo " Also encode on these remote hosts"
-echo "-R Add replaygain values to the tag info (only for ogg,flac)"
+echo "-R Add replaygain values to the tag info (only for vorbis,flac)"
echo "-S <#> Set the CD speed"
#echo "-t File types to preprocess (wav)"
#echo "-T Set postprocessing options"
-g "$GENREID" -T "${TRACKNUM:-$1/$TRACKS}" \
"$ABCDETEMPDIR/track$1.$OUTPUT"
;;
- ogg)
+ vorbis|ogg)
case "$OGGENCODERSYNTAX" in
vorbize|oggenc)
# vorbiscomment can't do in-place modification, mv the file first
- if [ -f "$ABCDETEMPDIR/track$1.$OUTPUT" -a ! -f "$ABCDETEMPDIR/track$1.uncommented.$OUTPUT" ]; then
- mv "$ABCDETEMPDIR/track$1.$OUTPUT" "$ABCDETEMPDIR/track$1.uncommented.$OUTPUT"
+ if [ -f "$ABCDETEMPDIR/track$1.$OGGOUTPUTCONTAINER" -a ! -f "$ABCDETEMPDIR/track$1.uncommented.$OGGOUTPUTCONTAINER" ]; then
+ mv "$ABCDETEMPDIR/track$1.$OGGOUTPUTCONTAINER" "$ABCDETEMPDIR/track$1.uncommented.$OGGOUTPUTCONTAINER"
fi
(
# These are from http://www.xiph.org/ogg/vorbis/doc/v-comment.html
esac
fi
) | run_command tagtrack-$1 $VORBISCOMMENT $VORBISCOMMENTOPTS -w \
- "$ABCDETEMPDIR/track$1.uncommented.$OUTPUT" "$ABCDETEMPDIR/track$1.$OUTPUT"
+ "$ABCDETEMPDIR/track$1.uncommented.$OGGOUTPUTCONTAINER" "$ABCDETEMPDIR/track$1.$OGGOUTPUTCONTAINER"
# Doublecheck that the commented file was created successfully before wiping the original
- if [ -f "$ABCDETEMPDIR/track$1.$OUTPUT" ]; then
- rm -f "$ABCDETEMPDIR/track$1.uncommented.$OUTPUT"
+ if [ -f "$ABCDETEMPDIR/track$1.$OGGOUTPUTCONTAINER" ]; then
+ rm -f "$ABCDETEMPDIR/track$1.uncommented.$OGGOUTPUTCONTAINER"
else
- mv "$ABCDETEMPDIR/track$1.uncommented.$OUTPUT" "$ABCDETEMPDIR/track$1.$OUTPUT"
+ mv "$ABCDETEMPDIR/track$1.uncommented.$OGGOUTPUTCONTAINER" "$ABCDETEMPDIR/track$1.$OGGOUTPUTCONTAINER"
fi
;;
esac
;;
flac)
-## FIXME ## [ "$FLACONOGG" = "y" ] && OUTPUT=ogg
(
echo ARTIST="$TRACKARTIST"
echo ALBUM="$DALBUM"
*) echo COMMENT="$COMMENTOUTPUT";;
esac
fi
- ) | run_command tagtrack-$1 $METAFLAC $METAFLACOPTS --import-tags-from=- "$ABCDETEMPDIR/track$1.$OUTPUT"
+ ) | run_command tagtrack-$1 $METAFLAC $METAFLACOPTS --import-tags-from=- "$ABCDETEMPDIR/track$1.$FLACOUTPUTCONTAINER"
;;
spx)
run_command tagtrack-$1 true
mp3)
TEMPARG="PIPE_$MP3ENCODERSYNTAX"
;;
- ogg)
+ vorbis|ogg)
TEMPARG="PIPE_$OGGENCODERSYNTAX"
;;
flac)
if [ -s "$IN" -o X"$USEPIPES" = "Xy" ] ; then
for OUTPUT in $(echo $OUTPUTTYPE | tr , \ )
do
- OUT="$ABCDETEMPDIR/track$1.$OUTPUT"
+ case "$OUTPUT" in
+ vorbis|ogg)
+ OUT="$ABCDETEMPDIR/track$1.$OGGOUTPUTCONTAINER"
+ ;;
+ flac)
+ OUT="$ABCDETEMPDIR/track$1.$FLACOUTPUTCONTAINER"
+ ;;
+ *)
+ OUT="$ABCDETEMPDIR/track$1.$OUTPUT"
+ ;;
+ esac
if [ X"$USEPIPES" = "Xy" ]; then
RUN_COMMAND=""
else
;;
esac
;;
- ogg)
+ vorbis|ogg)
case "$2" in
%local*%)
case "$OGGENCODERSYNTAX" in
{
for OUTPUT in $(echo $OUTPUTTYPE | tr , \ )
do
+ case $OUTPUT in
+ vorbis|ogg)
+ OUTPUT=$OGGOUTPUTCONTAINER
+ ;;
+ flac)
+ OUTPUT=$FLACOUTPUTCONTAINER
+ ;;
+ esac
# Create ALBUMFILE, ARTISTFILE, TRACKFILE
# Munge filenames as follows:
# ' ' -> '_'
OUTPUTFILEDIR=$(dirname "$OUTPUTDIR/$OUTPUTFILE")
# mkdir -p shouldn't return an error if the directory already exists
mkdir -p "$OUTPUTFILEDIR"
+ vecho "Moving $ABCDETEMPDIR/track$1.$OUTPUT to $OUTPUTDIR/$OUTPUTFILE.$OUTPUT"
run_command movetrack-$1 mv "$ABCDETEMPDIR/track$1.$OUTPUT" "$OUTPUTDIR/$OUTPUTFILE.$OUTPUT"
+ # Lets move the cue file
+ if CUEFILE=$(checkstatus cuefile) >/dev/null ; then
+ if [ -r "$ABCDETEMPDIR/$CUEFILE" ]; then
+ if checkstatus movecue-$OUTPUT; then :; else
+ vecho "Copying cue file to its destination directory..."
+ run_command movecue-$OUTPUT cp "$ABCDETEMPDIR/$CUEFILE" "$OUTPUTFILEDIR/"
+ fi
+ fi
+ fi
done
}
#elif [ -z "$DISCID" ]; then
if [ -z "$DISCID" ]; then
vecho -n "Getting CD track info... "
+ # In OSX, unmount the disc before a query
if [ "$OSFLAVOUR" = "OSX" ]; then
disktool -u ${CDROM#/dev/}
fi
TRACKINFO=$($CDDISCID $CDROM)
- if [ "$OSFLAVOUR" = "OSX" ]; then
- disktool -m ${CDROM#/dev/}
- fi
# Make sure there's a CD in there by checking cd-discid's return code
if [ "$?" = "1" ]; then
echo "abcde error: CD could not be read. Perhaps there's no CD in the drive?" >&2
exit 1
fi
+ # In OSX, remount the disc again
+ if [ "$OSFLAVOUR" = "OSX" ]; then
+ disktool -m ${CDROM#/dev/}
+ fi
WEHAVEACD=y
else
TRACKINFO=$(cat "$WAVOUTPUTDIR/abcde.$DISCID/discid")
CDPARANOIAAUDIOTRACKS="$TRACKS"
else
if [ -f "$ABCDETEMPDIR/status" ] && checkstatus cdparanoia-audio-tracks ; then
- TRACKS=$( cat $ABCDETEMPDIR/cdparanoia-audio-tracks )
+ TRACKS=$( cat "$ABCDETEMPDIR/cdparanoia-audio-tracks" )
else
TRACKS=$(echo $TRACKINFO | cut -f2 -d' ')
fi
fi
cat /dev/null > "$ABCDETEMPDIR/status"
fi
- if [ X"$CUEFILE" = "Xy" -a X"$WEHAVEACD" = "Xy" ]; then
- if checkstatus cuefile >/dev/null ; then :; else
- CUEFILE=cue-$(echo $TRACKINFO | cut -f3 -d' ').txt
- $MKCUE $MKCUEOPTS > $ABCDETEMPDIR/$CUEFILE
+ if [ X"$MAKECUEFILE" = "Xy" -a X"$WEHAVEACD" = "Xy" ]; then
+ if checkstatus cuefile > /dev/null 2>&1 ; then :; else
+ CUEFILE=cue-$(echo "$TRACKINFO" | cut -f1 -d' ').txt
+ vecho "Creating cue file..."
+ $MKCUE $MKCUEOPTS > "$ABCDETEMPDIR/$CUEFILE"
echo cuefile=$CUEFILE >> "$ABCDETEMPDIR/status"
fi
fi
# Create a proper CUE file based on the CUE file we created before.
do_cleancue()
{
- if checkstatus cuefile; then :; else
- $CUEFILE_INPUT="$ABCDETEMPDIR/cue-$(echo $TRACKINFO | cut -f1 -d' ').txt"
+ # FIXME # we can get the name of the cuefile from the status file
+ if CUEFILE_IN="$ABCDETEMPDIR"/$(checkstatus cuefile); then
+ CUEFILE_OUT=$CUEFILE_IN.out
### FIXME ### checkstatus cddb
- if [ "$DOCDDB" = "y" ]; then
- MARKER
+ if [ -e "$CDDBDATA" ]; then
+ vecho "Adding metadata to the cue file..."
+ # FIXME It doesn't preserve spaces! Why?
+ # FIXME parse $track into PERFORMER and TITLE - abcde already has code for this?
+ n=1
+ echo "PERFORMER \"$DARTIST\"" >> "$CUEFILE_OUT"
+ echo "TITLE \"$DALBUM\"" >> "$CUEFILE_OUT"
+ cat "$CUEFILE_IN" | while read line
+ do
+ if echo "$line" | grep -q "INDEX"
+ then
+ eval track="\$TRACK$n"
+ n=$(expr $n + 1)
+ echo "TITLE \"$track\"" >> "$CUEFILE_OUT"
+ fi
+ echo "$line" >> "$CUEFILE_OUT"
+ done
+ mv "$CUEFILE_OUT" "$CUEFILE_IN"
+ echo "cleancuefile" >> "$ABCDETEMPDIR/status"
fi
fi
}
# Multiple exact, (possibly multiple) inexact matches
IN=
if [ "$RESPONSECODE" = "211" ]; then IN=in; fi
- if [ "$(wc -l < $ABCDETEMPDIR/cddbquery | tr -d ' ')" -eq 3 ]; then
+ if [ "$(wc -l < "$ABCDETEMPDIR/cddbquery" | tr -d ' ')" -eq 3 ]; then
echo "One ${IN}exact match:" >> "$ABCDETEMPDIR/cddbchoices"
tail -n +2 "$ABCDETEMPDIR/cddbquery" | head -n 1 >> "$ABCDETEMPDIR/cddbchoices"
echo cddb-choice=1 >> "$ABCDETEMPDIR/status"
if [ "$CDCHOICENUM" = "0" ]; then
vecho "Creating empty CDDB template..."
UNKNOWNDISK=y
- $CDDBTOOL template $(cat "$ABCDETEMPDIR/discid") > $ABCDETEMPDIR/cddbread.0
+ $CDDBTOOL template $(cat "$ABCDETEMPDIR/discid") > "$ABCDETEMPDIR/cddbread.0"
else
echo "Selected: #$CDCHOICENUM ($(grep ^DTITLE= "$ABCDETEMPDIR/cddbread.$CDCHOICENUM" | cut -f2- -d= | tr -d \\r\\n))" >&2
do_cddbparse "$ABCDETEMPDIR/cddbread.$CDCHOICENUM"
REDIR=">&2"
fi
if [ "$1" = "onetrack" ]; then
- echo "Grabbing ${PIPE_MESSAGE}tracks $UTRACKNUM - $LASTTRACK ..." >&2
+ echo "Grabbing ${PIPE_MESSAGE}tracks $UTRACKNUM - $LASTTRACK as one track ..." >&2
else
if [ -r "$CDDBDATA" ]; then
TRACKNAME=$(grep ^TTITLE$CDDBTRACKNUM= "$CDDBDATA" | head -n 1 | cut -f2 -d= | tr -d \[:cntrl:\])
:
}
-# do_movecue
-# Standalone function to move the CUE file to the final location
-
###############################################################################
# End of functions
#
HELLOINFO="$(whoami)@$(hostname)"
INTERACTIVE=y
CDROMREADERSYNTAX=cdparanoia
-OUTPUTTYPE=ogg
ENCODERSYNTAX=default
MP3ENCODERSYNTAX=default
# List of actions to perform - by default, run to completion
ACTIONS=cddb,read,encode,tag,move,clean
+# List of prefered outputs - by default, run with whatever we have in the path
+# This option is basicaly for Debian package dependencies
+DEFAULT_OUTPUT_BINARIES=vorbis:oggenc,flac:flac,mp3:lame,mp3:bladeenc,spx:speex
+
# Asume fetch if under FreeBSD. curl is used for Mac OS X. wget is used for Linux/OpenBSD/NetBSD.
# Let's use these checkings to determine the OS flavour, which will be used later
if [ X$(uname) = "XFreeBSD" ] ; then
n) CDDBAVAIL=n ;;
N) INTERACTIVE=n ;;
m) DOSPLAYLIST=y ;;
- M) CUEFILE=y ;;
+ M) MAKECUEFILE=y ;;
o) OUTPUTTYPE="$OPTARG" ;;
p) PADTRACKS=y ;;
P) USEPIPES=y ;;
if [ "$ONETRACK" = "y" ]; then
# FIXME # remove check as soon as we find out about the other readers
case "$CDROMREADERSYNTAX" in
- dagrab|cddafs|debug) echo "abcde error: ONETRACK reading is not suported with $CDROMREADERSYNTAX yet"
- exit 1 ;;
+ cdparanoia) ;;
+ cdda2wav) ;;
+ *) echo "abcde error: $CDROMREADERSYNTAX does not support ONETRACK mode"
+ exit 1 ;;
esac
if [ "$BATCH" = "y" ]; then
echo "abcde error: BATCH mode is not compatible with ONETRACK mode"
# Sanity checks:
+# Check the encoding format, if nothing has been configured in the system, from the ones available in the system
+if [ X"$OUTPUTTYPE" = "X" ]; then
+ for DEFAULT_OUTPUT in $( echo "$DEFAULT_OUTPUT_BINARIES" | tr , \ ); do
+ DEFAULT_OUTPUT_FORMAT="$(echo $DEFAULT_OUTPUT | cut -d ":" -f 1)"
+ DEFAULT_OUTPUT_BINARY="$(echo $DEFAULT_OUTPUT | cut -d ":" -f 2)"
+ if which $DEFAULT_OUTPUT_BINARY > /dev/null 2>&1 ; then
+ OUTPUTTYPE=$DEFAULT_OUTPUT_FORMAT
+ vecho "No default output type defined. Autoselecting $OUTPUTTYPE..." >&2
+ break
+ fi
+ done
+ if [ X"$OUTPUTTYPE" = "X" ]; then
+ echo "abcde error: no encoder found in the PATH" >&2
+ echo "hits: are all dependencies installed? has the \$PATH been modified?" >&2
+ exit 1
+ fi
+fi
+
# At this point a CDROM has to be defined, so we check it exists.
if [ X"$CDROM" != "X" ] ; then
if [ "$CDROMREADERSYNTAX" = "cdda2wav" ] && [ "$NEEDCDROMID" = "y" ] ; then
# - lowdisk algorithm
# - anything else?
if [ X"$USEPIPES" = "Xy" ]; then
- if [ $(echo $OUTPUTTYPE | tr , \ | wc -w ) -gt 1 ]; then
- echo "abcde error: Unix pipes not compatible with multiple outputs"
+ if [ $(echo "$OUTPUTTYPE" | tr , \ | wc -w ) -gt 1 ]; then
+ echo "abcde error: Unix pipes not compatible with multiple outputs" >&2
exit 1
fi
if [ X"$DONORMALIZE" = "Xy" ]; then
esac
# Allow -o OUTPUT(1):OPTIONS(1),...,OUTPUT(N):OPTIONS(N) mode of operation
-if echo $OUTPUTTYPE | grep ":" > /dev/null 2>&1 ; then
- OLDFS="$FS"
- export FS=","
- for OUTPUT in "$OUTPUTTYPE"
- do
+if echo "$OUTPUTTYPE" | grep ":" > /dev/null 2>&1 ; then
+ for OUTPUT in $(echo $OUTPUTTYPE | tr , \ ); do
case "$OUTPUT" in
- ogg:*) OGGENCODEROPTSCLI="$( echo $OUTPUT | cut -d: -f2- )" ;;
+ vorbis:*|ogg:*) OGGENCODEROPTSCLI="$( echo $OUTPUT | cut -d: -f2- )" ;;
mp3:*) MP3ENCODEROPTSCLI="$( echo $OUTPUT | cut -d: -f2- )" ;;
flac:*) FLACENCODEROPTSCLI="$( echo $OUTPUT | cut -d: -f2- )" ;;
spx:*) SPEEXENCODEROPTSCLI="$( echo $OUTPUT | cut -d: -f2- )" ;;
mpc:*) MPPENCODEROPTSCLI="$( echo $OUTPUT | cut -d: -f2- )" ;;
esac
done
- for OUTPUT in "$OUTPUTTYPE"
- do
+ for OUTPUT in $(echo $OUTPUTTYPE | tr , \ ); do
TEMPOUTPUT=$( echo "$OUTPUT" | cut -d: -f1 )
TEMPOUTPUTTYPE="${TEMPOUTPUTTYPE:+$TEMPOUTPUTTYPE,}$TEMPOUTPUT"
done
OUTPUTTYPE="$TEMPOUTPUTTYPE"
- FS="$OLDFS"
fi
# If nothing has been specified, use oggenc for oggs and lame for mp3s and flac for flacs and speexenc for speex and mppenc for mpps
for OUTPUT in $(echo $OUTPUTTYPE | tr , \ )
do
case $OUTPUT in
- ogg) [ "$OGGENCODERSYNTAX" = "default" ] && OGGENCODERSYNTAX=oggenc
- [ "$DOTAG" = "y" ] && NEEDCOMMENTER=y
- [ "$REPLAYGAIN" = "y" ] && NEEDVORBISGAIN=y
- ;;
- mp3) [ "$MP3ENCODERSYNTAX" = "default" ] && MP3ENCODERSYNTAX=lame
- [ "$DOTAG" = "y" ] && NEEDTAGGER=y
- ;;
- flac) [ "$FLACENCODERSYNTAX" = "default" ] && FLACENCODERSYNTAX=flac
- [ "$DOTAG" = "y" ] && NEEDMETAFLAC=y
- ;;
- spx) [ "$SPEEXENCODERSYNTAX" = "default" ] && SPEEXENCODERSYNTAX=speexenc ;;
- mpc) [ "$MPPENCODERSYNTAX" = "default" ] && MPPENCODERSYNTAX=mppenc ;;
+ vorbis|ogg)
+ [ "$OGGENCODERSYNTAX" = "default" ] && OGGENCODERSYNTAX=oggenc
+ [ "$DOTAG" = "y" ] && NEEDCOMMENTER=y
+ [ "$REPLAYGAIN" = "y" ] && NEEDVORBISGAIN=y
+ OGGOUTPUTCONTAINER=ogg
+ ;;
+ mp3)
+ [ "$MP3ENCODERSYNTAX" = "default" ] && MP3ENCODERSYNTAX=lame
+ [ "$DOTAG" = "y" ] && NEEDTAGGER=y
+ ;;
+ flac)
+ [ "$FLACENCODERSYNTAX" = "default" ] && FLACENCODERSYNTAX=flac
+ [ "$DOTAG" = "y" ] && NEEDMETAFLAC=y
+ ;;
+ spx)
+ [ "$SPEEXENCODERSYNTAX" = "default" ] && SPEEXENCODERSYNTAX=speexenc
+ ;;
+ mpc)
+ [ "$MPPENCODERSYNTAX" = "default" ] && MPPENCODERSYNTAX=mppenc
+ ;;
*) echo "abcde error: Invalid OUTPUTTYPE defined" >&2
exit 1
;;
flac)
FLACENCODEROPTS="${FLACENCODEROPTSCLI:-$FLACOPTS}"
FLACENCODER="$FLAC"
- ## FIXME ## FLAC streams can be encapsulated on a Ogg transport layer
+ # FLAC streams can be encapsulated on a Ogg transport layer
if echo "$FLACENCODEROPTS" | egrep -q -- "(^| )--ogg($| )" ;then
- FLACONOGG=y
+ echo "abcde error: FLAC on an Ogg container is not yet supported" >&2
+ echo " due to problem with adding comments to such files" >&2
+ exit 1
+ FLACOUTPUTCONTAINER=ogg
+ else
+ FLACOUTPUTCONTAINER=flac
fi
;;
esac
TAGGEROPTS="$ID3V2OPTS"
fi
+# Check if both OGGEOUTPUTCONTAINER and FLACOUTPUTCONTAINER are the same, and differentiante them
+if [ X"$OGGOUTPUTCONTAINER" = "Xogg" ] && [ X"$FLACOUTPUTCONTAINER" = "Xogg" ]; then
+ echo "abcde error: FLAC on an Ogg container is not yet supported" >&2
+ echo " due to problem with adding comments to such files" >&2
+ exit 1
+ OGGOUTPUTCONTAINER=ogg.ogg
+ FLACOUTPUTCONTAINER=flac.ogg
+ vecho "abcde warning: modified file endings due to conflicting transport layers in Ogg/Vorbis and Ogg/FLAC"
+fi
+
# Clean up nice options (either use '-n NICELEVEL or -NICELEVEL')
if [ "$ENCNICE" ]; then
case "$OUTPUT" in
mp3)
PIPEENCODERSVARCHECK="PIPE_$MP3ENCODERSYNTAX" ;;
- ogg)
+ vorbis|ogg)
PIPEENCODERSVARCHECK="PIPE_$OGGENCODERSYNTAX" ;;
flac)
PIPEENCODERSVARCHECK="PIPE_$FLACENCODERSYTNAX" ;;
fi
fi
-
# Make sure a buncha things exist
for X in $CDROMREADER $CDDISCID ${NEEDTAGGER+$TAGGER} $MP3ENCODER \
$OGGENCODER $FLACENCODER $SPEEXENCODER $MPPENCODER \
if checkstatus encodetrack-$UTRACKNUM; then
if checkstatus tagtrack-$UTRACKNUM; then :; else do_tag $UTRACKNUM; fi
fi
+ # Lets tag the cue file
+ if checkstatus cleancuefile >/dev/null; then :; else
+ if checkstatus cuefile >/dev/null ; then
+ do_cleancue
+ fi
+ fi
fi
if [ "$DOMOVE" = "y" ]; then
if checkstatus tagtrack-$UTRACKNUM; then
) &
done
-# Lets move the cue file
-if checkstatus cuefile >/dev/null ; then
- do_movecue
-fi
# Go through it again and make sure there's no distmp3 stragglers, otherwise
# we'll delete the files they're working on
endings. Some hardware players insist on having those to work.
.TP
.B \-o [filetype][:filetypeoptions]
-Select output type. Can be "ogg", "mp3", "flac", "spx" or "mpc". Specify a
-comma-delimited list of output types to obtain all specified types. See
-the OUTPUTTYPE configuration variable. One can pass options to the encoder for
-a specific filetype on the command line separating them with a colon. The
+Select output type. Can be "vorbis" (or "ogg"), "mp3", "flac", "spx" or "mpc".
+Specify a comma-delimited list of output types to obtain all specified types.
+See the OUTPUTTYPE configuration variable. One can pass options to the encoder
+for a specific filetype on the command line separating them with a colon. The
options must be escaped with double-quotes.
.TP
.B \-p
in a subdirectory named after the artist under the current directory.
This can be modified using the OUTPUTFORMAT and VAOUTPUTFORMAT
variables in your abcde.conf. Each file is given an extension identifying
-its compression format, '.ogg', '.mp3', '.flac', '.spx', or '.mpc'.
+its compression format, 'vorbis' for '.ogg', '.mp3', '.flac', '.spx', or '.mpc'.
.SH CONFIGURATION
abcde sources two configuration files on startup - /etc/abcde.conf and
$HOME/.abcde.conf, in that order.
.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), "mp3"
-(MPEG-1 Audio Layer III), "flac" (Free Lossless Audio Codec), "spx" (Ogg/Speex)
-and "mpc" (MPP/MP+ (Musepack)). Values like "ogg,mp3" encode the tracks in
-both Ogg/Vorbis and MP3 formats.
+encoder. Defaults to "vorbis". Valid settings are "vorbis" (or "ogg")
+(Ogg/Vorbis), "mp3" (MPEG-1 Audio Layer III), "flac" (Free Lossless Audio
+Codec), "spx" (Ogg/Speex) and "mpc" (MPP/MP+ (Musepack)). Values like
+"vorbis,mp3" encode the tracks in both Ogg/Vorbis and MP3 formats.
.br
For each value in OUTPUTTYPE, abcde expands a different process for encoding,
tagging and moving, so you can use the format placeholder, OUTPUT, to create
different subdirectories to hold the different types. The variable OUTPUT will
-be 'ogg', 'mp3', 'flac', 'spx' and/or 'mpc', depending on the OUTPUTTYPE you define.
+be 'vorbis', 'mp3', 'flac', 'spx' and/or 'mpc', depending on the OUTPUTTYPE you define.
For example
.br
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}._${TRACKFILE}'
.B abcde -d /dev/cdrom2
If the CDROM you are reding from is not the standard /dev/cdrom (in GNU/Linux systems)
.TP
-.B abcde -o ogg,flac
+.B abcde -o vorbis,flac
Will create both Ogg/Vorbis and Ogg/FLAC files.
.TP
-.B abcde -o ogg:"-b 192"
+.B abcde -o vorbis:"-b 192"
Will pass "-b 192" to the Ogg/Vorbis encoder, without having to modify the
config file
.TP