Pydub unable to locate ffprobe

for LINUX/ubuntu/deb users:

sudo apt install ffmpeg


I had the same problem, but I solved it five minutes ago.

Here is the solution:

  1. Download ffmpeg file into your computer and install it.

  2. Pass the system path of the ffmpeg file location. enter image description here

(¥ means \)

I put the file into C:\\ffmpeg\\ffmpeg\\bin\\ffmpeg.exe

(Attention: This is after I changed the filename)

from pydub import AudioSegment
AudioSegment.converter = "C:\\ffmpeg\\ffmpeg\\bin\\ffmpeg.exe"
AudioSegment.ffmpeg = "C:\\ffmpeg\\ffmpeg\\bin\\ffmpeg.exe"
AudioSegment.ffprobe ="C:\\ffmpeg\\ffmpeg\\bin\\ffprobe.exe"

Put these lines after the import sentence.

At last, reboot your computer

I have suffered from this problem very much, but the problem is solved now.


To add on to @Gopesh Kwandelwal's answer

sudo apt install ffmpeg

an alternative is to have Anaconda or Miniconda installed, then use:
conda install ffmpeg

This worked for me when inside a custom environment, and didn't even require restarting the kernel, let alone restarting the computer. (I couldn't comment on that thread b/c I don't have enough reputation).