encoder

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: AGPL-3.0, AGPL-3.0-or-later, AGPL-3.0, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveFormat

func ResolveFormat(output, explicit string) (string, error)

Types

type Encoder

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

func New

func New(ffmpegPath, output string, fps int, format string, opts Options) (*Encoder, error)

func (*Encoder) Close

func (e *Encoder) Close() error

func (*Encoder) WriteFrame

func (e *Encoder) WriteFrame(png []byte) error

type Options added in v0.5.0

type Options struct {
	AudioPath           string
	AudioVolume         float64
	AudioVolumeSet      bool
	AudioLoop           bool
	AudioStartSeconds   float64
	AudioFadeInSeconds  float64
	AudioFadeOutSeconds float64
	DurationSeconds     float64
}

Jump to

Keyboard shortcuts

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