我看到CD Ripper abcde的最新开发版本现已提供AIFF编码。
我如何在Ubuntu的Xenial Xerus下轻松地进行测试?
(完全免责声明:我个人在abcde中添加了AIFF编码...)
您甚至可以在没有完全安装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
!
参考:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句