Skip to content
Advertisement

Trouble with converting webm into mp3 with pydub in python

so basically I want to convert song what I downloaded from youtube in webm and convert to into mp3

when I wanted export song just with song.export("neco.mp3") it didn’t work too

I have in workfolder ffmpeg.exe and ffprobe.exe

here is the code

JavaScript

here is the output of the console

JavaScript

I think it is something with codec but I have no idea what to do

Advertisement

Answer

Had a similar problem with ffmpeg.exe (4.3.1),
but everything works fine with ffmpeg-20200802-b48397e-win64-static,
since mp3_mf is not used in the standard container there (WAV/MP3 in your problem, AVI in my problem).

So if you can’t switch to a different ffmpeg version,
you should force it to use libmp3lame, not just mp3
and the use of (System?)-codec mp3_mf :
So don’t use: -f mp3
Instead use (or add): -c:a libmp3lame

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement