1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
///
/// Options governing the synchronization process
///
/// Most of these options are passed directly to `alass`. See the official `alass` repository for
/// details: https://github.com/kaegi/alass
///
/// * `interval`: The smallest unit of time recognized by `alass`. Smaller numbers make the alignment
/// more accurate, larger numbers make alignment faster. (millis)
///
/// * `split_mode`: When true, `alass` will attempt alignment assuming the presence of commercial breaks
/// or added/removed scenes. Disabling `split_mode` can make syncing faster but will only correct
/// subtitles whose misalignment is the result of a constant shift.
///
/// * `split_penalty`: Determines how eager the algorithm is to avoid splitting of the subtitles. A
/// value of 1000 means that all lines will be shifted by the same offset, while 0.01 will produce
/// MANY segments with different offsets. Values from 1 to 20 are the most reasonable.
///
/// * `speed_optimization`: Greatly speeds up synchronization by sacrificing accuracy.
///
/// * `framerate_correction`: Whether to attempt correction of mismatched framerates.
///