开发者

Convert wav to ogg vorbis in Python

开发者 https://www.devze.com 2023-01-20 21:39 出处:网络
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 开发者_JAVA技巧set the output stream type to \'ogg\', I get the error: oggvorb

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 开发者_JAVA技巧set the output stream type to 'ogg', I get the error: oggvorbis_encode_init: init_encoder failed and the script dies.


From PyMedia's website:

OGG( optional with vorbis library )

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消