srtutil(1) - Linux man page

Name

srtutil - manipulates .srt subtitle files

Synopsis

srtutil [-hrsvw] [-a hh:mm:ss,ms] [-c first[,last]] [-d seconds] [-e seconds] [-i file] [-o file] [-f format] [-x basename]

Description

The srtutil command performs various manipulations on srt files, acting as a filter from standard input to standard output unless -i or -o options are used.

srtutil can be used to handle so-called template .srt files, where each subtitle entry is actually a filename to be substituted for the entry, or to adjust timestamps on each subtitle entry.

The options are as follows:

-a, --adjust hh:mm:ss,ms
Adjust all time stamps so that the first tag begins at hh:mm:ss,ms.
-c, --cut first[,last]
Write only entries numbered from first to last, where last defaults to the last entry of the file.
-d, --shift seconds
Shift all time stamps by seconds seconds.
-e, --expand seconds
Expand the subtitle hour by seconds seconds.
-f, --format format
Write output file in unix (default) or dos format.
-h, --help
Display usage and quit.
-i, --input filename
Use file filename for input, defaults to stdin.
-o, --output filename
Use file filename for output, defaults to stdout.
-r, --renumber
Renumber all entries.
-s, --subst
Convert template srt file into real srt files, substitute filename in each subtitle entry by the file contents.
-v, --verbose
Verbose mode.
-w, --strip
Remove leading white space
-x, --extract basename
Converse of -s operation, create <basename>.srtx template and <basename>XXX.txt individual files.

Authors

Manual page by Marc Espie, Olivier Rolland

Referenced By

subp2pgm(1)