forked from snickers/snickers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preset.go
30 lines (27 loc) · 1.1 KB
/
preset.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package types
// Preset define the set of parameters of a given preset
type Preset struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Container string `json:"container,omitempty"`
RateControl string `json:"rateControl,omitempty"`
Video VideoPreset `json:"video"`
Audio AudioPreset `json:"audio"`
}
// VideoPreset define the set of parameters for video on a given preset
type VideoPreset struct {
Width string `json:"width,omitempty"`
Height string `json:"height,omitempty"`
Codec string `json:"codec,omitempty"`
Bitrate string `json:"bitrate,omitempty"`
GopSize string `json:"gopSize,omitempty"`
GopMode string `json:"gopMode,omitempty"`
Profile string `json:"profile,omitempty"`
ProfileLevel string `json:"profileLevel,omitempty"`
InterlaceMode string `json:"interlaceMode,omitempty"`
}
// AudioPreset define the set of parameters for audio on a given preset
type AudioPreset struct {
Codec string `json:"codec,omitempty"`
Bitrate string `json:"bitrate,omitempty"`
}