📜  linux 将 mp3 转换为 ogg - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:28.609000             🧑  作者: Mango

代码示例1
# single file
ffmpeg -i input.mp3 -c:a libvorbis -q:a 4 output.ogg

# whole directory
for f in ./*.mp3; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f/%mp3/ogg}"; done