ff

package
v0.1.46 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgsToKwArgs

func ArgsToKwArgs(args []string) ffmpeg.KwArgs

func Crop

func Crop(args ffmpeg.KwArgs) filter

func MergeProfiles

func MergeProfiles(pros ...string) profile

func Palette

func Palette(args ffmpeg.KwArgs) filter

paletteuse filter arguments see https://ffmpeg.org/ffmpeg-filters.html#paletteuse for details about the options palettegen filter arguments see https://ffmpeg.org/ffmpeg-filters.html#palettegen-1 for details about the options

func ReadConfig

func ReadConfig(name string)

func Scale

func Scale(args ffmpeg.KwArgs) filter

scale filter args see https://ffmpeg.org/ffmpeg-filters.html#scale-1 for details about the arguments.

Types

type Cmd

type Cmd struct {
	Filters Filters `yaml:"filters"`
	Output
	Input
	// contains filtered or unexported fields
}

func GetProfile

func GetProfile(name string) Cmd

func New

func New(profile ...string) Cmd

func (*Cmd) Compile

func (cmd *Cmd) Compile() *Cmd

func (*Cmd) In

func (cmd *Cmd) In(file string, args ...ffmpeg.KwArgs) *Cmd

func (Cmd) Run

func (c Cmd) Run() error

func (Cmd) String

func (c Cmd) String() string

type Filter

type Filter ffmpeg.KwArgs

func Colortemp

func Colortemp(args ...string) Filter

colortemperature filter arguments see https://ffmpeg.org/ffmpeg-filters.html#colortemperature for details about the options

func Eq

func Eq(args ...string) Filter

eq filter arguments see https://ffmpeg.org/ffmpeg-filters.html#eq for details about the options

func Fps

func Fps(args ...string) Filter

func NewFilter

func NewFilter(args ...string) Filter

func Setpts

func Setpts(args ...string) Filter

func Smartblur

func Smartblur(args ...string) Filter

smartblur filter args see https://ffmpeg.org/ffmpeg-filters.html#smartblur-1 for details about the options

func Yadif

func Yadif(args ...string) Filter

func (Filter) Args

func (f Filter) Args() ffmpeg.KwArgs

func (Filter) Merge

func (f Filter) Merge(filter Filter) Filter

func (Filter) MergeArgs

func (f Filter) MergeArgs(args ...string) Filter

type Filters

type Filters map[string]Filter

func MergeFilters

func MergeFilters(filters []Filters) Filters

func (Filters) Add

func (f Filters) Add(name string, filt Filter)

func (Filters) Compile

func (f Filters) Compile() []filter

func (Filters) Get

func (f Filters) Get(name string) Filter

func (Filters) Set

func (f Filters) Set(name string, args ...string)

type Input

type Input struct {
	File string
	Args ffmpeg.KwArgs
}

func NewInput

func NewInput(args ...ffmpeg.KwArgs) Input

func (*Input) Compile

func (i *Input) Compile(file string) *ffmpeg.Stream

func (*Input) End

func (i *Input) End(to string) *Input

func (*Input) FFMeta

func (i *Input) FFMeta(file string, idx ...string) *Input

func (*Input) MapChapters

func (i *Input) MapChapters(idx string) *Input

func (*Input) MapMetadata

func (i *Input) MapMetadata(idx string) *Input

func (*Input) Merge

func (i *Input) Merge(kwargs ffmpeg.KwArgs) *Input

func (*Input) Overwrite

func (i *Input) Overwrite() *Input

func (*Input) Set

func (i *Input) Set(key string, val any)

func (*Input) Start

func (i *Input) Start(ss string) *Input

func (*Input) Verbose

func (i *Input) Verbose() *Input

type Output

type Output struct {
	Args ffmpeg.KwArgs
}

func NewOutput

func NewOutput(args ...ffmpeg.KwArgs) Output

func (*Output) AudioCodec

func (o *Output) AudioCodec(val string) *Output

func (*Output) AudioParams

func (o *Output) AudioParams(args map[string]any) *Output

func (Output) Compile

func (out Output) Compile(s *ffmpeg.Stream) *ffmpeg.Stream

func (*Output) Copy

func (out *Output) Copy() *Output

func (*Output) Del

func (out *Output) Del(key string) *Output

func (*Output) Ext

func (out *Output) Ext(ext string) *Output

func (*Output) Get

func (out *Output) Get(key string) any

func (*Output) IsStreamCopy

func (out *Output) IsStreamCopy() bool

func (Output) KwArgs

func (out Output) KwArgs() ffmpeg.KwArgs

func (*Output) Name

func (out *Output) Name(n string) *Output

func (*Output) Num

func (out *Output) Num(n int) *Output

func (*Output) Pad

func (out *Output) Pad(p string) *Output

func (*Output) Set

func (out *Output) Set(key string, val any) *Output

func (Output) String

func (out Output) String() string

func (*Output) VideoCodec

func (o *Output) VideoCodec(val string) *Output

func (*Output) VideoParams

func (o *Output) VideoParams(args map[string]any) *Output

Jump to

Keyboard shortcuts

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