Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert wav to ogg vorbis in Python

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.

like image 279
Isaac Sutherland Avatar asked Nov 06 '22 07:11

Isaac Sutherland


1 Answers

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/

like image 105
Ivo Wetzel Avatar answered Nov 09 '22 03:11

Ivo Wetzel