From fd2d7a23720dc772441b14bd5b5773775730fcc1 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 24 Jul 2018 00:16:38 +1000 Subject: [PATCH] * ssa-retime : options refactoring --- bin/ssa-retime | 135 ++++++++++++++++++++++++++++--------------------- 1 file changed, 76 insertions(+), 59 deletions(-) diff --git a/bin/ssa-retime b/bin/ssa-retime index 4f97422..38f4b76 100755 --- a/bin/ssa-retime +++ b/bin/ssa-retime @@ -7,6 +7,9 @@ use utf8; use Getopt::Long; use Subtitle::Format::SSA; +use Subtitle::TimePoint; + +my @points; sub usage { my ($msg) = @_; @@ -15,9 +18,9 @@ sub usage { Usage: ssa-retime [] -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. + * framerate Recalculate timing for different fps + * shift Shift timing in given points + * drift Adjust timing of whole file by time points Common options: -h This help. @@ -25,83 +28,77 @@ Common options: -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