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)
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
Click to show internal directories.
Click to hide internal directories.