You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
452 B
26 lines
452 B
package ffmpegServer
|
|
|
|
type FfmpegConfig struct {
|
|
Timeout int
|
|
ToHls ToHlsConfig
|
|
}
|
|
|
|
type CmdBaseConfig struct {
|
|
decodeCodec string
|
|
EncodeCodec string
|
|
Profile string
|
|
Preset string
|
|
Crf string
|
|
Bitrate string
|
|
VfScale string
|
|
GopSize string
|
|
}
|
|
|
|
type ToHlsConfig struct {
|
|
CmdBaseConfig `mapstructure:"base"`
|
|
HlsRoot string
|
|
HlsName string
|
|
HlsTime string
|
|
HlsListSize string
|
|
HlsWarp string
|
|
}
|
|
|