Documentation
¶
Index ¶
- 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
- type Cmd
- type Command
- 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
- type FileName
- func (f FileName) Join() string
- func (f *FileName) Pad(i int) *FileName
- func (f *FileName) Prefix(pre string) *FileName
- func (f FileName) Run() error
- 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) Write(wr io.Writer) error
- type Files
- type Flags
- type 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) LoadCue(name string)
- func (m *Media) LoadIni(name string)
- func (m *Media) LoadMeta(name string) *Media
- func (m *Media) Probe() *Media
- func (m Media) SaveMetaFmt(f string) Cmd
- func (m Media) VideoStreams() []Stream
- type Stream
- type UpdateCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateChapters ¶
func IsPlainText ¶
Types ¶
type FileName ¶
type FileName struct { Path string Ext string Name string Padding string // contains filtered or unexported fields }
func NewFileName ¶
func NewFileName() *FileName
type Media ¶
type Media struct { *avtools.Media Input File Output File Ini File Cue File Cover File Profile string HasCover bool MetaChanged bool // contains filtered or unexported fields }
func (Media) AudioStreams ¶
func (Media) DumpFFMeta ¶
func (Media) HasChapters ¶
func (Media) SaveMetaFmt ¶
func (Media) VideoStreams ¶
Click to show internal directories.
Click to hide internal directories.