ffmpeg

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Inputs       arguments.Inputs
	Output       arguments.Outputs
	VideoFilters arguments.VideoFilters
	AudioFilters arguments.AudioFilters
	FilterGraph  FilterGraph
	Options      arguments.Options
}

type Builder

type Builder ffmpeg

func (*Builder) Build

func (f *Builder) Build() []string

type Chain

type Chain ffmpeg

func (*Chain) ACrossFade

func (fg *Chain) ACrossFade(input1 string, input2 string, duration float64, output string) IChain

func (*Chain) ADelay

func (fg *Chain) ADelay(input string, delay float64, output string) IChain

func (*Chain) ATrim

func (fg *Chain) ATrim(input string, start float64, end float64, output string) IChain

func (*Chain) AlphaExtract

func (fg *Chain) AlphaExtract(input string, output string) IChain

func (*Chain) AlphaMerge

func (fg *Chain) AlphaMerge(input string, mask string, shortest bool, output string) IChain

func (*Chain) Concat

func (fg *Chain) Concat(inputs []string, videoEnable bool, audioEnable bool, output string) IChain

func (*Chain) Format

func (fg *Chain) Format(input string, format pixel_formats.PixelFormat, output string) IChain

func (*Chain) Fps

func (fg *Chain) Fps(input string, fps float64, output string) IChain

func (*Chain) Map

func (fg *Chain) Map(output string) IMap

func (*Chain) Overlay

func (fg *Chain) Overlay(under string, over string, shortest bool, output string) IChain

func (*Chain) Pad added in v1.0.20

func (fg *Chain) Pad(input string, width int, height int, x int, y int, output string) IChain

func (*Chain) Reverse

func (fg *Chain) Reverse(input string, output string) IChain

func (*Chain) Scale

func (fg *Chain) Scale(input string, width float64, height float64, output string) IChain

func (*Chain) Split

func (fg *Chain) Split(input string, outputs ...string) IChain

func (*Chain) Trim

func (fg *Chain) Trim(input string, start float64, end float64, output string) IChain

func (*Chain) Volume added in v1.0.20

func (fg *Chain) Volume(input string, volume float64, output string) IChain

type FilterGraph

type FilterGraph struct {
	FilterChain []string
	MapChain    []string
}

func (*FilterGraph) Build

func (fg *FilterGraph) Build() []string

type IBuilder added in v1.0.24

type IBuilder interface {
	Build() []string
}

type IChain added in v1.0.24

type IChain interface {
	Format(input string, format pixel_formats.PixelFormat, output string) IChain
	Pad(input string, width int, height int, x int, y int, output string) IChain
	Volume(input string, volume float64, output string) IChain
	Fps(input string, fps float64, output string) IChain
	Scale(input string, width float64, height float64, output string) IChain
	Reverse(input string, output string) IChain
	Trim(input string, start float64, end float64, output string) IChain
	Split(input string, outputs ...string) IChain
	ATrim(input string, start float64, end float64, output string) IChain
	AlphaExtract(input string, output string) IChain
	AlphaMerge(input string, mask string, shortest bool, output string) IChain
	Concat(inputs []string, videoEnable bool, audioEnable bool, output string) IChain
	Overlay(under string, over string, shortest bool, output string) IChain
	ACrossFade(input1 string, input2 string, duration float64, output string) IChain
	ADelay(input string, delay float64, output string) IChain
	Map(output string) IMap
}

type IFfmpeg added in v1.0.24

type IFfmpeg interface {
	BitrateVideo(bitrate int) IFfmpeg
	BitrateAudio(bitrate int) IFfmpeg
	Flanger(delay float64) IFfmpeg
	CodecVideo(codec codec_video.CodecVideo) IFfmpeg
	CodecAudio(codec codec_audio.CodecAudio) IFfmpeg
	Scale(width int, height int) IFfmpeg
	Fps(fps float64) IFfmpeg
	FilterGraph() IChain
	Input(path string) IFfmpeg
	InputLavfi(filter string) IFfmpeg
	Inputs(paths ...string) IFfmpeg
	Output(path string) IBuilder
	Run(args []string) error
}

func NewFfmpeg added in v1.0.25

func NewFfmpeg(configuration *configuration.Configuration, headers []string) IFfmpeg

type IMap added in v1.0.24

type IMap interface {
	Map(output string) IMap
	Output(output string) IBuilder
}

type Map

type Map ffmpeg

func (*Map) Map

func (m *Map) Map(output string) IMap

func (*Map) Output

func (m *Map) Output(output string) IBuilder

Jump to

Keyboard shortcuts

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