srttool -V (return code: 1)
no time specified with option -e
srttool -h (return code: 0)
srttool [-v] [options]
Modify srt subtitle files.
-v Verbose
-r Renumber all entries.
-d <time> Shift all timestamps by <time> seconds
-s Substitute filename after time stamps
by its content
-i <filename> Use filename for input (default) stdin
-o <filename> Use filename for output (default stdout)
-c <first[,last]> Write only entries from first to last
(default=last entry) to output
-a <hh:mm:ss,ms> Adjust all time stamps so that the first tag
beginns at hh:mm:ss,ms
-x <basename> Reverse -s operation: produce basename.srtx
and basenameXXXX.txt files.
-w Remove leading white space in text lines
-e <seconds> 'Expand' the subtitle hour by <seconds>
(valid values are -60.0<=x<=+60.0 seconds)
Example:
Adjust the subtitle timing by -2.3 seconds.
srttool -d -2.3 -i subtitle.srt > new_subtitle.srt