encoder

package
v0.0.0-...-4c74423 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedType = errors.New("unsupported type")
)

Functions

This section is empty.

Types

type EncodeHLSResponse

type EncodeHLSResponse struct {
	Output           string
	IndexFilepath    string
	SegmentFilepaths []string
}

type EncodeOpts

type EncodeOpts struct {
	ChunkSizeSeconds int
	Codec            string
	Bitrate          string
}

https://trac.ffmpeg.org/wiki/Encode/HighQualityAudio

type EncodeRequest

type EncodeRequest struct {
	Mimetype   string
	InputPath  string
	OutputPath string
}

type EncodeWAVResponse

type EncodeWAVResponse struct {
	Output   string
	Filepath string
}

type Encoder

func New

func New(binPath string, opts EncodeOpts) Encoder

newFfmpeg returns a new ffmpeg Encoder

Jump to

Keyboard shortcuts

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