Thanks to visit codestin.com
Credit goes to lib.rs

#subtitle #automatic #api

ilass

Automatic Language-Agnostic Subtitle Synchronization (Library)

1 stable release

2.1.0 Aug 9, 2025

#1648 in Algorithms


Used in ilass-cli

GPL-3.0 license

130KB
2.5K SLoC

ilass 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.


ilass

This Rust library contains the core algorithm for ilass, 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 ilass as a dependency to your project:

cargo add ilass

Or alternative edit your Cargo.toml:

[dependencies]
ilass = "2.1.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

Documentation

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

No runtime deps