Small python script which makes .SRT files from Excel or csv files

Requirement : Python3 , Pandas Library

This script uses python3 to convert excel file into .srt file (used for subtitle in videos)

excel file should be in following format

Column 1: Text
Column 2: start timing in (hh:mm:ss) format
Column 3: milliseconds
Column 4: end timing in (hh:mm:ss) format
Column 5: milliseconds

Start from first row – first column (A1) WITHOUT headers

Just change file name to “input.xlsx” or change inside code 🙂


View Github