Quantcast
Channel: MediaSPIP
Viewing all articles
Browse latest Browse all 117701

"Couldn't find ffmpeg or avconv" error while importing pydub

$
0
0

I am trying to convert .mp3 file to .wav. I am facing issue. I have tried all the suggestions given in stackoverflow but no use. ffmpeg is also installed successfully. Please find below code I am using

from pydub import AudioSegment
src = 'Audio_1.mp3'
dst = 'Audio_2.wav'
sound = AudioSegment.from_mp3(src)
sound.export(dst, format="wav")

I am facing below errors:

RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
FileNotFoundError: [WinError 2] The system cannot find the file specified

I have tried all the existing solutions in stackoverflow but nothing could help. ffmpeg is installed successfully but still the issue. Please help me in this


Viewing all articles
Browse latest Browse all 117701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>