Documentation
¶
Index ¶
- Constants
- Variables
- func CheckEXT(fname string) bool
- func CleanUp(compress, encrypt bool, compress_lvl int, output_dir string) error
- func Make(vreq VideoEncoderRequest) error
- func MakeUrl(c *gin.Context, fpath string, method int) string
- type GPUType
- type VideoEncoder
- func (v *VideoEncoder) CheckAll() error
- func (v *VideoEncoder) CheckAudio()
- func (v *VideoEncoder) CheckCodec() bool
- func (v *VideoEncoder) DASHcmd()
- func (v *VideoEncoder) HLScmd()
- func (v *VideoEncoder) Print()
- func (v *VideoEncoder) SetCommand()
- func (v *VideoEncoder) SetOutput()
- func (v *VideoEncoder) SetOutputDir()
- func (v *VideoEncoder) SetOutputFile()
- func (v *VideoEncoder) VideoBuilder(method int) error
- type VideoEncoderRequest
Constants ¶
View Source
const ( DASH = iota HLS POSTER )
View Source
const DEFAULT_BITRATE = 1000
Variables ¶
View Source
var MethodFMap = map[int]string{ DASH: "index.mpd", HLS: "index.m3u8", POSTER: "index.jpg", }
View Source
var VidEXT = []string{".mp4", ".webm", ".ogg", ".wmv", ".mov", ".avchd", ".av1"}
Functions ¶
func Make ¶
func Make(vreq VideoEncoderRequest) error
Types ¶
type VideoEncoder ¶
type VideoEncoder struct {
InputFile string
OutputDir string
OutputFile string
StreamType int
Codec string
Audio bool
Command string
GPUType GPUType
Bitrate 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) HLScmd ¶
func (v *VideoEncoder) HLScmd()
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) VideoBuilder ¶
func (v *VideoEncoder) VideoBuilder(method int) error
Click to show internal directories.
Click to hide internal directories.