From aa6c8aa2a98142f89a4bcdee687d5345f563d8be Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sat, 14 Mar 2015 21:53:25 +1000 Subject: [PATCH] + bin/ssa-retime : draft --- bin/ssa-retime | 141 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 bin/ssa-retime 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