srt-normalise(1)

srt-normalise1

Srt subtitle processing tool

Overview

usage: srt normalise [-h] [--input FILE] [--output FILE] [--inplace] [--debug]

[--ignore-parsing-errors] [--encoding ENCODING]

Takes a badly formatted SRT file and outputs a strictly valid one.

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

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

examples:

Normalise a subtitle

$ srt normalise -i bad.srt -o good.srt

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

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