#!/usr/bin/env perl use strict; use warnings; use lib 'lib'; use utf8; use Getopt::Long; use Subtitle::Format::SSA; use Subtitle::TimePoint; my @points; sub usage { my ($msg) = @_; print $msg, "\n" if $msg; print < [] -i [ -o ] Modes are: * 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. -i Input file. (mandatory). -o Output file. Default: write to stdout. -v Be verbose. Specific options for 'framerate' mode: -f Source framerate. Default: 25.0 fps. -F Target framerate. Specific options for 'shift' mode: -m How to apply shift by points: * seq -- apply timeshifts one by one to end of file (default) * rst -- every next point overrides previous -p