ffmpeg

package
v0.0.0-...-80e0f6d Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertSetting

type ConvertSetting struct {
	FileInput            File
	FileOut              File
	OverwriteOutputFiles bool
	Encoder              encoder.EncoderContract
}

type FFmpegContract

type FFmpegContract interface {
	GetPath() string
	GetVersion() (string, error)
	GetEncoders(scanner func(scanner *bufio.Reader)) error
	RunConvert(setting ConvertSetting, progress ProgressContract, beforeWait func(cmd *exec.Cmd), afterWait func(cmd *exec.Cmd)) error
}

type FFplayContract

type FFplayContract interface {
	GetPath() string
	GetVersion() (string, error)
	Play(file *File) error
}

type FFprobeContract

type FFprobeContract interface {
	GetPath() string
	GetVersion() (string, error)
	GetTotalDuration(file *File) (float64, error)
}

type File

type File struct {
	Path string
	Name string
	Ext  string
}

type ProgressContract

type ProgressContract interface {
	GetProtocole() string
	Run(stdOut io.ReadCloser, stdErr io.ReadCloser) error
}

type UtilitiesContract

type UtilitiesContract interface {
	UtilityCheck() bool

	GetFFmpeg() (FFmpegContract, error)
	GetFFmpegVersion() string
	GetFFmpegPath() string
	ChangeFFmpeg(path string) error

	GetFFprobe() (FFprobeContract, error)
	GetFFprobeVersion() string
	GetFFprobePath() string
	ChangeFFprobe(path string) error

	GetFFplay() (FFplayContract, error)
	GetFFplayVersion() string
	GetFFplayPath() string
	ChangeFFplay(path string) error
}

func NewUtilities

func NewUtilities(setting setting.SettingContract) UtilitiesContract

Jump to

Keyboard shortcuts

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