Crates.io | alass-ffi |
lib.rs | alass-ffi |
version | 0.3.0 |
source | src |
created_at | 2020-02-26 21:41:08.517081 |
updated_at | 2022-04-17 01:59:26.992411 |
description | FFI bindings for subtitle synchronization with alass |
homepage | https://github.com/wsiegenthaler/alass-ffi/tree/master/ffi |
repository | https://github.com/wsiegenthaler/alass-ffi |
max_upload_size | |
id | 212813 |
size | 42,207 |
FFI bindings for subtitle synchronization with alass-core
alass-core
is a fantastic library which performs fast and accurate subtitle synchronization. This wrapper library provides FFI bindings so such functionality can be used by other languages like C, Python, Java, or any language which can interface with native libraries.
See the generated header file for API documentation. The alass_sync
call is the API's main operation and a good place to start.
Note that this header is checked into git for informational purposes and will not reflect any changes you may have made to your working copy. See the target/
directory for the up-to-date version generated by your build.
An example C application demonstrating usage of the API can be found in the ffi/examples/sync-demo/
folder. The example provides a basic CLI utility for syncing subtitles from the command line and can be built and run using the sync-demo.sh
helper script.
Pre-built binaries for several common architectures are available in the releases section. Additional architectures can be made available upon request.
You will need Rust 1.40+ and Cargo installed to build alass-ffi
.
$ cargo build --release [--target ARCH]
Build artifacts can be found within the target
directory.
Everything in this repo is GPL-3.0 unless otherwise specified