Code for fixing subtitles.
Can pad to make subtitles appear on screen longer,
shift subtitles so they appear at the right time,
shift progressively if subtitles get out of sync as time goes on.
Choose parameters in config.
How to use progressive shifting:
- Shift subtitles so they are synced correctly at some time.
- Use new srt file as input.
- Set progressive_shifting=1
- Set shift=0.
- Don't change padding from what you used when syncing.
- Set time subtitles are synced as first_time in config.
- Find another point later when they are out of sync again,
- Set second_time = time the correct subtitles appear.
- Set interval_shift as how long the subtitles were delayed.