cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

Mal
New Contributor

import whisper
import ffmpeg

model = whisper.load_model("base")
transcription = model.transcribe("dbfs:/FileStore/Call_Center_Conversation__03.mp3")

print(transcription["text"])

FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

I have imported the necessary packages but also the issue is persisting, I have also tired installing the ffmpeg package then also the issue hasn't been resolved

%pip install ffmpeg-python
Please do guide to resolve the issue

 

 

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Mal, It appears you're facing a FileNotFoundError with ffmpeg while using OpenAI Whisper.

To troubleshoot, first try installing ffmpeg as a Python module with `pip install ffmpeg` in your Python environment. Next, ensure ffmpeg is accessible by running `ffmpeg -version` in the Command Prompt (or terminal). If not, download the ffmpeg executable from the official website, save it in a local directory, add the folder containing ffmpeg.exe to your PATH environment variable, and test again. Verify the path to ffmpeg on macOS with `which ffmpeg` and on Windows by checking your environment variables. Additionally, disable any interfering antivirus software and ensure the audio file you're processing is accessible and in the correct directory. Following these steps should help resolve the issue with ffmpeg and Whisper.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!