# -----------------$HOME/.abcde.conf----------------- #
#
# A sample configuration file to convert music cds to
# Audio Interchange File Format (AIFF). This requires
# abcde version 2.8.2 and a recent copy of FFmpeg
#
# http://andrews-corner.org/linux/abcde/index.html
# -------------------------------------------------- #
# Encode tracks immediately after reading. Saves disk space, gives
# better reading of 'scratchy' disks and better troubleshooting of
# encoding process but slows the operation of abcde quite a bit:
LOWDISK=y
# Specify the method to use to retrieve the track information,
# the alternative is to specify 'musicbrainz':
CDDBMETHOD=cddb
# Make a local cache of cddb entries and then volunteer to use
# these entries when and if they match the cd:
CDDBCOPYLOCAL="y"
CDDBLOCALDIR="$HOME/.cddb"
CDDBLOCALRECURSIVE="y"
CDDBUSELOCAL="y"
# Specify the encoder to use for Audio Interchange File Format (AIFF):
AIFFENCODERSYNTAX=ffmpeg
# 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/ffmpeg
FFMPEG=ffmpeg
# Specify your required AIFF encoding options here. These options are
# needed by FFmpeg for tagging and selection of id3v2 version:
# 1. '-write_id3v2 1' allows id3v2 tagging while '-write_id3v2 0' disables tagging
# 2. '-id3v2_version 4' gives version id3v2.4 while '3' gives id3v2.3
AIFFENCOPTS="-write_id3v2 1 -id3v2_version 4"
# Output type for AIFF:
OUTPUTTYPE="aiff"
# The cd ripping program to use. There are a few choices here: cdda2wav,
# dagrab, cddafs (Mac OS X only) and flac. New to abcde 2.7 is 'libcdio'.
CDROMREADERSYNTAX=cdparanoia
# Give the location of the ripping program and pass any extra options,
# if using libcdio set 'CD_PARANOIA=cd-paranoia'.
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,encode,tag,move,clean
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
VAOUTPUTFORMAT='${OUTPUT}/Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'
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'
# This function takes out dots preceding the album name, and removes a grab
# bag of illegal characters. It allows spaces, if you do not wish spaces add
# in -e 's/ /_/g' after the first sed command.
mungefilename ()
{
echo "$@" | sed -e 's/^\.*//' | tr -d ":><|*/\"'?[:cntrl:]"
}
# What extra options?
MAXPROCS=2 # Run a few encoders simultaneously
PADTRACKS=y # Makes tracks 01 02 not 1 2
EXTRAVERBOSE=2 # Useful for debugging
COMMENT='abcde version 2.8.2' # Place a comment...
EJECTCD=y # Please eject cd when finished :-)
您可以在 Ubuntu 下轻松测试它,甚至无需完整安装 abcde。这将允许您在 abcde 2.8.2 发布之前测试 AIFF 编码:)。四个简单的步骤:
1.安装一些必需的应用程序...
以下是一些必须安装的先决条件。打开终端窗口并运行以下命令:
(这也将安装现有的 Ubuntu abcde,因为这可能也是安装脚本 cddb-tool 的最简单方法。)
2.放置一个配置文件:
放置详细配置文件时,abcde 运行最佳。首先创建一个空文件:
现在使用您喜欢的文本编辑器在此文件中放置以下配置详细信息:
3. 获取 git abcde 的副本:
现在使用您的 git 客户端下载最新版本的 abcde git 树:
这将留下 abcde 的工作副本
$HOME/abcde
。4. 运行 abcde:
现在有趣的一点:)。将音频 CD 放入驱动器并运行以下两个命令:
(请注意,该
./
部分很重要,因为这将仅引用此处下载的 abcde 副本,而不是还安装在您的系统上的发行版。)如果一切顺利,您的音频 CD 现在将轻松转换为 AIFF,文件整齐地标记和然后放入$HOME/Music
!参考: