SRTTOOL(1)

NAME
srttool - manipulates .srt subtitle files

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

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

srttool 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 hh:mm:ss,ms
    Adjust all time stamps so that the first tag begins at hh:mm:ss,ms.

-c first[,last]
    Write only entries numbered from first to last, where last defaults to the last entry of the file.

-d seconds
    Shift all time stamps by seconds seconds.

-e seconds
    Expand the subtitle hour by seconds seconds.

-h  Display usage and quit.

-i filename
    Use file filename for input, defaults to stdin.

-o filename
    Use file filename for output, defaults to stdout.

-r  Renumber all entries.

-s  Convert template srt file into real srt files, substitute filename in each subtitle entry by the file contents.

-v  Verbose mode.

-w  Remove leading white space

-x basename
    Converse of -s operation, create <basename>.srtx template and <basename>XXX.txt individual files.

SEE ALSO
subrip(1).