transcoder

package
v0.0.0-...-c27793d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultResolution = "720p"

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioCodecType

type AudioCodecType int
const (
	AAC AudioCodecType = iota
)

func (AudioCodecType) String

func (ac AudioCodecType) String() string

func (AudioCodecType) StringFourCC

func (ac AudioCodecType) StringFourCC() string

type Transcoder

type Transcoder struct {
	ID             string
	MasterFileName string
	FfmpegBin      string
	Source         string
	Varients       []string
	VideoCodec     VideoCodecType
	AudioCodec     AudioCodecType
	FrameRate      float64
	AudioEnable    bool
	OutputDir      string
	MasterHls      string
	Mux            sync.RWMutex
	// contains filtered or unexported fields
}

func NewTranscoder

func NewTranscoder(source string, ID string) *Transcoder

func (*Transcoder) Run

func (t *Transcoder) Run() (string, error)

func (*Transcoder) SetConfig

func (t *Transcoder) SetConfig(varients []string, audio bool, videoCodec string, audioCodec string)

type VideoCodecType

type VideoCodecType int
const (
	H264 VideoCodecType = iota
	H265
)

func (VideoCodecType) String

func (vc VideoCodecType) String() string

func (VideoCodecType) StringFourCC

func (vc VideoCodecType) StringFourCC() string

Jump to

Keyboard shortcuts

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