如何将 AIFF 编码与 abcde 一起使用?

如何将 AIFF 编码与 abcde 一起使用?

我看到 AIFF 编码是现已推出使用 CD 翻录器 abcde 的最新开发版本。

我如何在 Ubuntu 的 Xenial Xerus 下轻松地测试这一点?

(完整免责声明:我亲自将 AIFF 编码添加到 abcde...)

答案1

您甚至无需完整安装 abcde,即可在 Ubuntu 下轻松测试此操作。这将允许您在 abcde 2.8.2 发布之前测试 AIFF 编码 :)。四个简单步骤:

1.安装一些所需的应用程序...

以下是一些先决条件必须安装。打开终端窗口并运行以下命令:

sudo apt-get install cd-discid cdparanoia abcde ffmpeg git

(这还将安装库存的 Ubuntu abcde,因为这可能是安装脚本 cddb-tool 的最简单方法。)

2.放置配置文件:

当放置详细的配置文件时,abcde 运行效果最佳。首先创建一个空文件:

touch $HOME/.abcde.conf

现在使用您喜欢的文本编辑器将以下配置详细信息放入此文件中:

# -----------------$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 :-)

3. 获取 git abcde 的副本:

现在使用你的 git 客户端下载 abcde git 树的最新版本:

git clone http://git.einval.com/git/abcde.git ~/abcde

这会在 中留下 abcde 的工作副本$HOME/abcde

4. 运行abcde:

现在到了好玩的部分 :)。将音频 CD 放入驱动器并运行以下两个命令:

cd $HOME/abcde
./abcde

(请注意,此./部分很重要,因为这将仅引用在此处下载的 abcde 副本,而不是系统上安装的发行版本。)如果一切顺利,您的音频 CD 现在将轻松转换为 AIFF,文件将被整齐地标记,然后放入$HOME/Music

参考:

相关内容