Documentation
¶
Index ¶
- Constants
- Variables
- func CheckEXT(fname string) bool
- func Contains(source, target string) bool
- func GetCMD(name string, arg ...string) (string, error)
- type VideoEncoder
- func (v *VideoEncoder) CheckAll() error
- func (v *VideoEncoder) CheckAudio()
- func (v *VideoEncoder) CheckCodec() bool
- func (v *VideoEncoder) DASHcmd()
- func (v *VideoEncoder) Encode() error
- func (v *VideoEncoder) HLScmd()
- func (v *VideoEncoder) New(input_file, codec string, stream_type interface{}) error
- func (v *VideoEncoder) Print()
- func (v *VideoEncoder) SetCommand()
- func (v *VideoEncoder) SetOutput()
- func (v *VideoEncoder) SetOutputDir()
- func (v *VideoEncoder) SetOutputFile()
- func (v *VideoEncoder) ValidateEncode() error
Constants ¶
View Source
const ( DASH = iota HLS )
Variables ¶
View Source
var MethodFMap = map[int]string{ DASH: "index.mpd", HLS: "index.m3u8", }
View Source
var NameFMap = map[int]string{ DASH: "DASH", HLS: "HLS", }
View Source
var VidEXT = []string{".mp4", ".webm", ".ogg", ".wmv", ".mov", ".avchd", ".av1"}
Functions ¶
Types ¶
type VideoEncoder ¶
type VideoEncoder struct {
InputFile string
Codec string
StreamType int
OutputDir string
OutputFile string
Audio bool
Command string
}
func (*VideoEncoder) CheckAll ¶
func (v *VideoEncoder) CheckAll() error
func (*VideoEncoder) CheckAudio ¶
func (v *VideoEncoder) CheckAudio()
func (*VideoEncoder) CheckCodec ¶
func (v *VideoEncoder) CheckCodec() bool
func (*VideoEncoder) DASHcmd ¶
func (v *VideoEncoder) DASHcmd()
func (*VideoEncoder) Encode ¶
func (v *VideoEncoder) Encode() error
func (*VideoEncoder) HLScmd ¶
func (v *VideoEncoder) HLScmd()
func (*VideoEncoder) New ¶
func (v *VideoEncoder) New(input_file, codec string, stream_type interface{}) error
func (*VideoEncoder) Print ¶
func (v *VideoEncoder) Print()
func (*VideoEncoder) SetCommand ¶
func (v *VideoEncoder) SetCommand()
func (*VideoEncoder) SetOutput ¶
func (v *VideoEncoder) SetOutput()
func (*VideoEncoder) SetOutputDir ¶
func (v *VideoEncoder) SetOutputDir()
func (*VideoEncoder) SetOutputFile ¶
func (v *VideoEncoder) SetOutputFile()
func (*VideoEncoder) ValidateEncode ¶
func (v *VideoEncoder) ValidateEncode() error
Click to show internal directories.
Click to hide internal directories.