probe

package
v0.1.47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpFFMeta

func DumpFFMeta(file string) *ff.Cmd

func Load

func Load(input string) (avtools.Metaz, error)

Types

type Chapter

type Chapter struct {
	Base         string            `json:"time_base" ini:"TIMEBASE"`
	StartTime    string            `json:"start_time" ini:"START"`
	EndTime      string            `json:"end_time" ini:"END"`
	ChapterTitle string            `ini:"title"`
	Tags         map[string]string `json:"tags"`
}

func (Chapter) End

func (c Chapter) End() time.Duration

func (Chapter) Start

func (c Chapter) Start() time.Duration

func (Chapter) Title

func (c Chapter) Title() string

type Format

type Format struct {
	Filename string            `json:"filename"`
	Dur      string            `json:"duration"`
	Size     string            `json:"size"`
	BitRate  string            `json:"bit_rate"`
	Tags     map[string]string `json:"tags"`
}

type Meta

type Meta struct {
	StreamEntry  []map[string]any `json:"streams"`
	Format       Format           `json:"format"`
	ChapterEntry []Chapter        `json:"chapters"`
	fidi.File
}

func (Meta) Chapters

func (m Meta) Chapters() []avtools.ChapterMeta

func (Meta) Source

func (m Meta) Source() fidi.File

func (Meta) Streams

func (m Meta) Streams() []map[string]string

func (Meta) Tags

func (m Meta) Tags() map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL