Scroll to navigation

SRT-DEDUPLICATE(1) User Commands SRT-DEDUPLICATE(1)

NAME

srt-deduplicate - SRT subtitle processing tool

DESCRIPTION

usage: srt deduplicate [-h] [--input FILE] [--output FILE] [--inplace]

[--no-strict] [--debug] [--ignore-parsing-errors]
[--encoding ENCODING] [-t MILLISECONDS]

Deduplicate repeated subtitles.

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)
how many milliseconds distance a subtitle start time must be within of another to be considered a duplicate (default: 5000ms)

examples:

Remove duplicated subtitles within 5 seconds of each other
$ srt deduplicate -i duplicated.srt
Remove duplicated subtitles within 500 milliseconds of each other
$ srt deduplicate -t 500 -i duplicated.srt
Remove duplicated subtitles regardless of temporal proximity
$ srt deduplicate -t 0 -i duplicated.srt
June 2023 srt-deduplicate 3.5.3