This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |