Skip to content

Instantly share code, notes, and snippets.

@stasinos
stasinos / SRTfix.py
Last active October 31, 2017 04:12 — forked from mbrezu/SRTfix.py
A small script to fix SRT times.
# Tries to fix a srt file to match the sub time with the actual dialog time.
# Inputs:
# - the srt file
# - a list of (srt time, spoken dialog time) pairs that will be used
# to infer the parameters for the srt time adjustment
# Outputs:
# - the corrected srt file to standard output
# - the correction parameters to standard error
import sys