diff --git a/bin/ssa-retime b/bin/ssa-retime new file mode 100644 index 0000000..9707fa4 --- /dev/null +++ b/bin/ssa-retime @@ -0,0 +1,141 @@ +#!/usr/bin/env perl + +use strict; +use warnings; +use feature qw(switch); +use lib 'lib'; +use utf8; + +use Getopt::Long; +use File::Slurp; +use Subtitle::SSA; + +sub usage { + my ($msg) = @_; + print $msg, "\n" if $msg; + print < [] -i [ -o ] + +Modes are: + * framerate Retime whole file from one fps to another. + * points Retime file specifying point(s) & time shift for it. + * shift Shift whole file or it's part for given time. + +Common options: + -h This help. + -i Input file. (mandatory). + -o Output file. Default: write to stdout. + -v Be verbose. + +Specific options for 'shift' mode: + -S Retime only events with specified style. + This option may be given more than once. + -s