I'm trying to export a file as mp3 in pydub, but I get this error:
Automatic encoder selection failed for output stream #0:0. Default encoder for format mp3 is probably disabled. Please choose an encoder manually
How do I select an encoder manually, what is the default encoder, and how could I enable it?
PS: My Pydub opens mp3 files without any problem. I'm using Windows and Libav.
wav
file to ensure that your file is encodable? Check to see that your mp3 codec is installed. – Closetffmpeg
,gstreamer
,ubuntu-restricted-codecs
, etc. You can download and compile the source for Lame (mp3 encoder) on Mac/Linux/Windows here: lame.sourceforge.net/download.php . – Closet