Whisper: FileNotFoundError: [WinError 2] The system cannot find the file specified – ffmpeg is not installed or is not in the PATH
To read the audio file, Whisper calls the ffmpeg program and can’t find it.
The message
File "…\whisper\audio.py", line …, in load_audio … FileNotFoundError: [WinError 2] The system cannot find the file specified (deutsch: Das System kann die angegebene Datei nicht finden.) – unter Linux/macOS: FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
Affects: OpenAI Whisper
Why is this happening?
OpenAI Whisper needs the command-line program ffmpeg to read audio and video files. ffmpeg is not installed with pip install openai-whisper. If it’s missing or its folder is not in the PATH, Windows reports that the file could not be found. This refers to ffmpeg.exe, not your audio file.
How to fix it
- In a new terminal, check whether ffmpeg is found:
ffmpeg -version. If you get an error message, ffmpeg is not installed or is not in the PATH. - Install ffmpeg on Windows, for example with
winget install ffmpeg, or alternatively withchoco install ffmpeg(Chocolatey) orscoop install ffmpeg(Scoop). - Alternatively, download a prebuilt Windows build from https://www.gyan.dev/ffmpeg/builds/, extract it, and add the
binsubfolder to the PATH. - After that, close all terminals (and VS Code) and open them again, otherwise they won’t know the new PATH yet. Check again with
ffmpeg -version. - If you use conda, ffmpeg must be available in the same environment where Whisper runs.
- On Linux:
sudo apt update && sudo apt install ffmpeg, on macOS:brew install ffmpeg.
Better not: The pip packages “ffmpeg” or “ffmpeg-python” do not include the ffmpeg program itself and do not fix this problem.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Subtitles and Transcripts with Whisper
Transcribe videos and audio locally with Whisper — easily with Buzz, polished afterward with Subtitle Edit, export as SRT, VTT, or TXT.
Terms for this
Similar errors
- UserWarning: FP16 is not supported on CPU; using FP32 instead (Whisper is running on the processor instead of the graphics card)
- Couldn't clone Stable Diffusion (Stability AI repository no longer exists)
- ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied – pip cannot modify a file
- No module named 'sageattention' (starting with --use-sage-attention fails)
- RuntimeError: espeak not installed on your system (speech output cannot find espeak-ng)
Sources
- https://raw.githubusercontent.com/openai/whisper/main/README.md
- https://github.com/openai/whisper/discussions/1379
- https://github.com/kkroening/ffmpeg-python/issues/392
- https://www.gyan.dev/ffmpeg/builds/
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.