ffmpeg

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FFmpeg

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

func New added in v0.8.3

func New(opts ...Option) *FFmpeg

func (*FFmpeg) AddFilter

func (fm *FFmpeg) AddFilter(filters ...filter.Filter) *FFmpeg

func (*FFmpeg) AddInput

func (fm *FFmpeg) AddInput(inputs ...*input.Input) *FFmpeg

func (*FFmpeg) AddOutput

func (fm *FFmpeg) AddOutput(outputs ...*output.Output) *FFmpeg

func (*FFmpeg) DryRun

func (ff *FFmpeg) DryRun()

func (*FFmpeg) ExtractLoudnorm added in v0.11.0

func (ff *FFmpeg) ExtractLoudnorm(ctx context.Context) (*LoudnormParms, error)

func (*FFmpeg) Params

func (fm *FFmpeg) Params() []string

func (*FFmpeg) Run

func (ff *FFmpeg) Run(ctx context.Context) (err error)

type LogLevel

type LogLevel string
const (
	LogLevelQuiet LogLevel = "quiet"
	LogLevelError LogLevel = "error"
)

func (LogLevel) String

func (l LogLevel) String() string

type LoudnormParms added in v0.11.0

type LoudnormParms struct {
	InputI            float32 `json:"input_i,string"`
	InputTP           float32 `json:"input_tp,string"`
	InputLRA          float32 `json:"input_lra,string"`
	InputThresh       float32 `json:"input_thresh,string"`
	OutputI           float32 `json:"output_i,string"`
	OutputTP          float32 `json:"output_tp,string"`
	OutputLRA         float32 `json:"output_lra,string"`
	OutputThresh      float32 `json:"output_thresh,string"`
	NormalizationType string  `json:"normalization_type,string"`
	TargetOffset      float32 `json:"target_offset,string"`
}

type Option added in v0.7.1

type Option func(*FFmpeg)

func WithBin added in v0.8.4

func WithBin(bin string) Option

func WithDebug added in v0.8.4

func WithDebug(debug bool) Option

func WithDry added in v0.8.4

func WithDry(dry bool) Option

func WithLogLevel added in v0.8.4

func WithLogLevel(v LogLevel) Option

log level

func WithOverwrite added in v0.8.4

func WithOverwrite(y bool) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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