I've got a folder of mp3's I want to convert to .oggs in a specific sample/bit rate e.g. 44.1k, 160 kbps. And then zip them up individually to host online.
I put Python in the title because I enjoy using it but I'm willing to use any free software or apps as well.
Is there a library you would recommend? I found this thread: Python library for converting files to MP3 and setting their quality But it looks fairly outdated
What about for zipping files? I found https://docs.python.org/2/library/zipfile.html which seems like zipfile.zipfile and zipfile.write would cover me.
Thank you!
答案 0 :(得分:0)
这里没有任何选项标志:
lame --decode input.mp3 intermediate.wav
oggenc intermediate.wav -o output.ogg
zip output.zip output.ogg
您可以使用Python或Bash编写脚本。