在Python中将wav转换为ogg vorbis
如何使用 Python 将 wav 文件转码为 ogg vorbis 格式?
我可以使用 PyMedia 1.3.7.3 转换为 mp3,但是当我将输出流类型设置为“ogg”时,出现错误:oggvorbis_encode_init: init_encoder failed
并且脚本终止。
How can I transcode a wav file to ogg vorbis format using Python?
I can convert to mp3 using PyMedia 1.3.7.3, but when I set the output stream type to 'ogg', I get the error: oggvorbis_encode_init: init_encoder failed
and the script dies.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 PyMedia 的网站:
您需要安装Vorbis才能使OGG编码器工作。由于您的问题的旧版本告诉我您在 Windows 上,因此您可以在这里获取它:
http://www.vorbis.com/setup_windows/
From PyMedia's website:
You need to install Vorbis in order for the OGG encoder to work. Since the old version of your question tells me that you're on windows you can grab it here:
http://www.vorbis.com/setup_windows/