I have an app that processes audio files and converts them to ‘wav’ format. This works locally on my Mac, however in DigitalOcean, when recording audio, i get the below error, followed by a 500:
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
Unexpected error: [Errno 2] No such file or directory: 'ffprobe'
Not sure why this error arises because pydub works correctly when I run the application locally
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey there,
That error means
ffprobe
isn’t installed on your DigitalOcean server.It works locally because your Mac has it by default, but for Droplets, you’ll need to install it manually.
Just SSH into your Droplet and run:
That’ll install both
ffmpeg
andffprobe
, and yourpydub
audio processing should work just like it does locally.Let me know if you’re still getting errors after that!
- Bobby
Heya,
The error you’re seeing on your DigitalOcean server:
means that the
pydub
library is trying to useffprobe
to process audio files, butffprobe
(a tool that comes withffmpeg
) is not installed on your DigitalOcean server.Run the following commands on your droplet:
This will install both
ffmpeg
andffprobe
, andpydub
will then be able to use them.