-
Notifications
You must be signed in to change notification settings - Fork 20
/
args.go
43 lines (40 loc) · 1.06 KB
/
args.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
31
32
33
34
35
36
37
38
39
40
41
42
43
package fluentffmpeg
// Args contains the input and output args set for FFmpeg
type Args struct {
input inputArgs
output outputArgs
globalOptions []string
}
type inputArgs struct {
inputPath string
pipeInput bool
fromFormat string
nativeFramerateInput bool `getter:"none"`
inputOptions []string
}
type outputArgs struct {
outputPath string
format string
pipeOutput bool
overwrite bool
resolution string `getter:"none"`
aspectRatio string
pixelFormat string
quality int
preset string
bufferSize int
audioBitrate int
audioChannels int
keyframeInterval int
audioCodec string
constantRateFactor int
videoBitRate int
videoBitRateTolerance int
videoMaxBitrate int
videoMinBitrate int
videoCodec string
vFrames int
frameRate int
audioRate int
outputOptions []string
}