Documentation ¶
Index ¶
- func Bits[T float64 | int64](n T, decimals int) string
- func Bytes[T float64 | int64](n T, decimals int) string
- func CleanUUID(id string) string
- func Concat(dcPackage *dcp.DCP, cpl dcp.CompositionPlaylist, settings ConcatSettings, ...) (err error)
- func SelectCPL(dcPackage *dcp.DCP, pklUUID string) (cpl dcp.CompositionPlaylist, err error)
- func TrimUUID(id string) string
- type ASSConverter
- type ASSEvent
- type ASSStyle
- type ConcatSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Concat ¶
func Concat(dcPackage *dcp.DCP, cpl dcp.CompositionPlaylist, settings ConcatSettings, cb func(desc, videoFile, audioFile, subtitleFile string)) (err error)
Types ¶
type ASSConverter ¶
type ASSConverter struct { Title string Width int Height int Styles map[string]ASSStyle Events []ASSEvent }
func (*ASSConverter) AddSubtitles ¶
func (ass *ASSConverter) AddSubtitles(events []dcp.SubtitleEvent, offset time.Duration) error
func (*ASSConverter) String ¶
func (ass *ASSConverter) String() string
type ASSEvent ¶
type ASSStyle ¶
type ASSStyle struct { Name string Fontname string Fontsize float64 PrimaryColour color.RGBA SecondaryColour color.RGBA OutlineColour color.RGBA BackColour color.RGBA Bold bool Italic bool Underline bool StrikeOut bool ScaleX float64 ScaleY float64 Spacing int Angle float64 BorderStyle int Outline float64 Shadow float64 Alignment int MarginL int MarginR int MarginV int Encoding int }
type ConcatSettings ¶
Click to show internal directories.
Click to hide internal directories.