我有一个简短的 bash 脚本,旨在将充满 .mp3 文件的文件夹转换为 .m4r 铃声。我无法弄清楚为什么它会引发以下错误:
“错误:ExtAudioFileCreateWithURL 失败('fmt?')”
#!/bin/bash
cd "/path/to/directory/containing/mp3s"
for i in *.mp3; do
baseFilename=$( basename ${i} .mp3 )
afconvert -f m4af ${i} -o "/path/to/new/location/${baseFilename}.m4r"
done
exit 0