2 Star 1 Fork 2

Erasin / bashtools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ape2mp3.sh 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
Erasin 提交于 2015-08-13 19:20 . ape
#!/bin/sh
if [ $# -eq 2 ]
then
echo "***********************************"
echo "*****Step1转换ape为wav*****"
echo "***********************************"
ffmpeg -i "$1" .temp.wav
echo "***********************************"
echo "*****Step2转换wav为mp3*****"
echo "***********************************"
lame -b 320 .temp.wav .temp.mp3
echo "************************************"
echo "*****Step3切分mp3文件*****"
echo "************************************"
enconv "$2"
mp3splt .temp.mp3 -c "$2"
rm .temp.wav .temp.mp3
echo "******转换完成!****"
else if [ $# -eq 1 ]
then
echo "***********************************"
echo "*****Step1转换ape为wav*****"
echo "***********************************"
ffmpeg -i "$1" .temp.wav
echo "***********************************"
echo "*****Step2转换wav为mp3*****"
echo "***********************************"
lame -b 320 .temp.wav "$1".mp3
rm .temp.wav
else
echo "usage:ape2mp3 filename(ape) filename(cue)"
fi
fi
## chmod +x ape2mp3
## ape2mp3 stefanie.ape stefanie.cue
Shell
1
https://gitee.com/erasin/bashtools.git
git@gitee.com:erasin/bashtools.git
erasin
bashtools
bashtools
master

搜索帮助