[Errno 2] No such file or directory: 'ffmpeg'
This is the output in the console when I try to generate subs from macOS Sonoma 14.5.
I've checked all the installation requirements more than once. It seems to be an issue in the path of ffmpeg.
Anyone got the same issue and solved? thanks in advance!
The script is awesome!!!
following, have yet to get anything to run, numpy not found, went back below2.0 on numpy but no idea if that got fixed because then no directory ffmpeg...hope someone has a fix. from console “[Errno 2] No such file or directory: 'ffmpeg”. on mac i9 latest sonoma latest DR v19 5 hour head scratching😝
the script assumes ffmpeg is installed through homebrew i.e. path is /opt/homebrew/bin/ffmpeg.
change it manually in the script if your ffmpeg is somewhere else. you can check with which ffmpeg command.
Edit: I was able to make it work by specifying the path to the directory containing the ffmpeg binary. In my case it looks something like this:
ffmpeg_dir ='/usr/local/bin'
os.environ['PATH'] = f"{ffmpeg_dir}:{os.environ['PATH']}"
Previous comment: I have the same issue. I tried setting os.environ['FFMPEG'] to the path given by which ffmpeg but it's not solving the issue. I have a hard time finding which line of which dependency is causing the error since it's not included in the error message.