cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
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
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.