- Transform SRT subtitles to XLS file storing different languages
- After your own translation, transform XLS file to VTT subtitles
- OR you can directly transform SRT subtitles to VTT subtitles
- Python: v3.4 or higher
- Python Package:
xlrd
(v0.9.4),xlwt
(v1.0.0)- use
pip install xlrd && pip install xlwt
to install
- use
-
transform SRT file to VTT file
- NOTE original text will be commented in VTT file
$ python srt2vtt.py ./in/mySubtitle.srt ./out/vttFolder/
-
transform SRT file to XLS file
$ python srt2xls.py ./path/to/my.srt ./path/to/xls
- would generate file
my.xls
-
transform translated XLS file to VTT file
$ python xls2srt.py ./path/to/my.xls ./path/to/vtt
- would generate file
my.vtt