make subtitle form English subtitle to Chinese&English subtitle used google Translate.
- Extract the subtitles's starting time and ending time, It's twice than the subtitle's rows
00:00:22,640 --> 00:00:24,980
A kokujin came to my door.
- If it's more than one line in the subtitle block, it should be combine into one line because it belonging to same sentence.
So we can translate it precisely.
00:02:19,090 --> 00:02:23,430
That is why
I accepted the films.
- Some rows many be the same sentence, we should combine it.
101
00:08:18,040 --> 00:08:22,000
Once fully opened, the gateway
produces an extreme
102
00:08:22,040 --> 00:08:24,630
amount of magnetic energy.
- Inside the bracket, it's some background music hint, we can remove it.
00:09:02,790 --> 00:09:05,920
(indistinct chatter,dog barking)
- We also can remove music hint.
00:02:39,360 --> 00:02:43,910
♪ Edelweiss ♪
- Remove the name before main dialogue.
00:08:25,880 --> 00:08:28,460
TECHNICIAN:
Ready for activation.
- Remove some symbols before the dialogue.
00:37:37,460 --> 00:37:41,170
-Do I need a drink.
Run the script on the CMD like this:
python3 scriptPath inputSubt
lePath