Documentation
¶
Overview ¶
Package subtitle turns subtitle text into WebVTT, the form players show beside a video. It reads the formats FFmpeg doesn't (YouTube's SBV, TTML and DFXP, timed lyrics), and straightens out the encodings of the ones it does. The result is only ever shown as cue text, which a browser doesn't run.
Index ¶
Constants ¶
View Source
const MaxInput = 32 << 20
MaxInput is the most of a subtitle file that is read. A film's subtitles are a few hundred kilobytes.
Variables ¶
This section is empty.
Functions ¶
func Normalize ¶
Normalize returns text as UTF-8, whatever it was written in, without a byte order mark and with plain line ends.
func ReadsItself ¶
ReadsItself says Convert handles this format with no help.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.