#subtitle #automatic #align #tool #api #alignment

alass-core

Automatic Language-Agnostic Subtitle Synchronization (Library)

4 stable releases

2.0.0 Oct 10, 2019
1.1.0 Sep 10, 2019
1.0.1 Aug 16, 2019
1.0.0 Aug 14, 2019

#1004 in Algorithms

40 downloads per month
Used in 3 crates

GPL-3.0 license

130KB
2.5K SLoC

alass-core

This Rust library contains the core algorithm for alass, the "Automatic Language-Agnostic Subtitle Sychronization" tool. If you want to go to the command line tool instead, please click here.

How to use the library

Add this to your Cargo.toml:

[dependencies]
alass-core = "2.0.0"

The library only contains one function that takes two sequences of time spans and returns the offsets to get the best possible alignment.

Documentation

Crates.io

Documentaion

For much more information, please see the workspace information here.


lib.rs:

alass takes two timespan arrays (e.g. from two subtitle files) and tries to align the incorrect subtitles to the reference subtitle. It automatically fixes offsets and introduces/removes breaks between subtitles in the incorrect subtitle to achive the best alignment.

No runtime deps