DOKK / manpages / debian 12 / python3-srt / srt-fixed-timeshift.1.en
SRT-FIXED-TIMESHIFT(1) User Commands SRT-FIXED-TIMESHIFT(1)

srt-fixed-timeshift - SRT subtitle processing tool

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

[--no-strict] [--debug] [--ignore-parsing-errors]
[--encoding ENCODING] --seconds SECONDS

Shifts a subtitle by a fixed number of seconds.

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)
how many seconds to shift

Make all subtitles 5 seconds later
$ srt fixed-timeshift --seconds 5
Make all subtitles 5 seconds earlier
$ srt fixed-timeshift --seconds -5
December 2022 srt-fixed-timeshift 3.5.2