wiki:linux/Audio/abcde

abcde, audiotools


Install

# apt install abcde, mkcue

The mkcue Package is only needed, if you want to create a cuesheet via abcde.

Rip a Audio-CD to output in a single file

$ abcde -1 -M

Settings

Copy /etc/abcde.conf as dotfile .abcde.conf into your $HOME directory. At this time my settings are:

# The CDDB protocol level.                                                     
# Right now 5 is latin1 output and 6 is UTF8 encoding.                         
#CDDBPROTO=6                                                                   
CDDBPROTO=6
…
# Track padding: force abcde to pad tracks using 0, so every song uses a two   
# digit entry. If set to "y", even a single song encoding outputs a file like  
# 01.my_song.ext                                                               
#PADTRACKS=n                                                                   
PADTRACKS=y 
…
# OUTPUTTYPE can be any of a number of formats, either a single format         
# (e.g. "ogg") or a combination of them separated with ","                     
# (e.g. "flac,mp3"). Currently recognised and supported are:                   
# "flac", "m4a", "mp3, "mpc", "ogg", "opus", "mka", "spx", "vorbis", "wav", "wv", "ape", "aiff"
#OUTPUTTYPE=ogg                                                                
OUTPUTTYPE=wav                                                                 
                                                                               
# Output filename format - change this to reflect your inner desire to         
# organize things differently than everyone else :)                            
# You have the following variables at your disposal:                           
# OUTPUT, GENRE, ALBUMFILE, ARTISTFILE, TRACKFILE, TRACKNUM and YEAR.          
# Make sure to single-quote this variable. abcde will automatically create     
# the directory portion of this filename.                                      
# NOTICE: OUTPUTTYPE has been deprecated in the OUTPUTFORMAT string.           
# Since multiple-output was integrated we always append the file type          
# to the files. Remove it from your user defined string if you are getting     
# files like ".ogg.ogg".                                                       
#OUTPUTFORMAT='${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'            
OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'             
                                                                               
# Like OUTPUTFORMAT but for Various Artists discs.                             
#VAOUTPUTFORMAT='Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'  
VAOUTPUTFORMAT='Various Artists/${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'         
                                                                               
# Like OUTPUTFORMAT and VAOUTPUTFORMAT but for the ONEFILE rips.               
#ONETRACKOUTPUTFORMAT=$OUTPUTFORMAT                                            
#VAONETRACKOUTPUTFORMAT=$VAOUTPUTFORMAT                                        
ONETRACKOUTPUTFORMAT=$OUTPUTFORMAT                                             
VAONETRACKOUTPUTFORMAT=$VAOUTPUTFORMAT
…
# Do not replace spaces with underscores:                                      
                                                                               
mungefilename ()                                                               
{                                                                              
echo "$@" | sed s,:,\ -,g | tr / \__ | tr -d \'\"\?\[:cntrl:\]                 
}   
…
# If you'd like to have abcde eject the cdrom after all the tracks have been   
# read, uncomment the following line.                                          
#EJECTCD=y                                                                     
EJECTCD=y 
…

Extract and convert songs from a single file

see audiotools

Last modified 4 months ago Last modified on Dec 4, 2019, 11:35:38 AM