Versions in this module Expand all Collapse all v0 v0.1.47 Mar 23, 2023 v0.1.46 Mar 23, 2023 v0.1.45 Mar 23, 2023 Changes in this version + func CutChapter(media *Media, chapter *avtools.Chapter) ff.Cmd + func GenerateChapters(media []*Media) []*avtools.Chapter + func Inc(n int) int + func IsPlainText(mtype string) bool + type Bool struct + Chapters bool + Cover bool + Cue bool + Meta bool + type Cmd interface + Run func() error + func ExtractCover(m *Media) Cmd + func Join(ext string, dir ...string) (Cmd, map[string]Cmd) + type Command struct + func (cmd Command) CutChapter(input string, num int) Cmd + func (cmd Command) CutStamp(input, start, end string) Cmd + func (cmd Command) Extract(input string) []Cmd + func (cmd Command) Remove(input string) Cmd + func (cmd Command) Split(input string) []Cmd + func (cmd Command) Thumbnail(input string, output string) Cmd + func (cmd Command) Update(input string) Cmd + type File struct + Abs string + Base string + File string + Mimetype string + func NewFile(n string) File + func (f File) IsCue() bool + func (f File) IsFFMeta() bool + func (f File) IsImage() bool + func (f File) NewName() *FileName + type FileName struct + Ext string + Name string + Padding string + Path string + func NewFileName() *FileName + func (f *FileName) Pad(i int) *FileName + func (f *FileName) Prefix(pre string) *FileName + func (f *FileName) Save(data []byte) + func (f *FileName) Suffix(suf string) *FileName + func (f *FileName) Tmp(data []byte) + func (f *FileName) WithExt(e string) *FileName + func (f FileName) Join() string + func (f FileName) Run() error + func (f FileName) Write(wr io.Writer) error + type Files struct + Cover string + Cue string + Meta string + type Flags struct + Bool Bool + File Files + Profile string + type Media struct + Cover File + Cue File + HasCover bool + Ini File + Input File + MetaChanged bool + Output File + Profile string + func New(input string) *Media + func (m *Media) LoadCue(name string) + func (m *Media) LoadIni(name string) + func (m *Media) LoadMeta(name string) *Media + func (m *Media) Probe() *Media + func (m Media) AudioStreams() []Stream + func (m Media) Command() ff.Cmd + func (m Media) DumpCue() []byte + func (m Media) DumpFFMeta() *ff.Cmd + func (m Media) DumpIni() []byte + func (m Media) GetChapter(num int) *avtools.Chapter + func (m Media) HasChapters() bool + func (m Media) IsAudio() bool + func (m Media) IsVideo() bool + func (m Media) SaveMetaFmt(f string) Cmd + func (m Media) VideoStreams() []Stream + type Stream struct + CodecName string + CodecType string + Index string + IsCover bool + type UpdateCmd struct + func (up UpdateCmd) Run() error