Function alass::alass_sync
source · [−]#[no_mangle]
pub extern "C" fn alass_sync(
sub_path_in: *const c_char,
sub_path_out: *const c_char,
ref_spans: *mut TimeSpans,
ref_fps: f64,
sub_encoding: *const c_char,
options: *mut SyncOptions
) -> ResultCode
Expand description
Performs alass
subtitle synchronization.
-
sub_path_in
: Path to the incorrect subtitle file. -
sub_path_out
: Path to which the synchronized subtitle file shall be written (must include filename). -
ref_spans
: Reference timespans to use for alignment. -
ref_fps
: Framerate of the reference video file (used for framerate correction). -
sub_encoding
: The IANA charset encoding of the subtitle file. If ‘auto’ is given (or if not specified), an attempt is made to guess the correct encoding based on the contents of the file. -
options
: Parameters governing various aspects of the synchronization process. SeeSyncOptions
oralass
documentation for details.