这几天出于兴趣写了一个关于字幕自动匹配下载和字幕修改的工具
输入文件路径就可以自动下载出来对应匹配的字幕解析中文英文混杂的字幕,将英文或者中文单独提取出来工具比较简陋,字幕匹配用了一个外国SubDB的API
但是可能是不太全吧感觉,匹配度虽然是100% 但是能匹配到的不是特别多,以后有时间还会继续修改这个项目吧,加一些中文匹配之类的
Github: https://github.com/WJerry0227/SubtitleUtil
Subtitle Util has a list of functions below
1 Subtitle Transfer2 Subtitle DownloaderSee each util for more details.
Requirement: - python 2 - python -> urllib2
Installation:
- git clone https://github.com/WJerry0227/SubtitleUtil.git - cd SubtitleUtil - python [Subtitle Util Type].py [Usage]Contact:
wjerry227@gmail.com
About: Developed by WJerry0227
It is a small python program to remove Chinese or English characters in your subtitle file
When I was watching This is us on my computer. I hate the Chinese subtitle mixed with English subtitle.
Therefore, this python program came to mind.
It will create a new file in your old path with the new postfix.
The encoding of your subtitle will be automatically detected.
It is a small python program to download subtitle for your video
I always found the subtitle download from Internet does not fit with my video. Then I search this website SubDB. Thanks to the API it provides.
It will automatically download a [VIDEONAME].srt file in your video path.