Raw schema
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "The clip's address in the library, out/...",
"maxLength": 512
},
"operations": {
"type": "array",
"description": "The operations, in order.",
"items": {
"type": "object",
"properties": {
"op": {
"type": "string",
"description": "What to do.",
"enum": [
"trim",
"reformat",
"captions",
"overlay",
"end_card",
"mix"
]
},
"start": {
"type": "number",
"description": "trim: where to start, in seconds (default 0).",
"minimum": 0
},
"end": {
"type": "number",
"description": "trim: where to stop, in seconds.",
"minimum": 0
},
"aspect_ratio": {
"type": "string",
"description": "reformat: the new frame.",
"enum": [
"9:16",
"1:1",
"16:9",
"4:5"
]
},
"mode": {
"type": "string",
"description": "reformat: crop the picture, pad it, or follow the subject (default crop).",
"enum": [
"crop",
"pad",
"follow"
]
},
"transcript": {
"type": "string",
"description": "captions: the id of a transcript from ugcfans_transcribe.",
"maxLength": 128
},
"cues": {
"type": "array",
"description": "captions: the lines to show, each with start and end seconds and its text.",
"items": {
"type": "object",
"properties": {
"start": {
"type": "number",
"description": "Seconds.",
"minimum": 0
},
"end": {
"type": "number",
"description": "Seconds.",
"minimum": 0
},
"text": {
"type": "string",
"description": "The line.",
"maxLength": 400
}
},
"required": [
"start",
"end",
"text"
],
"additionalProperties": false
},
"maxItems": 2000
},
"brand": {
"type": "string",
"description": "overlay and end_card: the id of a saved brand; overlay puts its logo in the top-right corner, and end_card uses its colours and logo.",
"maxLength": 128
},
"headline": {
"type": "string",
"description": "end_card: the closing headline.",
"maxLength": 200
},
"subline": {
"type": "string",
"description": "end_card: a second line.",
"maxLength": 200
},
"music": {
"type": "string",
"description": "mix: the address of the music file, out/..., which the person has the right to use.",
"maxLength": 512
}
},
"required": [
"op"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 6
}
},
"required": [
"source",
"operations"
],
"additionalProperties": false
}