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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group