BingLingGroup / autosub

Command-line utility to transcribe/translate from video/audio/subtitles to subtitles
GNU General Public License v2.0
1.99k stars 245 forks source link

FileNotFoundError: [WinError 2] 系统找不到指定的文件。 #95

Closed Yuelioi closed 4 years ago

Yuelioi commented 4 years ago

我的代码是 autosub -i C:\Python37\77.mp4 -S en-us

结果Traceback (most recent call last): File "C:\Python37\Scripts\autosub-script.py", line 11, in load_entry_point('autosub==0.5.4a0', 'console_scripts', 'autosub')() File "C:\Python37\lib\site-packages\autosub-0.5.4a0-py3.7.egg\autosub__init.py", line 147, in main styles_list=styles_list) File "C:\Python37\lib\site-packages\autosub-0.5.4a0-py3.7.egg\autosub\cmdline_utils.py", line 876, in audio_or_video_prcs if not ffmpeg_utils.ffprobe_check_file(audio_wav): File "C:\Python37\lib\site-packages\autosub-0.5.4a0-py3.7.egg\autosub\ffmpeg_utils.py", line 150, in ffprobe_check_file shell=False) File "C:\Python37\lib\subprocess.py", line 411, in check_output *kwargs).stdout File "C:\Python37\lib\subprocess.py", line 488, in run with Popen(popenargs, **kwargs) as process: File "C:\Python37\lib\subprocess.py", line 800, in init__ restore_signals, start_new_session) File "C:\Python37\lib\subprocess.py", line 1207, in _execute_child startupinfo) FileNotFoundError: [WinError 2] 系统找不到指定的文件。

BingLingGroup commented 4 years ago

你安装了ffprobe没? 0.5.4a在依赖查找方面还有些问题,建议安装dev分支最新版。

pip install git+https://github.com/BingLingGroup/autosub.git@dev --upgrade
BingLingGroup commented 4 years ago

太长时间没有回复,先关了,关闭以后仍可以回复。