auto-subs icon indicating copy to clipboard operation
auto-subs copied to clipboard

[Errno 2] No such file or directory: 'ffmpeg'

Open uiosagapetos opened this issue 1 year ago • 3 comments

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!!!

uiosagapetos avatar Aug 04 '24 18:08 uiosagapetos

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😝

TonyPfau avatar Aug 25 '24 22:08 TonyPfau

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.

BobbyRaduloff avatar Sep 11 '24 19:09 BobbyRaduloff

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.

jonasblanc avatar Nov 03 '24 18:11 jonasblanc