autosub icon indicating copy to clipboard operation
autosub copied to clipboard

Error with ffmpeg

Open marimemad opened this issue 5 years ago • 4 comments

when trying to run it, is says:

C:\Users"NAME">C:\Python27\python.exe C:\Python27\scripts\autosub_app.p y -S en -D en c:"video name" ffmpeg: Executable not found on machine. Traceback (most recent call last): File "C:\Python27\scripts\autosub_app.py", line 304, in sys.exit(main()) File "C:\Python27\scripts\autosub_app.py", line 230, in main audio_filename, audio_rate = extract_audio(args.source_path) File "C:\Python27\scripts\autosub_app.py", line 140, in extract_audio raise Exception("Dependency not found: ffmpeg") Exception: Dependency not found: ffmpeg

Although I have copied ffmpeg.exe in Python27 folder. Any help?

marimemad avatar Dec 03 '18 13:12 marimemad

change all the ffmpeg in autosub_app.py to ffmpeg.exe

huangzaishoudu avatar Dec 25 '18 02:12 huangzaishoudu

To add detail to @huangzaishoudu 's answer, You only need to change this line if not which("ffmpeg"): to this if not which("ffmpeg.exe"):

andibakti avatar Jul 26 '19 12:07 andibakti

I've already released the standalone version with ffmpeg dependency. Click here and download.

BingLingGroup avatar Jul 30 '19 12:07 BingLingGroup

The most easy way is change the filename of ffmpeg.exe to ffmpeg.

huanmingcn avatar Jan 28 '20 06:01 huanmingcn