encoder

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MasterPlaylist = "master.m3u8"
)

Variables

This section is empty.

Functions

func GetMetadata

func GetMetadata(file string) (*ffmpeg.Metadata, error)

GetMetadata uses ffprobe to parse video file metadata.

func SetLogger

func SetLogger(l *zap.SugaredLogger)

Types

type Argument

type Argument [2]string

type Arguments

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

func HLSArguments

func HLSArguments() Arguments

HLSArguments creates a default set of arguments for ffmpeg HLS encoding.

func NewArguments

func NewArguments(out string, formats []formats.Format, fps int) (Arguments, error)

func (Arguments) GetStrArguments

func (a Arguments) GetStrArguments() []string

GetStrArguments serializes ffmpeg arguments in a format sutable for cmd.Start.

type Encoder

type Encoder interface {
	Encode() (<-chan ffmpegt.Progress, error)
	Meta() *ffmpeg.Metadata
}

func NewEncoder

func NewEncoder(in, out string) (Encoder, error)

Jump to

Keyboard shortcuts

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