FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg' #1379
Replies: 9 comments 7 replies
-
Facing the same issue, any solutions yet? |
Beta Was this translation helpful? Give feedback.
-
I have the same issue, any solutions? |
Beta Was this translation helpful? Give feedback.
-
Or this prior discussion may be helpful: |
Beta Was this translation helpful? Give feedback.
-
once I installed FFMPEG and add it to the path, I still had issues running it via terminal in VS Code, but running it through windows command prompt solved my issues |
Beta Was this translation helpful? Give feedback.
-
In my case, ffmpeg was installed in the base environment. When I switched to another conda environment, the same error appears. If you are also using conda, the simplest solution might be just to install ffmpeg via conda: |
Beta Was this translation helpful? Give feedback.
-
Just encountered the same error on ubuntu, and solved it using the following way.
Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hi, everyone, I am quite confusing with this error. As long as I am using a40 gpu in my university HPC to test with whisper-large model, it shows this ffmpeg error! But when I used v100 gpu, this error is gone, and the whisper-large can successfully decode something. When I use "which ffmpeg", it shows the location "/usr/bin/ffmpeg" By the way, on our hpc system, we do not have sudo accessment TT If anyone has some idea about why this error is gpu dependent, please do leave me a message, need you help! |
Beta Was this translation helpful? Give feedback.
-
Can you provide logs? |
Beta Was this translation helpful? Give feedback.
-
Hi, I still have a question, when directly use whisper-large model to decode, in the code miniconda/envs/espnet/lib/python3.8/site-packages/whisper/audio.py it uses ffmpeg to load the audio but not torchaudio to load the audio. def load_audio(file: str, sr: int = SAMPLE_RATE):
If I use torchaudio to replace ffmpeg, import torchaudio def load_audio(file: str, sr: int = SAMPLE_RATE):
I think these are the same. |
Beta Was this translation helpful? Give feedback.
-
Hello, I am using a Mac with a M1 chip and I have an issue.
I tried to install whisper to transcribe an audio, I followed the instruction, I managed to install the package whisper, and ffmpeg (using homebrew). But when I use the following command : transcription = model.transcribe(audio_path, fp16=False), I get the following error : FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'. Does anyone has an idea of how I could fix this ? Thank you
Beta Was this translation helpful? Give feedback.
All reactions