/
presets.go
79 lines (67 loc) · 1.4 KB
/
presets.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package ffprobe
var defaultPresetStr = `#default presets
Ffcmdprefix = "ffmpeg -benchmark -y -loglevel verbose -hide_banner"
[inputs_defaults]
thread_queue_size = 512
[inputs]
# -video_size 1920x1080 -framerate 25 -thread_queue_size 512 -f avfoundation -i 3:none \
[inputs.mac.v]
f = 'avfoundation'
i = '%d:none'
[inputs.mac.a]
f = 'avfoundation'
i = 'none:%d'
[presets]
[presets.opus-default]
fileext = 'opus'
avtype = 'a'
codec = 'libopus'
[presets.vp9-default]
fileext = "webm"
avtype = "v"
codec = "vp9"
[presets.vp9-default.options]
threads = 8
[presets.h264-default]
fileext = "mkv"
avtype = "v"
codec = "libx264"
[presets.opus-voice]
fileext = 'opus'
avtype = 'a'
codec = 'libopus'
[presets.opus-voice.options]
"b:a" = '32k'
application = 'voip'
af = "highpass=f=200, lowpass=f=1000"
# TODO: -vf/-af/-filter and -filter_complex cannot be used together for the same stream.
# [presets.vp9-realtime]
# pix_fmt='yuv420p' # TODO output defaults
# fileext = "webm"
# avtype = "v"
# codec = "vp9"
# [presets.vp9-realtime.options]
# speed=5
# tile-columns=6
# frame-parallel=1
# threads=8
# static-thresh=0
# max-intra-rate=300
# deadline="realtime"
# crf=9
# lag-in-frames=9
# # TODO quality min max
# row-mt=1
# error-resilient=1
[presets.capture-v]
fileext = "mkv"
avtype = "v"
codec = "libx264"
[presets.capture-v.options]
preset = "ultrafast"
crf = 0
[presets.capture-a]
fileext = 'aac'
avtype = 'a'
codec = 'aac'
`