Scroll to navigation

SRT-LINEAR-TIMESHIFT(1) User Commands SRT-LINEAR-TIMESHIFT(1)

NAME

srt-linear-timeshift - SRT subtitle processing tool

DESCRIPTION

usage: srt linear-timeshift [-h] [--input FILE] [--output FILE] [--inplace]

[--no-strict] [--debug] [--ignore-parsing-errors]
[--encoding ENCODING] --from-start FROM_START --to-start TO_START --from-end FROM_END --to-end TO_END

Perform linear time correction on a subtitle.

options:

show this help message and exit
the file to process (default: stdin)
the file to write to (default: stdout)
modify file in place
allow blank lines in output, your media player may explode
enable debug logging
try to keep going, even if there are parsing errors
the encoding to read/write files in (default: utf8)
the first desynchronised timestamp
the first synchronised timestamp
the second desynchronised timestamp
the second synchronised timestamp

examples:

Stretch out a subtitle so that second 1 is 1, 2 is 3, 3 is 5, etc
$ srt linear-timeshift --f1 00:00:01,000 --t1 00:00:01,000 --f2 00:00:02,000 --t2 00:00:03,000
June 2023 srt-linear-timeshift 3.5.3