domingo, septiembre 12, 2010

Cómo convertir tu CD a MP3 con ABCDE en Debian

¿Qué es el abcde?
Su página oficial dice:
abcde: Command Line Music CD Ripping for Linux

¿Cómo lo instalo en mi Debian?
# apt-get install abcde

¿Qué dependencias tiene este paquete?

# apt-cache depends abcde
abcde
Depends: cd-discid
Depends: wget
|Depends: cdparanoia
Depends: icedax
|Depends: vorbis-tools
|Depends: lame
|Depends: flac
|Depends:
Depends: speex
Suggests: eject
Suggests: distmp3
Suggests: id3
Suggests: id3v2
Suggests: eyed3
Suggests: normalize-audio
Suggests: vorbisgain
Suggests: mkcue
Suggests: mp3gain
Suggests: python-musicbrainz
Recommends: vorbis-tools

Quiero convertir mis discos a MP3, ¿qué hago?

Tenemos dos opciones: leer el manual completo y hacerlo paso por paso o bien, hacer uso de un archivo de configuración y sólo ejecutar un comando...
El archivo de configuración para MP3:

$ nano ~/.abcde.conf

Y el contenido:


# -----------------$HOME/.abcde.conf----------------- #
#
# A sample configuration file to convert music cds to
# MP3 format using abcde version 2.3.99.6
#
# http://andrews-corner.org/abcde.html
# -------------------------------------------------- #

# Specify the encoder to use for MP3. In this case
# the alternatives are gogo, bladeenc, l3enc, xingmp3enc, mp3enc.
MP3ENCODERSYNTAX=lame

# Specify the path to the selected encoder. In most cases the encoder
# should be in your $PATH as I illustrate below, otherwise you will
# need to specify the full path. For example: /usr/bin/lame
LAME=lame

# Specify your required encoding options here. Multiple options can
# be selected as '--preset standard --another-option' etc.
LAMEOPTS='--preset extreme'

# Output type for MP3.
OUTPUTTYPE="mp3"

# The cd ripping program to use. There are a few choices here: cdda2wav,
# dagrab, cddafs (Mac OS X only) and flac.
CDROMREADERSYNTAX=cdparanoia

# Give the location of the ripping program and pass any extra options:
CDPARANOIA=cdparanoia
CDPARANOIAOPTS="--never-skip=40"

# Give the location of the CD identification program:
CDDISCID=cd-discid

# Give the base location here for the encoded music files.
OUTPUTDIR="$HOME/music/"

# The default actions that abcde will take.
ACTIONS=cddb,playlist,read,normalize,encode,tag,move,clean

# Decide here how you want the tracks labelled for a standard 'single-artist',
# multi-track encode and also for a multi-track, 'various-artist' encode:
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
VAOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'

# Decide here how you want the tracks labelled for a standard 'single-artist',
# single-track encode and also for a single-track 'various-artist' encode.
# (Create a single-track encode with 'abcde -1' from the commandline.)
ONETRACKOUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}'
VAONETRACKOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}'

# Create playlists for single and various-artist encodes. I would suggest
# commenting these out for single-track encoding.
PLAYLISTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${ALBUMFILE}.m3u'
VAPLAYLISTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${ALBUMFILE}.m3u'

# Put spaces in the filenames instead of the more correct underscores:
mungefilename ()
{
echo "$@" | sed s,:,-,g | tr / _ | tr -d \'\"\?\[:cntrl:\]
}

# What extra options?
LAMEOPTS="-k -h -ms -b192" # Para que el mp3 quede a 192 kbps
NORMALIZEOPTS="-a -12dbFS"
MAXPROCS=2 # Run a few encoders simultaneously
PADTRACKS=y # Makes tracks 01 02 not 1 2
EXTRAVERBOSE=y # Useful for debugging
EJECTCD=y # Please eject cd when finished :-)


¿Cómo lo utilizo?

Una vez creado el archivo de configuración sólo necesitamos introducir el disco compacto en el cdrom y ejecutar en una terminal:
$ abcde

Nota: Si te marca alguno de los siguientes errores: "[ERROR] abcde: lame is not in your path" o "[ERROR] abcde: id3v2 is not in your path" quizá te hagan falta los paquetes lame y id3v2.



Fuentes:

http://www.andrews-corner.org/abcde.html#mp3
http://kimmo.suominen.com/docs/mp3-howto/

¡Buena suerte!

No hay comentarios.: