autosub
autosub copied to clipboard
Error with ffmpeg
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?
change all the ffmpeg in autosub_app.py to ffmpeg.exe
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"):
I've already released the standalone version with ffmpeg dependency. Click here and download.
The most easy way is change the filename of ffmpeg.exe to ffmpeg.