Python script for shifting (advancing or delaying) srt subtitle files.
Runs in console mode (Unix, or DOS, MacOs ).
usage:
====
[python] srtShift.py [-h] [-i INITIALDELAY] [-f FINALDELAY] srtFile
positional arguments:
srtFile name of subtitle srt file (without type '.srt')
optional arguments:
-h, --help show this help message and exit
-i INITIALDELAY, --initialDelay INITIALDELAY
initial delay, in seconds : a positive REAL NUMBER
(e.g. 5.0 for 5 seconds) advances subtitles, a
negative one (e.g. -5.0) delays them
-f FINALDELAY, --finalDelay FINALDELAY
final delay, in seconds : a positive REAL NUMBER (e.g.
9.0 for 9 seconds) advances subtitles, a negative one
(e.g. -9.0) delays them
Computes a variable shift for every subtitle by linearly interpolating between INITIALDELAY and FINALDELAY
Features
- Video subtitle file management
- Shifting subtitles with variable shifts
- Python scripts running on Windows, Linux, MacOs