Short:        Adjust MicroDVD and SAM subtitles
Author:       Marcin Deranek (Windows), Tomas Hauerland (AOS port)
Uploader:     tdm quick cz (Tomas Hauerland)
Type:         util/conv
Version:      2.75
Requires:     AmigaOS (tested on 3.9), CPU 68020, CLI, ixemul.library 48
Architecture: m68k-amigaos

------------------------------------------------------------------------

in the archive, you can find several versions:

- micro_020_FPU.aos            : optimized for 68020 and 68881
- micro_020_NoFPU.aos          : optimized for 68020 only
- micro_060_FPU.aos            : optimized for 68060 and FPU
- micro_060_FPU_noixemul.aos   : optimized for 68060 and FPU, no ixemul.library needed

if you will be using ixemul.library versions (shared), you need ixemul.library ver.48. 
Special thanks to Marcin for sending source code (C++). I made an Amiga port
using GNU C/C++ cross-compiler.

Program allows changing duration time, offset, framerate,
cut, join, split and compact MicroDVD or SAM format subtitles.
Usage:

micro_060_FPU.aos [<options>] <input file> <output file>
micro_060_FPU.aos -j <time> [<options>] <input file1> <input file2> <output file>
micro_060_FPU.aos -g <language> <subtitle file> <video file> <output file>
micro_060_FPU.aos -i <input file>

Options:
-if <framerate>         Set input framerate of subtitles [Default:25]
-of <framerate>         Set output framerate of subtitles
                        [Default:same as input framerate]
-i<X>                   Force input format of subtitle.
                          <X>= 1: MicroDVD, 2: SAM [Default: Autodetect]
-o<X>                   Set output format of subtitle.
                          <X>= 1: MicroDVD, 2: SAM [Default:Same as input]
-o <offset>             Set offset for subtitles in seconds [Default:0].
-t <a> <b> <c>          Set time ratios which calculate duration of each
                               subtitle with formula: time[s]=a*sqrt(n) + b + c*n
                               [Default:a=0 b=3.0 c=0.05]
                        n - length of each subtitle in chars.
-n                      Don't make time calculations.
                        If set parameter -t is ignored.
-tt                     Enable time tolerance during time calculations
                        [Default:disabled].
-c <time1> <time2>      Cut subtitles from <time1> to <time2> (time2>time1).
                        <time> - <minutes>:<seconds>.
-s <time>               Split subtitle after specified period of time.
-j <time>               Join two subtitle files after specified period of time.
-m                      Same as: -m0 -m1 2 60 2 (optimal settings)
-m0                     Compact subtitles (remove unnecessary spaces).
                        Option implies time calculations.
-m1 <a> <b> <c>         Compact subtitles into <a=lines>*<b=chars>
                        textbox if necessary (subtitle appears to short).
                        <c> set amount of subtitles processed at once (>0).
                        Option implies time calculations.
-f                      Force compacting to <a>*<b> textbox if possible.
-d                      Disable same line removal detection.
-tol <a> <b>            Tolerance in seconds during: <a> - time calculations
                        <b> - subtitle compacting (-m1) [Default: a=0.5 b=2.0]
-e                      Put empty endtime in each subtitle.
                        If set parameter -t is ignored.
-g <language>           Generate startup file for MicroDVD.
-v                      Verbose mode (Display additional information).
-i                      Display info about subtitle file.
-l <chars> <lines>      Display subtitles with more/less than <chars>*<lines>.