forked from pradana.aumars/videocr
videocr | ||
.gitignore | ||
LICENSE | ||
Pipfile | ||
Pipfile.lock | ||
README.md |
videocr
import videocr
print(videocr.get_subtitles('video.avi', lang='HanS'))
Output:
0
00:00:00,000 --> 00:00:02,711
-谢谢 … 你 好 -谢谢
Thank you...Hi. Thanks.
1
00:00:02,794 --> 00:00:04,879
喝 点 什么 ?
What can I get you?
2
00:00:05,046 --> 00:00:12,554
休闲 时 光 …
For relaxing times, make it...
3
00:00:12,804 --> 00:00:14,723
三 得 利 时 光
Bartender, Bob Suntory time.
4
00:00:16,474 --> 00:00:19,144
Un, I'll have a vodka tonic.
5
00:00:19,394 --> 00:00:20,687
谢谢
Laughs Thanks.