srtutil(1) - Linux man page
Name
srtutil - manipulates .srt subtitle filesSynopsis
srtutil [-hrsvw] [-a hh:mm:ss,ms] [-c first[,last]] [-d seconds] [-e seconds] [-i file] [-o file] [-f format] [-x basename]Description
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.