---
name: "srt-linear-timeshift"
section: "1"
platform: "linux"
package: "python3-srt"
version: "3.5.3-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/srt-linear-timeshift"
---

# srt-linear-timeshift(1)

SRT subtitle processing tool

## 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:

- **-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)

- **--from-start** FROM\_START, **--f1** FROM\_START

  the first desynchronised timestamp

- **--to-start** TO\_START, **--t1** TO\_START

  the first synchronised timestamp

- **--from-end** FROM\_END, **--f2** FROM\_END

  the second desynchronised timestamp

- **--to-end** TO\_END, **--t2** TO\_END

  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`
