Ubuntu 下Ape转Mp3[88250原创]

1. 安装 Monkey's Audio Console Front End包

audacious-mac_0.2.0-1_i386.deb

mac_3.99-u4-b5-1_i386.deb

2. 安装lame、mp3splt工具


sudoapt - get installlame
sudo apt-get install mp3splt

3. 转换脚本

感谢Ubuntu中文社区的各位达达:zhengb66、FFForgTheThirdGhost

根据他们的脚本修改而成,可以将整轨的ape音乐(ape+cue文件)转换成分轨的mp3文件(质量为320kb,可以自己在脚本中修改)

#!/bin/sh
PARAM
= $#
if
[ $PARAM-eq2 ] ; 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:ape2mp3filename(ape)filename(cue) "
fi


你可能感兴趣的:(ubuntu)