ffmpeg

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASplit

func ASplit(stream Stream) (Stream, Stream)

func IsInputStream

func IsInputStream(s Stream) bool

func Split

func Split(stream Stream) (Stream, Stream)

Types

type Cmd

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

func (*Cmd) AddFileOutput

func (c *Cmd) AddFileOutput(name string, options []string,
	streams ...Stream)

func (*Cmd) Cmd

func (c *Cmd) Cmd() *exec.Cmd

type Input

type Input struct {
	Name    string
	Options []string
}

func (Input) AddStream

func (f Input) AddStream(c *Cmd) string

type InputFile

type InputFile struct {
	File    *os.File
	Options []string
}

func (InputFile) AddStream

func (f InputFile) AddStream(c *Cmd) string

type Stream

type Stream interface {
	AddStream(*Cmd) string
}

Stream is the interface used to represent ffmpeg media streams.

var ANullSrc Stream = Input{"anullsrc", []string{"-f", "lavfi"}}

func AMix

func AMix(streams ...Stream) Stream

func APad

func APad(s Stream) Stream

func ASplitN

func ASplitN(stream Stream, n int) []Stream

func ATempo

func ATempo(s Stream, vol float64) Stream

func Areverse

func Areverse(s Stream) Stream

func Audio

func Audio(s Stream) Stream

Audio selects the audio portion of a stream

func Concat

func Concat(v, a int, streams ...Stream) []Stream

func Filter

func Filter(s Stream, str string) Stream

func Hflip

func Hflip(s Stream) Stream

func MultiplyPTS

func MultiplyPTS(s Stream, pts float64) Stream

func Overlay

func Overlay(under, over Stream, x, y int) Stream

func PaletteGen

func PaletteGen(s Stream) Stream

func PaletteUse

func PaletteUse(v, palette Stream) Stream

func Reverse

func Reverse(s Stream) Stream

func SplitN

func SplitN(stream Stream, n int) []Stream

func Video

func Video(s Stream) Stream

Video selects the video portion of a stream

func Volume

func Volume(s Stream, vol float64) Stream

Jump to

Keyboard shortcuts

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