The subptools command performs various manipulations on xml subtitles files, acting as a filter from
standard input to standard output unless -i or -o options are used.
subtools can be used to handle so-called xml subtitles 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,--adjusthh:mm:ss,ms
Adjust all time stamps so that the first tag begins at hh:mm:ss,ms.
-c,--cutfirst[,last]
Write only entries numbered from first to last, where last defaults to the last entry of the file.
-d,--shiftseconds
Shift all time stamps by seconds seconds.
-e,--expandseconds
Expand the subtitle hour by seconds seconds.
-c,--convertformat
Convert the xml subtitles file into a srt (default) or spumux file.
-h,--help
Display usage and quit.
-i,--inputfilename
Use file filename for input, defaults to stdin.
-o,--outputfilename
Use file filename for output, defaults to stdout.
-r,--renumber
Renumber all entries.
-s,--subst
Substitute filename in each subtitle entry by the file contents.
-v,--verbose
Verbose mode.
-w,--strip
Remove leading white space