ffmpeg

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concatenate added in v1.3.3

func Concatenate(fnames []string) (fname2 string, err error)

func IsInstalled

func IsInstalled() bool

IsInstalled checks whether ffmpeg is installed

func Normalize

func Normalize(fname string, fnameout string) (err error)

Normalize will perform double pass ebu R128 normalization http://peterforgacs.github.io/2018/05/20/Audio-normalization-with-ffmpeg/

func NumSamples added in v1.3.3

func NumSamples(fname string) (numSamples int64, sampleRate int64, err error)

func RemoveSilence added in v1.3.3

func RemoveSilence(fnameIn, fnameOut string) (err error)

func SplitOnSilence

func SplitOnSilence(fname string, silenceDB int, silenceMinimumSeconds float64, correction float64) (segments []models.AudioSegment, err error)

SplitOnSilence splits any audio file based on its silence

func ToMono added in v1.3.3

func ToMono(fname string) (fname2 string, err error)

Types

type Normalization

type Normalization struct {
	InputI            string `json:"input_i"`
	InputTp           string `json:"input_tp"`
	InputLra          string `json:"input_lra"`
	InputThresh       string `json:"input_thresh"`
	OutputI           string `json:"output_i"`
	OutputTp          string `json:"output_tp"`
	OutputLra         string `json:"output_lra"`
	OutputThresh      string `json:"output_thresh"`
	NormalizationType string `json:"normalization_type"`
	TargetOffset      string `json:"target_offset"`
}

Jump to

Keyboard shortcuts

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