Skip to main content

Crate subcue

Crate subcue 

Source
Expand description

Parse, compose, and convert SRT, WebVTT, and ASS/SSA subtitle data.

Modules§

text
Inline cue text model shared by every format conversion.

Structs§

AssCues
ASS cue iterator.
AssEvent
A non-dialogue ASS event.
AssFields
Format-specific fields from an ASS dialogue event.
AssNumber
A base-10 number used by ASS style fields.
Colour
An ASS colour encoded as &HAABBGGRR.
ComposeOptions
Options for composing subtitle bytes.
Cue
One timed subtitle cue.
Header
File-level metadata.
RawSection
An ASS section preserved as text.
SrtCues
SRT cue iterator.
Style
A typed ASS v4+ style.
Subtitles
Parsed subtitles and format-specific metadata.
Time
Signed milliseconds from the start of the media timeline.
VttBlock
A WebVTT metadata block.
VttCues
WebVTT cue iterator.

Enums§

Error
A fatal input error.
EventKind
An ASS event type.
Format
A supported subtitle format.
LineEnding
Output line ending.
VttBlockKind
A WebVTT metadata block type.
Warning
A recoverable parse, compose, or conversion condition.

Functions§

parse
Parses subtitle bytes in the selected format.
parse_ass
Parses ASS or SSA subtitle bytes.
parse_srt
Parses SRT subtitle bytes.
parse_vtt
Parses WebVTT subtitle bytes.