自动将视频文件生成字幕的软件autosub安装及使用(支持英文、日语和法语)

@自动将视频文件生成字幕的软件autosub安装及使用(支持英文、日语和法语)

For more information and download links of the software that you may use, please see https://github.com/agermanidis/autosub/issues/31

1.Install Python and add python.exe to path.
2.Run cmd (Win+R)
C:\Python27\Scripts\pip.exe install autosub
Or
C:\Python27\Scripts\pip.exe install https://pypi.python.org/packages/35/7b/9d5361c0f7abfcc6d826a5279b1c4501f7616505629f6c54857587ec6e37/autosub-0.3.9.tar.gz
or
(Download Last version autosub https://pypi.python.org/pypi/autosub)
C:\Python27\Scripts\pip.exe install “c:\youdownloaded\autosub-0.3.9.tar.gz”

Message Output Normal

Installing collected packages: autosub
Successfully installed autosub-0.3.9

3.Change Name File “autosub” to “autosub_app.py”
Rename C:\Python27\Scripts\autosub autosub_app.py

4.Modify with notepad.exe or Notepad++(Edit Text) autosub_app.py
4.1 In line 48 add “, delete=False”
temp = tempfile.NamedTemporaryFile(suffix=’.flac’)
by
temp = tempfile.NamedTemporaryFile(suffix=’.flac’, delete=False)
4.2 Eliminate line 53 os.system(‘stty sane’). (Optional) //Step4.2 is NOT done when I deal with it.
UPDATE For last Version Autosub (23 May 2017)
In Windows xp,7,8,10
With Program Notepad change lines :
Line 127 change
exe_file = os.path.join(path, program)
exe_file = os.path.join(path, program + “.exe”)
Line 47 change
temp = tempfile.NamedTemporaryFile(suffix=’.flac’)
temp = tempfile.NamedTemporaryFile(suffix=’.flac’, delete=False)

5.Download(https://ffmpeg.zeranoe.com/builds/) and executive command:
Copy ffmpeg.exe(plus your path) C:\Python27\

6.Restart Windows

7.Test Script C:\Python27\python.exe C:\Python27\scripts\autosub_app.py --list-languages

8.Download autosub_app 0.3.12.zip and uncompress it. Run Install_AutoSub.bat and an opened folder will popup. Don’t close it. Copy AutoSub_English.bat or the other two(Japanese & Spanish) to it. And then copy autosub_app.py in the same folder to replace file:C:\Python27\Scripts\autosub_app.py.
9.Right-click the single video file and select “send to–AutoSub_English.bat”.Just wait for a few minutes and the program will process it automatically. Finally you will get the corresponding subtitle file fileName.srt.

你可能感兴趣的:(自动将视频文件生成字幕的软件autosub安装及使用(支持英文、日语和法语))