1. 安装 Monkey's Audio Console Front End包
audacious-mac_0.2.0-1_i386.deb
2. 安装lame、mp3splt工具
sudo apt-get install lame
sudo apt-get install mp3splt
sudo apt-get install mp3splt
3. 转换脚本
感谢Ubuntu中文社区的各位达达:zhengb66、FFForg和TheThirdGhost
根据他们的脚本修改而成,可以将整轨的ape音乐(ape+cue文件)转换成分轨的mp3文件(质量为320kb,可以自己在脚本中修改)
#!/bin/sh
PARAM=$#
if [ $PARAM -eq 2 ]; then
echo ""
echo ""
echo "***********************************"
echo *****Step1 转换ape为wav*****
echo "***********************************"
echo ""
echo ""
mac "$1" "`echo $1 | sed -e 's/.ape$//'`".wav -d
echo ""
echo ""
echo "***********************************"
echo *****Step2 转换wav为mp3*****
echo "***********************************"
echo ""
echo ""
lame -h -b 320 "`echo $1 | sed -e 's/.ape$//'`".wav "`echo $1 | sed -e 's/.ape$//'`".mp3
rm "`echo $1 | sed -e 's/.ape$//'`".wav
echo "************************************"
echo *****Step3 切分mp3文件*****
echo "************************************"
mp3splt "`echo $1 | sed -e 's/.ape$//'`".mp3 -c "`echo $2 | sed -e 's/.cue$//'`".cue
rm "`echo $1 | sed -e 's/.ape$//'`".mp3
echo ""
echo ******转换完成!*****
else
echo -e "usage: ape2mp3 filename(ape) filename(cue)"
fi
PARAM=$#
if [ $PARAM -eq 2 ]; then
echo ""
echo ""
echo "***********************************"
echo *****Step1 转换ape为wav*****
echo "***********************************"
echo ""
echo ""
mac "$1" "`echo $1 | sed -e 's/.ape$//'`".wav -d
echo ""
echo ""
echo "***********************************"
echo *****Step2 转换wav为mp3*****
echo "***********************************"
echo ""
echo ""
lame -h -b 320 "`echo $1 | sed -e 's/.ape$//'`".wav "`echo $1 | sed -e 's/.ape$//'`".mp3
rm "`echo $1 | sed -e 's/.ape$//'`".wav
echo "************************************"
echo *****Step3 切分mp3文件*****
echo "************************************"
mp3splt "`echo $1 | sed -e 's/.ape$//'`".mp3 -c "`echo $2 | sed -e 's/.cue$//'`".cue
rm "`echo $1 | sed -e 's/.ape$//'`".mp3
echo ""
echo ******转换完成!*****
else
echo -e "usage: ape2mp3 filename(ape) filename(cue)"
fi