Versions in this module Expand all Collapse all v0 v0.1.2 Apr 23, 2022 Changes in this version type FFProbeOutput + func ReadChaptersWithContext(ctx context.Context, infile string) (FFProbeOutput, error) type InputFileMetadata + func ReadFileWithContext(ctx context.Context, infile string) (InputFileMetadata, error) type WorkItem + func (wi WorkItem) ProcessWithContext(ctx context.Context) error v0.1.1 Apr 16, 2022 Changes in this version type Chapter + ID int + type ChapterFilter struct + Description string + Filter ChapterFilterFunction + type ChapterFilterFunction func(Chapter) bool type FFProbeOutput + func ReadChaptersFromJSON(encoded []byte) (FFProbeOutput, error) type OutFileOpts + Filters []ChapterFilter + UseAlternateExtension string + func (opts *OutFileOpts) AddFilter(flt ChapterFilter) + func (opts OutFileOpts) IsFiltered(ch Chapter) bool + type WorkItem struct + Chapter Chapter + Infile string + OutDirectory string + Outfile string + func (wi WorkItem) FFmpegArgs() []string + func (wi WorkItem) GetCommand() []string + func (wi WorkItem) Process() error v0.1.0 Apr 12, 2022 Changes in this version + func GetReadChaptersCommandline(infile string) []string + type Chapter struct + End int + EndTime string + Id int + Start int + StartTime string + Tags map[string]string + TimeBase string + type FFProbeOutput struct + Chapters []Chapter + func ReadChapters(infile string) (FFProbeOutput, error) + func ReadChaptersFromJson(encoded []byte) (FFProbeOutput, error) + type InputFileMetadata struct + BaseNoExt string + Extension string + FFProbeOutput FFProbeOutput + Path string + func ReadFile(infile string) (InputFileMetadata, error) + func (imeta InputFileMetadata) ComputeWorkItems(outdir string, opts OutFileOpts) ([]workItem, error) + func (imeta InputFileMetadata) NumChapters() int + type OutFileOpts struct + EnumOffset int + EnumPaddedWidth int + UseChapterNumberInMeta bool + UseTitleInMeta bool + UseTitleInName bool + func DefaultOutFileOpts() OutFileOpts + type Status struct + Failed int + Submitted int + Successful int + func Process(workItems []workItem, maxConcurrent int) Status + func (s Status) String() string