Skip to main content

Crate subtitler

Crate subtitler 

Source

Re-exports§

pub use model::SubtitleFormat;
pub use model::Format;
pub use model::ParseConfig;
pub use model::StreamingParser;
pub use model::Subtitle;
pub use model::SubtitleFile;
pub use model::SubtitleFileBuilder;
pub use model::TextPart;
pub use model::WritePolicy;

Modules§

ass
config
dfxp
DFXP (Distribution Format Exchange Profile) parser and generator.
ebu_stl
EBU STL (Standard Transmission Format) parser and generator.
encoding
error
io
Shared I/O helpers for subtitle file writing.
lrc
LRC (Lyrics) format parser and generator.
microdvd
model
mpl2
MPL2 (MPlayer) subtitle format parser and generator.
normalize
pipeline
quality
Quality analysis and translation tooling for subtitles.
sami
SAMI (Synchronized Accessible Media Interchange) parser and generator.
sbv
SBV (YouTube subtitle format) parser and generator.
scc
SCC (Scenarist Closed Caption) parser and generator.
srt
subviewer
ttml
TTML (Timed Text Markup Language) subtitle parser and generator.
types
utils
vtt
whisper
Whisper AI JSON transcript format parser and generator.

Functions§

detect_format
parse_bytes
Parse bytes into a SubtitleFile, auto-detecting the format.
parse_bytes_as
Parse bytes as a specific format.
parse_file
Parse a file into a SubtitleFile, auto-detecting the format.
parse_url
Parse a URL into a SubtitleFile, auto-detecting the format (requires the http feature).
parse_url_with
Parse a URL with a custom reqwest::Client, allowing configuration of timeouts, redirect policy, TLS options, etc.