carta
srt-fixed-timeshift(1)

srt-fixed-timeshift1

Srt subtitle processing tool

Overview

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.

options:

-h, --help

show this help message and exit

--input FILE, -i FILE

the file to process (default: stdin)

--output FILE, -o FILE

the file to write to (default: stdout)

--inplace, -p

modify file in place

--no-strict

allow blank lines in output, your media player may explode

--debug

enable debug logging

--ignore-parsing-errors, -c

try to keep going, even if there are parsing errors

--encoding ENCODING, -e ENCODING

the encoding to read/write files in (default: utf8)

--seconds SECONDS

how many seconds to shift

examples:

Make all subtitles 5 seconds later

$ srt fixed-timeshift --seconds 5

Make all subtitles 5 seconds earlier

$ srt fixed-timeshift --seconds -5

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)

From python3-srt 3.5.3-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.