我有一张完整的音频CD .ape
,与.cue
和.log
文件一起使用MonkeyAudio()格式翻录为单个音频文件(使用“精确音频复制”,来自.cue
文件中的注释)。
如果能从.cue
文件中获得正确的ID3信息,最好将一个大音频文件拆分为单个轨道的MP3 文件?
我有一张完整的音频CD .ape
,与.cue
和.log
文件一起使用MonkeyAudio()格式翻录为单个音频文件(使用“精确音频复制”,来自.cue
文件中的注释)。
如果能从.cue
文件中获得正确的ID3信息,最好将一个大音频文件拆分为单个轨道的MP3 文件?
Answers:
这是我使用的脚本(其相关性在注释中):
#!/bin/bash
# ll-cue2mp3-320.bash
# cue and audio file basename must be the same. Usage:
# ll-cue2mp3-320.bash `basename *cue .cue`
# It makes mp3 folder in the dir containing rip, put splits
# there in the format 'trackNumber - trackTitle', and convert splits
# to mp3s. Tags are not transfered to the newly born mp3s.
#
# You can specify the this format with a second arg. Default value
# is '%n - %t'. Other options (them are lltag options):
#
# %a means ARTIST
# %t means TITLE
# %A means ALBUM
# %n means NUMBER
# %g means GENRE
# %d means DATE
# %c means COMMENT
# %i means that the text has to be ignored
# %F means the original basename of the file
# %E means the original extension of the file
# %P means the original path of the file
#
# Dependences: lltag, lame, cuetools, shntool, flac, wavpack,
# parallel, ape support (if you're going to split ape files)
# Don't forget to put input args in quotes, e.g:
# ll-cue2mp3-320 "name of the cue file" "%a - %t"
#
# TODO:
# convert tags to utf-8 - if they are not
# parsing 1st arg:
fl="$1"
if [ -e "$fl".flac ]; then
ex="flac"
elif [ -e "$fl".ape ]; then
ex="ape"
else [ -e "$fl".wv ]
ex="wv"
fi
# parsing 2nd arg:
frmt="$2"
frmt=${2:-"%n - %t"}
# splitting the dump:
mkdir mp3
cuebreakpoints "$fl".cue | shnsplit -o flac -d mp3 -a split "$fl".$ex && \
cuetag "$fl".cue mp3/split*\.flac
cd mp3
# renaming splits basing on tags:
for i in `ls`; do
lltag --yes --no-tagging --rename "$frmt" $i
done
# converting splits to mp3:
parallel -j+0 flac -d {} ::: *\.flac
parallel -j+0 lame --cbr -b 320 -q 0 {} ::: *\.wav
find . -name "*.flac" | parallel -j+0 rm
find . -name "*.wav" | parallel -j+0 rm
rename 's/\.wav//' *
# done!
shnsplit
在Ubuntu 14.04上
sudo add-apt-repository -y ppa:flacon
sudo apt-get update
sudo apt-get install -y flacon
shntool split -f *.cue -o flac -t '%n - %p - %t' *.ape
flacon
是的GUI shntool
,但它附带了所需的所有编解码器...否则出现错误:
shnsplit: warning: failed to read data from input file using format: [ape]
shnsplit: + you may not have permission to read file: [example.ape]
shnsplit: + arguments may be incorrect for decoder: [mac]
shnsplit: + verify that the decoder is installed and in your PATH
shnsplit: + this file may be unsupported, truncated or corrupt
shnsplit: error: cannot continue due to error(s) shown above
特别是,flacon
PPA提供了依赖于CLI工具的mac
软件包(Monkey的音频控制台),它似乎是缺少的主要成分。flacon
mac
您可以使用Ape Ripper从带有提示文件的Ape图像中提取音轨,Ape Ripper还可以将音轨转换为带有ID3标签的MP3文件。
产品网址:http : //www.softrm.com/ape-ripper.htm
Ape Ripper是共享软件,您可以使用试用版处理3个Ape图像。
cuesplitter
也可以。