ffprobe

package
v0.0.0-...-bf4a537 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BinPath string `json:"binPath"`
	Limit   uint   `json:"limit"`
}

type Format

type Format struct {
	Duration floatString       `json:"duration"`
	Size     integerString     `json:"size"`
	BitRate  integerString     `json:"bit_rate"`
	Tags     map[string]string `json:"tags"`
}

type Info

type Info struct {
	filesystem.FileItem
	Streams []Stream `json:"streams"`
	Format  Format   `json:"format"`
}

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(c Config, cm *cache.Manager, l logging.Logger) (p *Processor, err error)

func (*Processor) Process

func (p *Processor) Process(obj *cds.Object, ctx context.Context)

func (Processor) String

func (Processor) String() string

type Stream

type Stream struct {
	CodecName   string        `json:"codec_name"`
	CodecType   string        `json:"codec_type"`
	Width       uint          `json:"width"`
	Height      uint          `json:"height"`
	SampleRate  integerString `json:"sample_rate"`
	Channels    uint          `json:"channels"`
	Disposition struct {
		Default int `json:"default"`
	} `json:"disposition"`
}

Jump to

Keyboard shortcuts

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