forked from obsproject/rfcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecDefs.json
More file actions
54 lines (54 loc) · 2.04 KB
/
codecDefs.json
File metadata and controls
54 lines (54 loc) · 2.04 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://obsproject.com/schemas/codecDefs.json",
"title": "Codec Enums, Patterns and Properties",
"description": "Codec-related enums, patterns and properties used in OBS JSON Schemas",
"$comment": "Made to allow an easy way to add codec to schemas",
"$defs": {
"videoCodecEnum": {
"$comment": "Enumeration of video codecs",
"enum": ["h264","hevc","av1"]
},
"audioCodecEnum": {
"$comment": "Enumeration of audio codecs",
"enum": ["aac","opus"]
},
"codecProperties": {
"$comment": "Per-codec properties meant for obs-services schema",
"type": "object",
"properties": {
"h264":
{
"type": "object",
"title": "H264 Settings",
"description": "Properties related to the H264 codec",
"properties": {
"profile": {
"type": "string",
"title": "H264 Profile",
"enum": [ "baseline", "main", "high" ]
},
"keyint": {
"type": "integer",
"title": "Keyframe Interval (seconds)",
"minimum": 0
},
"bframes":
{
"type": "integer",
"title": "B-Frames",
"minimum": 0
}
},
"minProperties": 1
},
"obs_x264": {
"type": "string",
"title": "x264 Encoder Options",
"description": "Options meant for the x264 encoder implementation with the id 'obs_x264'",
"minLength": 1
}
}
}
}
}