{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "aliases": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "type": {
                    "type": "string",
                    "const": "number"
                  }
                },
                "required": [
                  "type",
                  "field"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "const": "string"
                  }
                },
                "required": [
                  "type",
                  "field"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "const": "uuid"
                  }
                },
                "required": [
                  "type",
                  "field"
                ],
                "additionalProperties": false
              }
            ]
          },
          "value": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "integer",
                    "format": "int64"
                  },
                  "type": {
                    "type": "string",
                    "const": "number"
                  }
                },
                "required": [
                  "type",
                  "field"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "const": "string"
                  }
                },
                "required": [
                  "type",
                  "field"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "const": "uuid"
                  }
                },
                "required": [
                  "type",
                  "field"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "key",
          "value"
        ],
        "additionalProperties": false
      }
    },
    "annotations": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "default": {}
    },
    "api": {
      "type": "object",
      "properties": {
        "api_key": {
          "type": [
            "string",
            "null"
          ]
        },
        "bind": {
          "type": "string"
        }
      },
      "default": {
        "bind": "0.0.0.0:4040"
      },
      "required": [
        "bind"
      ],
      "additionalProperties": false
    },
    "compositors": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object",
        "properties": {
          "anchor": {
            "description": "The input whose clock the output carries, named by its id in `audio`,\n`video` or `passthrough`. Its timestamps are never rewritten; the output\nstarts on its first keyframe when it is video, otherwise on its first\nunit. Inputs on the same clock (from the same source, however they were\nrouted) keep their timestamps too, so they stay exactly in sync with it.\nInputs on other clocks are aligned onto its timeline when their first\nunit arrives. By default the compositor anchors on a passthrough video\ninput if it has one, otherwise on its first decoded input, in source id\nand track order, so this is only needed to choose between clocks.",
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "audio": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "nodes": {
                "type": "array",
                "default": [],
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "description": "https://ffmpeg.org/ffmpeg-filters.html#volume",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "type": {
                          "type": "string",
                          "const": "volume"
                        },
                        "volume": {
                          "type": "number",
                          "format": "float"
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "type",
                        "volume"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "description": "https://ffmpeg.org/ffmpeg-filters.html#anull",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "type": {
                          "type": "string",
                          "const": "anull"
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "description": "https://ffmpeg.org/ffmpeg-filters.html#amerge-1",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "type": {
                          "type": "string",
                          "const": "amerge"
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "description": "https://ffmpeg.org/ffmpeg-filters.html#amix\n\nSums several audio inputs. The FIRST is the timing MASTER: passed through\nuntouched, defining the output rate and timeline. Every other input is\naresample-locked to it, so independently-clocked sources stay aligned and\nmixed rates work. Mirrors video overlay, where the base layer is listed\nfirst.",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "normalize": {
                          "description": "When false (default) `amix` does not divide by the weight sum, so the\nmaster keeps its true level and slaves are added on top.",
                          "type": "boolean",
                          "default": false
                        },
                        "type": {
                          "type": "string",
                          "const": "amix"
                        },
                        "weights": {
                          "description": "Per-SOURCE gain, in `source_ids` order (master first). If present,\nlength MUST equal the number of `source_ids`. A source whose selector\nmatches several audio tracks applies its weight to each of them. Absent => everything weighted 1.0.",
                          "type": [
                            "array",
                            "null"
                          ],
                          "default": null,
                          "items": {
                            "type": "number",
                            "format": "float"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "description": "https://ffmpeg.org/ffmpeg-filters.html#channelmap\n\nReorders, drops, duplicates or relabels the channels of one audio input.\nThe output has exactly the channels listed in `map`, in that order, or the\ninput channels relabelled to `channel_layout` when `map` is empty.",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "channel_layout": {
                          "description": "ffmpeg channel layout name for the output (`\"stereo\"`, `\"5.1\"`,\n`\"FL+FR\"`). Required when `map` is empty; otherwise its channel count\nMUST equal the number of `map` entries.",
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "map": {
                          "description": "Output channels in order. Each entry names an input channel by index\n(`\"0\"`) or ffmpeg channel name (`\"FL\"`), optionally paired with the\noutput channel it lands on (`\"0-1\"`, `\"FL-FR\"`). Every entry MUST use\nthe same form. Empty with `channel_layout` set relabels the input\nchannels in place.",
                          "type": "array",
                          "default": [],
                          "items": {
                            "type": "string"
                          }
                        },
                        "type": {
                          "type": "string",
                          "const": "channelmap"
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "type"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "sources": {
                "type": "array",
                "default": [],
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "source_id": {
                      "type": "string"
                    },
                    "track_selector": {
                      "description": "A track selector allow filtering tracks based on id, index, track type, codec(?)",
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "id": {
                              "description": "the track id to match against",
                              "type": "integer",
                              "format": "int32"
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "type": {
                              "type": "string",
                              "const": "track-id"
                            }
                          },
                          "required": [
                            "type",
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "codec": {
                              "description": "match against a specific codec or any codec",
                              "type": "string"
                            },
                            "criteria": {
                              "description": "wether to add all matching or only the \"best\"",
                              "type": "string",
                              "default": "best",
                              "enum": [
                                "all",
                                "best"
                              ]
                            },
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "kind": {
                              "description": "the track kind to match",
                              "type": "string",
                              "enum": [
                                "unknown",
                                "video",
                                "audio",
                                "data",
                                "subtitle",
                                "attachment"
                              ]
                            },
                            "language": {
                              "description": "matches a track language",
                              "type": [
                                "string",
                                "null"
                              ],
                              "default": null
                            },
                            "type": {
                              "type": "string",
                              "const": "track-kind"
                            }
                          },
                          "required": [
                            "type",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "source_id",
                    "track_selector"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "default": null,
            "additionalProperties": false
          },
          "description": {
            "description": "A description of the task",
            "type": "string",
            "default": ""
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "passthrough": {
            "description": "Generic passthrough sources. These tracks bypass decoding and filtering\nentirely; only their timestamps are aligned with the composited timeline.\nUseful for subtitles, data tracks, or any track that doesn't need\ncompositing.",
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "sources": {
                "type": "array",
                "default": [],
                "items": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean",
                      "default": true
                    },
                    "id": {
                      "type": "string"
                    },
                    "source_id": {
                      "type": "string"
                    },
                    "track_selector": {
                      "description": "A track selector allow filtering tracks based on id, index, track type, codec(?)",
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "id": {
                              "description": "the track id to match against",
                              "type": "integer",
                              "format": "int32"
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "type": {
                              "type": "string",
                              "const": "track-id"
                            }
                          },
                          "required": [
                            "type",
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "codec": {
                              "description": "match against a specific codec or any codec",
                              "type": "string"
                            },
                            "criteria": {
                              "description": "wether to add all matching or only the \"best\"",
                              "type": "string",
                              "default": "best",
                              "enum": [
                                "all",
                                "best"
                              ]
                            },
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "kind": {
                              "description": "the track kind to match",
                              "type": "string",
                              "enum": [
                                "unknown",
                                "video",
                                "audio",
                                "data",
                                "subtitle",
                                "attachment"
                              ]
                            },
                            "language": {
                              "description": "matches a track language",
                              "type": [
                                "string",
                                "null"
                              ],
                              "default": null
                            },
                            "type": {
                              "type": "string",
                              "const": "track-kind"
                            }
                          },
                          "required": [
                            "type",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "source_id",
                    "track_selector"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "default": null,
            "additionalProperties": false
          },
          "target_state": {
            "description": "The initial target state",
            "type": "string",
            "default": "started",
            "enum": [
              "started",
              "stopped",
              "destroyed"
            ]
          },
          "video": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "nodes": {
                "type": "array",
                "default": [],
                "items": {
                  "type": "object",
                  "oneOf": [
                    {
                      "description": "CPU `overlay` filter.",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "output_format": {
                          "description": "Output pixel format. When set, a format conversion filter is appended\nto strip alpha or convert formats (e.g. \"yuv420p\") for GPU compatibility.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "format": {
                          "description": "The pixel format of the overlay. Set to \"auto\" to enable alpha blending.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "type": {
                          "type": "string",
                          "const": "overlay"
                        },
                        "x": {
                          "description": "The x offset expression where the overlay will be drawn. Default is \"0\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "y": {
                          "description": "The y offset expression where the overlay will be drawn. Default is \"0\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "description": "Hardware `overlay_cuda` filter: uploads each input to CUDA memory and\ncomposites on the GPU. It has no `format` option (unlike the CPU\n`Overlay`); the alpha sw-format is fixed to yuv420p.",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "output_format": {
                          "description": "Output pixel format. When set, a format conversion filter is appended\nto strip alpha or convert formats (e.g. \"yuv420p\") for GPU compatibility.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "type": {
                          "type": "string",
                          "const": "overlay_cuda"
                        },
                        "x": {
                          "description": "The x offset expression where the overlay will be drawn. Default is \"0\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "y": {
                          "description": "The y offset expression where the overlay will be drawn. Default is \"0\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "description": "QSV overlay; both inputs must be frames on the same QSV device.",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "output_format": {
                          "description": "Output pixel format. When set, a format conversion filter is appended\nto strip alpha or convert formats (e.g. \"yuv420p\") for GPU compatibility.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "alpha": {
                          "description": "Optional global overlay alpha from 0 (transparent) to 255 (opaque).",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint8",
                          "maximum": 255,
                          "minimum": 0
                        },
                        "h": {
                          "description": "Optional output height expression for the overlay layer.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "type": {
                          "type": "string",
                          "const": "overlay_qsv"
                        },
                        "w": {
                          "description": "Optional output width expression for the overlay layer.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "x": {
                          "description": "The x offset expression where the overlay will be drawn. Default is \"0\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "y": {
                          "description": "The y offset expression where the overlay will be drawn. Default is \"0\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "description": "https://ffmpeg.org/ffmpeg-filters.html#xstack-1",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "output_format": {
                          "description": "Output pixel format. When set, a format conversion filter is appended\nto strip alpha or convert formats (e.g. \"yuv420p\") for GPU compatibility.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "grid": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "const": "xstack"
                        }
                      },
                      "required": [
                        "grid",
                        "id",
                        "source_ids",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "description": "https://ffmpeg.org/ffmpeg-filters.html#null",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "output_format": {
                          "description": "Output pixel format. When set, a format conversion filter is appended\nto strip alpha or convert formats (e.g. \"yuv420p\") for GPU compatibility.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "type": {
                          "type": "string",
                          "const": "null"
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "description": "https://ffmpeg.org/ffmpeg-filters.html#toc-drawtext-1",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "output_format": {
                          "description": "Output pixel format. When set, a format conversion filter is appended\nto strip alpha or convert formats (e.g. \"yuv420p\") for GPU compatibility.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_ids": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "alpha": {
                          "description": "Draw the text applying alpha blending. Value between 0.0 and 1.0. Default is 1.",
                          "type": [
                            "number",
                            "null"
                          ],
                          "format": "double"
                        },
                        "basetime": {
                          "description": "Set a start time for the count in microseconds. Only used in strftime expansion mode.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int64"
                        },
                        "border_color": {
                          "description": "Set the color for drawing border around text. Default is \"black\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "border_w": {
                          "description": "Set the width of the border around the text. Default is 0.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint32",
                          "minimum": 0
                        },
                        "box": {
                          "description": "Used to draw a box around text using the background color (0 = disable, 1 = enable). Default is 0.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint8",
                          "maximum": 255,
                          "minimum": 0
                        },
                        "box_border_w": {
                          "description": "Set the width of the border around the box. Supports formats like \"10\", \"10|20\", \"10|20|30\", \"10|20|30|40\".\nDefault is \"0\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "box_color": {
                          "description": "The color to be used for drawing the box around text. Default is \"white\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "box_h": {
                          "description": "Set the height of the box. Default is computed automatically.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint32",
                          "minimum": 0
                        },
                        "box_w": {
                          "description": "Set the width of the box. Default is computed automatically.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint32",
                          "minimum": 0
                        },
                        "expansion": {
                          "description": "Select text expansion mode: \"none\", \"strftime\" (deprecated), or \"normal\" (default).",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fix_bounds": {
                          "description": "If true, check and fix text coords to avoid clipping.",
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "font": {
                          "description": "The font family to be used for drawing text. Default is \"Sans\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "font_color": {
                          "description": "The foreground color to be used for drawing text. Default is \"black\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "font_color_expr": {
                          "description": "String which is expanded to obtain a dynamic fontcolor value. Overrides `font_color` when set.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "font_size": {
                          "description": "The font size to be used for drawing text. Default is 16.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint32",
                          "minimum": 0
                        },
                        "fontfile": {
                          "description": "The font file to be used for drawing text. The path must be included.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "line_spacing": {
                          "description": "Set the line spacing in pixels. Default is 0.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int32"
                        },
                        "shadow_color": {
                          "description": "The color for drawing a shadow behind the text. Default is \"black\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "shadow_x": {
                          "description": "The x offset for the text shadow position. Default is 0.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int32"
                        },
                        "shadow_y": {
                          "description": "The y offset for the text shadow position. Default is 0.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int32"
                        },
                        "start_number": {
                          "description": "The starting frame number for the n/frame_num variable. Default is 0.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint32",
                          "minimum": 0
                        },
                        "tabsize": {
                          "description": "The size in number of spaces to use for rendering the tab. Default is 4.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint32",
                          "minimum": 0
                        },
                        "tc24hmax": {
                          "description": "If set to 1, the output of the timecode option will wrap around at 24 hours. Default is 0.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint8",
                          "maximum": 255,
                          "minimum": 0
                        },
                        "text": {
                          "description": "The text string to be drawn. Must be a sequence of UTF-8 encoded characters.",
                          "type": "string"
                        },
                        "text_align": {
                          "description": "Set text alignment (combination of T/M/B for vertical and L/C/R for horizontal). E.g. \"T+L\", \"M+C\", \"B+R\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "text_shaping": {
                          "description": "If set to 1, attempt to shape the text before drawing it. Default is 1.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint8",
                          "maximum": 255,
                          "minimum": 0
                        },
                        "timecode": {
                          "description": "Set initial timecode in \"hh:mm:ss[:;.]ff\" format.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "timecode_rate": {
                          "description": "Set the timecode frame rate (timecode only). Value will be rounded to nearest integer. Minimum is 1.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "type": {
                          "type": "string",
                          "const": "drawtext"
                        },
                        "x": {
                          "description": "The x offset expression where text will be drawn. Default is \"0\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "y": {
                          "description": "The y offset expression where text will be drawn. Default is \"0\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "y_align": {
                          "description": "Specify what y refers to: \"text\" (default), \"baseline\", or \"font\".",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "source_ids",
                        "text",
                        "type"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "sources": {
                "type": "array",
                "default": [],
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "source_id": {
                      "type": "string"
                    },
                    "track_selector": {
                      "description": "A track selector allow filtering tracks based on id, index, track type, codec(?)",
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "id": {
                              "description": "the track id to match against",
                              "type": "integer",
                              "format": "int32"
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "type": {
                              "type": "string",
                              "const": "track-id"
                            }
                          },
                          "required": [
                            "type",
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "codec": {
                              "description": "match against a specific codec or any codec",
                              "type": "string"
                            },
                            "criteria": {
                              "description": "wether to add all matching or only the \"best\"",
                              "type": "string",
                              "default": "best",
                              "enum": [
                                "all",
                                "best"
                              ]
                            },
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "kind": {
                              "description": "the track kind to match",
                              "type": "string",
                              "enum": [
                                "unknown",
                                "video",
                                "audio",
                                "data",
                                "subtitle",
                                "attachment"
                              ]
                            },
                            "language": {
                              "description": "matches a track language",
                              "type": [
                                "string",
                                "null"
                              ],
                              "default": null
                            },
                            "type": {
                              "type": "string",
                              "const": "track-kind"
                            }
                          },
                          "required": [
                            "type",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "source_id",
                    "track_selector"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "default": null,
            "additionalProperties": false
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "control_plane": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "heartbeat_interval": {
          "description": "Heartbeat interval for keep-alive with control plane\nDefaults to 2 seconds",
          "type": "string",
          "default": "2s"
        },
        "hostname": {
          "description": "Hostname to identify this packager instance (defaults to system hostname)",
          "type": [
            "string",
            "null"
          ],
          "default": null
        },
        "token": {
          "description": "Authentication token for the control plane",
          "type": "string"
        },
        "url": {
          "description": "The base URL of the control plane API",
          "type": "string",
          "format": "uri"
        }
      },
      "default": null,
      "required": [
        "url",
        "token"
      ],
      "additionalProperties": false
    },
    "drm_provider": {
      "type": "array",
      "default": [],
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "content_id": {
                "type": "string"
              },
              "fairplay_certificate": {
                "description": "Certificate for FairPlay base64 encoded",
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "fairplay_license_url": {
                "description": "URL to the license server for FairPlay",
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "hls_signaling_data": {
                "description": "EXT-X-KEY tags for HLS",
                "type": "array",
                "default": [],
                "items": {
                  "type": "string"
                }
              },
              "id": {
                "description": "Identifier for this provider (reference in sink configuration to apply DRM)",
                "type": "string",
                "format": "uuid"
              },
              "iv": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "key_id": {
                "type": "string"
              },
              "playready_license_url": {
                "description": "URL to the license server for PlayReady",
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "provider": {
                "description": "The name of the DRM provider",
                "type": "string",
                "enum": [
                  "ezdrm",
                  "irdeto"
                ]
              },
              "pssh": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "scheme": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "static"
              },
              "widevine_license_url": {
                "description": "URL to the license server for Widevine",
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              }
            },
            "required": [
              "type",
              "id",
              "content_id",
              "scheme",
              "iv",
              "key_id",
              "key",
              "pssh",
              "provider"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "content_id": {
                "description": "Content id",
                "type": "string"
              },
              "cpix_url": {
                "description": "URL to cpix endpoint",
                "type": "string"
              },
              "fairplay_certificate": {
                "description": "Certificate for FairPlay base64 encoded",
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "fairplay_license_url": {
                "description": "URL to the license server for FairPlay",
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "hls_signaling_data": {
                "description": "EXT-X-KEY tags for HLS",
                "type": "array",
                "default": [],
                "items": {
                  "type": "string"
                }
              },
              "id": {
                "description": "Identifier for this provider (reference in sink configuration to apply DRM)",
                "type": "string",
                "format": "uuid"
              },
              "kid": {
                "description": "Key ID for the content - will be generated if not provided (recommended)",
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid"
              },
              "playready_license_url": {
                "description": "URL to the license server for PlayReady",
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              },
              "provider": {
                "description": "The name of the DRM provider",
                "type": "string",
                "enum": [
                  "ezdrm",
                  "irdeto"
                ]
              },
              "scheme": {
                "description": "Encryption scheme",
                "type": "string"
              },
              "token": {
                "description": "Token for authenticating with the CPIX provider",
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "cpix"
              },
              "widevine_license_url": {
                "description": "URL to the license server for Widevine",
                "type": [
                  "string",
                  "null"
                ],
                "default": null
              }
            },
            "required": [
              "type",
              "id",
              "token",
              "cpix_url",
              "scheme",
              "content_id",
              "provider"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "logging": {
      "type": "object",
      "properties": {
        "browser_log_level": {
          "description": "Chromium stderr log threshold. Page console output uses `media_engine_browser=trace`.",
          "type": "string",
          "default": "disable",
          "enum": [
            "disable",
            "fatal",
            "error",
            "warning",
            "info",
            "verbose"
          ]
        },
        "ffmpeg_log_level": {
          "description": "The log level for FFmpeg (if enabled)\nIt's recommended to keep this as default and change the filter string using `ffmpeg=debug` or similar",
          "type": "string",
          "default": "verbose",
          "enum": [
            "quiet",
            "panic",
            "fatal",
            "error",
            "warning",
            "info",
            "verbose",
            "debug",
            "trace"
          ]
        },
        "filter": {
          "description": "Filter for the log messages, e.g. \"my_crate=debug,another_crate=info\"",
          "type": "string",
          "default": ""
        },
        "kind": {
          "description": "The type of logging format to use",
          "type": "string",
          "default": "fancy",
          "enum": [
            "json",
            "fancy"
          ]
        },
        "level": {
          "description": "Default log level to use",
          "type": "string",
          "default": "info",
          "enum": [
            "trace",
            "debug",
            "info",
            "warn",
            "error"
          ]
        },
        "sentry_tracing": {
          "description": "Enable the Sentry tracing layer.\nWhen false, the Sentry client still captures panics and errors via its own hooks,\nbut tracing events/spans are not forwarded to Sentry as breadcrumbs or events.\nOnly has an effect when compiled with the `sentry` feature.",
          "type": "boolean",
          "default": true
        },
        "log_level": {
          "description": "Default log level to use",
          "type": "string",
          "default": "info",
          "enum": [
            "trace",
            "debug",
            "info",
            "warn",
            "error"
          ]
        },
        "type": {
          "description": "The type of logging format to use",
          "type": "string",
          "default": "fancy",
          "enum": [
            "json",
            "fancy"
          ]
        },
        "log_type": {
          "description": "The type of logging format to use",
          "type": "string",
          "default": "fancy",
          "enum": [
            "json",
            "fancy"
          ]
        },
        "mode": {
          "description": "The type of logging format to use",
          "type": "string",
          "default": "fancy",
          "enum": [
            "json",
            "fancy"
          ]
        }
      },
      "default": {
        "browser_log_level": "disable",
        "ffmpeg_log_level": "verbose",
        "filter": "",
        "kind": "fancy",
        "level": "info",
        "sentry_tracing": true
      },
      "additionalProperties": false,
      "dependencies": {
        "log_level": {
          "not": {
            "required": [
              "level"
            ]
          }
        },
        "kind": {
          "not": {
            "anyOf": [
              {
                "required": [
                  "type"
                ]
              },
              {
                "required": [
                  "log_type"
                ]
              },
              {
                "required": [
                  "mode"
                ]
              }
            ]
          }
        },
        "type": {
          "not": {
            "anyOf": [
              {
                "required": [
                  "kind"
                ]
              },
              {
                "required": [
                  "log_type"
                ]
              },
              {
                "required": [
                  "mode"
                ]
              }
            ]
          }
        },
        "log_type": {
          "not": {
            "anyOf": [
              {
                "required": [
                  "kind"
                ]
              },
              {
                "required": [
                  "type"
                ]
              },
              {
                "required": [
                  "mode"
                ]
              }
            ]
          }
        },
        "mode": {
          "not": {
            "anyOf": [
              {
                "required": [
                  "kind"
                ]
              },
              {
                "required": [
                  "type"
                ]
              },
              {
                "required": [
                  "log_type"
                ]
              }
            ]
          }
        }
      }
    },
    "sinks": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object",
        "properties": {
          "annotations": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "default": {}
          },
          "connect_timeout_ms": {
            "type": "integer",
            "format": "uint64",
            "minimum": 0
          },
          "description": {
            "description": "A description of the task",
            "type": "string",
            "default": ""
          },
          "drm_provider_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "idle_timeout_ms": {
            "description": "Timeout after the sink has been idle for the specified\nduration",
            "type": "integer",
            "format": "uint64",
            "default": 20000,
            "minimum": 0
          },
          "muxer_options": {
            "description": "Options that go into the underlying sink muxer",
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "int"
                        },
                        "value": {
                          "type": "integer",
                          "format": "int64"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "u_int"
                        },
                        "value": {
                          "type": "integer",
                          "format": "uint64",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "double"
                        },
                        "value": {
                          "type": "number",
                          "format": "double"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "bool"
                        },
                        "value": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "ratio"
                        },
                        "value": {
                          "type": "array",
                          "items": [
                            {
                              "type": "integer",
                              "format": "int32"
                            },
                            {
                              "type": "integer",
                              "format": "int32"
                            }
                          ],
                          "maxItems": 2,
                          "minItems": 2
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "pixel"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "sample"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              ]
            },
            "default": {}
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "protocol_options": {
            "description": "Options that go into the underlying sink output",
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "int"
                        },
                        "value": {
                          "type": "integer",
                          "format": "int64"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "u_int"
                        },
                        "value": {
                          "type": "integer",
                          "format": "uint64",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "double"
                        },
                        "value": {
                          "type": "number",
                          "format": "double"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "bool"
                        },
                        "value": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "ratio"
                        },
                        "value": {
                          "type": "array",
                          "items": [
                            {
                              "type": "integer",
                              "format": "int32"
                            },
                            {
                              "type": "integer",
                              "format": "int32"
                            }
                          ],
                          "maxItems": 2,
                          "minItems": 2
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "pixel"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "sample"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              ]
            },
            "default": {}
          },
          "queue_size": {
            "type": "integer",
            "format": "uint",
            "default": 10000,
            "minimum": 0
          },
          "reconnect_delay_ms": {
            "description": "The delay to apply between each reconnect attempt",
            "type": "integer",
            "format": "uint64",
            "default": 1000,
            "minimum": 0
          },
          "sink_type": {
            "description": "The name of the sink kind",
            "type": "string"
          },
          "source_ids": {
            "description": "The source ids to receive messages from",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "target_state": {
            "description": "The initial target state",
            "type": "string",
            "default": "started",
            "enum": [
              "started",
              "stopped",
              "destroyed"
            ]
          },
          "track_selectors": {
            "description": "A list of selectors that indicate which tracks the task wants.\nEmpty indicates that all tracks should be matched",
            "type": "array",
            "default": [],
            "items": {
              "description": "A track selector allow filtering tracks based on id, index, track type, codec(?)",
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "decoration": {
                      "description": "decorate the track with additional values",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "bit_rate": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int64"
                        },
                        "id": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int32"
                        },
                        "language": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "default": {}
                        }
                      },
                      "default": null,
                      "additionalProperties": false
                    },
                    "id": {
                      "description": "the track id to match against",
                      "type": "integer",
                      "format": "int32"
                    },
                    "is_required": {
                      "description": "true if the task should not start without a matching track",
                      "type": "boolean",
                      "default": false
                    },
                    "type": {
                      "type": "string",
                      "const": "track-id"
                    }
                  },
                  "required": [
                    "type",
                    "id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "codec": {
                      "description": "match against a specific codec or any codec",
                      "type": "string"
                    },
                    "criteria": {
                      "description": "wether to add all matching or only the \"best\"",
                      "type": "string",
                      "default": "best",
                      "enum": [
                        "all",
                        "best"
                      ]
                    },
                    "decoration": {
                      "description": "decorate the track with additional values",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "bit_rate": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int64"
                        },
                        "id": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int32"
                        },
                        "language": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "default": {}
                        }
                      },
                      "default": null,
                      "additionalProperties": false
                    },
                    "is_required": {
                      "description": "true if the task should not start without a matching track",
                      "type": "boolean",
                      "default": false
                    },
                    "kind": {
                      "description": "the track kind to match",
                      "type": "string",
                      "enum": [
                        "unknown",
                        "video",
                        "audio",
                        "data",
                        "subtitle",
                        "attachment"
                      ]
                    },
                    "language": {
                      "description": "matches a track language",
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "type": {
                      "type": "string",
                      "const": "track-kind"
                    }
                  },
                  "required": [
                    "type",
                    "kind"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "wait_for_all_sources": {
            "description": "The task will wait for all sources to be started before starting",
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "id",
          "sink_type",
          "source_ids"
        ],
        "additionalProperties": false
      }
    },
    "sources": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object",
        "properties": {
          "annotations": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "default": {}
          },
          "connect_timeout_ms": {
            "type": "integer",
            "format": "uint64",
            "minimum": 0
          },
          "demuxer_options": {
            "description": "Options that go into the underlying source demuxer",
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "int"
                        },
                        "value": {
                          "type": "integer",
                          "format": "int64"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "u_int"
                        },
                        "value": {
                          "type": "integer",
                          "format": "uint64",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "double"
                        },
                        "value": {
                          "type": "number",
                          "format": "double"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "bool"
                        },
                        "value": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "ratio"
                        },
                        "value": {
                          "type": "array",
                          "items": [
                            {
                              "type": "integer",
                              "format": "int32"
                            },
                            {
                              "type": "integer",
                              "format": "int32"
                            }
                          ],
                          "maxItems": 2,
                          "minItems": 2
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "pixel"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "sample"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              ]
            },
            "default": {}
          },
          "description": {
            "description": "A description of the task",
            "type": "string",
            "default": ""
          },
          "handle_timestamp_rollover": {
            "description": "Automatically handle timestamp rollover",
            "type": "boolean",
            "default": true
          },
          "id": {
            "type": "string"
          },
          "idle_timeout_ms": {
            "description": "Timeout after the source has been idle for the specified\nduration",
            "type": "integer",
            "format": "uint64",
            "default": 20000,
            "minimum": 0
          },
          "interleave_buffer": {
            "description": "An interleave buffer will buffer packets for each track so\nthat the source can emit packets with the same timestamps at the\nsame time.",
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "max_buffer_size_ms": {
                "type": [
                  "integer",
                  "null"
                ],
                "format": "uint64",
                "minimum": 0
              }
            },
            "default": null,
            "additionalProperties": false
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "protocol_options": {
            "description": "Options that go into the underlying source input",
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "int"
                        },
                        "value": {
                          "type": "integer",
                          "format": "int64"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "u_int"
                        },
                        "value": {
                          "type": "integer",
                          "format": "uint64",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "double"
                        },
                        "value": {
                          "type": "number",
                          "format": "double"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "bool"
                        },
                        "value": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "ratio"
                        },
                        "value": {
                          "type": "array",
                          "items": [
                            {
                              "type": "integer",
                              "format": "int32"
                            },
                            {
                              "type": "integer",
                              "format": "int32"
                            }
                          ],
                          "maxItems": 2,
                          "minItems": 2
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "pixel"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "sample"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              ]
            },
            "default": {}
          },
          "realtime_pacing": {
            "description": "Apply realtime pacing - this is useful for\nfile inputs or other sources that can be\nread faster than realtime.",
            "type": "boolean",
            "default": false
          },
          "reconnect_delay_ms": {
            "description": "The delay to apply between each reconnect attempt",
            "type": "integer",
            "format": "uint64",
            "default": 1000,
            "minimum": 0
          },
          "source_type": {
            "description": "The name of the source kind",
            "type": "string"
          },
          "target_state": {
            "description": "The initial target state",
            "type": "string",
            "default": "started",
            "enum": [
              "started",
              "stopped",
              "destroyed"
            ]
          },
          "track_selectors": {
            "description": "A list of selectors that indicate which tracks the task wants.\nEmpty indicates that all tracks should be matched",
            "type": "array",
            "default": [],
            "items": {
              "description": "A track selector allow filtering tracks based on id, index, track type, codec(?)",
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "decoration": {
                      "description": "decorate the track with additional values",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "bit_rate": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int64"
                        },
                        "id": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int32"
                        },
                        "language": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "default": {}
                        }
                      },
                      "default": null,
                      "additionalProperties": false
                    },
                    "id": {
                      "description": "the track id to match against",
                      "type": "integer",
                      "format": "int32"
                    },
                    "is_required": {
                      "description": "true if the task should not start without a matching track",
                      "type": "boolean",
                      "default": false
                    },
                    "type": {
                      "type": "string",
                      "const": "track-id"
                    }
                  },
                  "required": [
                    "type",
                    "id"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "codec": {
                      "description": "match against a specific codec or any codec",
                      "type": "string"
                    },
                    "criteria": {
                      "description": "wether to add all matching or only the \"best\"",
                      "type": "string",
                      "default": "best",
                      "enum": [
                        "all",
                        "best"
                      ]
                    },
                    "decoration": {
                      "description": "decorate the track with additional values",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "bit_rate": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int64"
                        },
                        "id": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "int32"
                        },
                        "language": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "default": {}
                        }
                      },
                      "default": null,
                      "additionalProperties": false
                    },
                    "is_required": {
                      "description": "true if the task should not start without a matching track",
                      "type": "boolean",
                      "default": false
                    },
                    "kind": {
                      "description": "the track kind to match",
                      "type": "string",
                      "enum": [
                        "unknown",
                        "video",
                        "audio",
                        "data",
                        "subtitle",
                        "attachment"
                      ]
                    },
                    "language": {
                      "description": "matches a track language",
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "type": {
                      "type": "string",
                      "const": "track-kind"
                    }
                  },
                  "required": [
                    "type",
                    "kind"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          }
        },
        "required": [
          "id",
          "source_type"
        ],
        "additionalProperties": false
      }
    },
    "transcoders": {
      "type": "array",
      "default": [],
      "items": {
        "type": "object",
        "properties": {
          "annotations": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "default": {}
          },
          "description": {
            "description": "A description of the task",
            "type": "string",
            "default": ""
          },
          "device": {
            "description": "Override the hw device that will be used to accelerate transcoding",
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "cpu",
              "nvidia",
              "netint_quadra",
              "netint_t4xx",
              "qsv",
              "vaapi",
              null
            ]
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "default": null
          },
          "queue_size": {
            "description": "The default queue size to allow into the transcoder before dropping packets",
            "type": "integer",
            "format": "uint",
            "default": 10000,
            "minimum": 0
          },
          "source_ids": {
            "description": "The source ids to receive messages from",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "target_state": {
            "description": "The initial target state",
            "type": "string",
            "default": "started",
            "enum": [
              "started",
              "stopped",
              "destroyed"
            ]
          },
          "tracks": {
            "description": "A list of selectors that indicate which tracks the task wants.\nEmpty indicates that all tracks should be matched",
            "type": "array",
            "default": [],
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "decoder": {
                      "description": "Override default decoder config options",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "extract_codec_frame_rate": {
                          "type": "boolean",
                          "default": false
                        },
                        "hw_frames_enabled": {
                          "description": "Controls if the decoder should attempt to output hw frames",
                          "type": "boolean",
                          "default": true
                        },
                        "max_error_tolerance": {
                          "type": "integer",
                          "format": "uint",
                          "default": 10,
                          "minimum": 0
                        },
                        "name": {
                          "description": "Set a specific decoder to be used by name",
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "options": {
                          "description": "Additional options to provide to the decoder",
                          "type": "object",
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "format": "int64"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "format": "uint64",
                                        "minimum": 0
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number",
                                        "format": "double"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "items": [
                                          {
                                            "type": "integer",
                                            "format": "int32"
                                          },
                                          {
                                            "type": "integer",
                                            "format": "int32"
                                          }
                                        ],
                                        "maxItems": 2,
                                        "minItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            ]
                          },
                          "default": {}
                        },
                        "thread": {
                          "description": "Controls thread configuration",
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "count": {
                              "type": "integer",
                              "format": "uint32",
                              "default": 0,
                              "minimum": 0
                            },
                            "kind": {
                              "type": "string",
                              "default": "slice",
                              "enum": [
                                "slice",
                                "frame"
                              ]
                            }
                          },
                          "default": null,
                          "additionalProperties": false
                        }
                      },
                      "default": null,
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "passthrough": {
                      "description": "Enables or disables passthrough of the source track",
                      "type": "boolean",
                      "default": false
                    },
                    "processing": {
                      "description": "Override default processing options",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "deinterlace": {
                          "type": "string",
                          "default": "every_field",
                          "enum": [
                            "disabled",
                            "every_frame",
                            "every_field"
                          ]
                        },
                        "filter_threads": {
                          "description": "Slice threads for software (CPU) scaling; hardware scaling always uses 1. Kept small by\ndefault to avoid thread oversubscription when many packagers share a host.",
                          "type": [
                            "integer",
                            "null"
                          ],
                          "format": "uint",
                          "default": null,
                          "minimum": 1
                        },
                        "gop_alignment": {
                          "description": "Describes how the transcoded renditions GOPs will be",
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "match_incoming"
                                  ]
                                },
                                {
                                  "description": "An IDR on every `gop_size_ms` boundary of the frame timestamps rather than on a frame\ncount, so renditions, restarts and packagers fed the same timeline agree.",
                                  "type": "object",
                                  "properties": {
                                    "aligned": {
                                      "type": "object",
                                      "properties": {
                                        "gop_size_ms": {
                                          "type": "integer",
                                          "format": "uint",
                                          "minimum": 0
                                        }
                                      },
                                      "required": [
                                        "gop_size_ms"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "additionalProperties": false,
                                  "required": [
                                    "aligned"
                                  ]
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "default": null
                        },
                        "hw_filtering_enabled": {
                          "description": "Controls if the pipeline should attempt to use a hw scaler",
                          "type": "boolean",
                          "default": true
                        },
                        "max_frame_rate": {
                          "description": "The maximum frame rate that will be produced for each transcoded rendition",
                          "type": [
                            "array",
                            "null"
                          ],
                          "default": null,
                          "items": [
                            {
                              "type": "integer",
                              "format": "int32"
                            },
                            {
                              "type": "integer",
                              "format": "int32"
                            }
                          ],
                          "maxItems": 2,
                          "minItems": 2
                        }
                      },
                      "default": null,
                      "additionalProperties": false
                    },
                    "renditions": {
                      "description": "The renditions that will be generated based on the source track(s)",
                      "type": "array",
                      "default": [],
                      "items": {
                        "type": "object",
                        "properties": {
                          "bit_rate": {
                            "description": "Bit rate for the video",
                            "type": [
                              "integer",
                              "null"
                            ],
                            "format": "uint64",
                            "default": null,
                            "minimum": 0
                          },
                          "codec": {
                            "type": "string"
                          },
                          "encoder_name": {
                            "description": "Name a specific encoder implementation to use",
                            "type": [
                              "string",
                              "null"
                            ],
                            "default": null
                          },
                          "format": {
                            "type": "string",
                            "enum": [
                              "yuv420p",
                              "yuyv422",
                              "rgb24",
                              "bgr24",
                              "yuv422p",
                              "yuv444p",
                              "yuv410p",
                              "yuv411p",
                              "gray",
                              "monow",
                              "monob",
                              "pal8",
                              "yuvj420p",
                              "yuvj422p",
                              "yuvj444p",
                              "uyvy422",
                              "uyyvyy411",
                              "bgr8",
                              "bgr4",
                              "bgr4_byte",
                              "rgb8",
                              "rgb4",
                              "rgb4_byte",
                              "nv12",
                              "nv21",
                              "argb",
                              "rgba",
                              "abgr",
                              "bgra",
                              "gray16be",
                              "gray16le",
                              "yuv440p",
                              "yuvj440p",
                              "yuva420p",
                              "rgb48be",
                              "rgb48le",
                              "rgb565be",
                              "rgb565le",
                              "rgb555be",
                              "rgb555le",
                              "bgr565be",
                              "bgr565le",
                              "bgr555be",
                              "bgr555le",
                              "vaapi",
                              "yuv420p16le",
                              "yuv420p16be",
                              "yuv422p16le",
                              "yuv422p16be",
                              "yuv444p16le",
                              "yuv444p16be",
                              "dxva2_vld",
                              "rgb444le",
                              "rgb444be",
                              "bgr444le",
                              "bgr444be",
                              "ya8",
                              "bgr48be",
                              "bgr48le",
                              "yuv420p9be",
                              "yuv420p9le",
                              "yuv420p10be",
                              "yuv420p10le",
                              "yuv422p10be",
                              "yuv422p10le",
                              "yuv444p9be",
                              "yuv444p9le",
                              "yuv444p10be",
                              "yuv444p10le",
                              "yuv422p9be",
                              "yuv422p9le",
                              "gbrp",
                              "gbrp9be",
                              "gbrp9le",
                              "gbrp10be",
                              "gbrp10le",
                              "gbrp16be",
                              "gbrp16le",
                              "yuva422p",
                              "yuva444p",
                              "yuva420p9be",
                              "yuva420p9le",
                              "yuva422p9be",
                              "yuva422p9le",
                              "yuva444p9be",
                              "yuva444p9le",
                              "yuva420p10be",
                              "yuva420p10le",
                              "yuva422p10be",
                              "yuva422p10le",
                              "yuva444p10be",
                              "yuva444p10le",
                              "yuva420p16be",
                              "yuva420p16le",
                              "yuva422p16be",
                              "yuva422p16le",
                              "yuva444p16be",
                              "yuva444p16le",
                              "vdpau",
                              "xyz12le",
                              "xyz12be",
                              "nv16",
                              "nv20le",
                              "nv20be",
                              "rgba64be",
                              "rgba64le",
                              "bgra64be",
                              "bgra64le",
                              "yvyu422",
                              "ya16be",
                              "ya16le",
                              "gbrap",
                              "gbrap16be",
                              "gbrap16le",
                              "qsv",
                              "mmal",
                              "d3d11va_vld",
                              "cuda",
                              "0rgb",
                              "rgb0",
                              "0bgr",
                              "bgr0",
                              "yuv420p12be",
                              "yuv420p12le",
                              "yuv420p14be",
                              "yuv420p14le",
                              "yuv422p12be",
                              "yuv422p12le",
                              "yuv422p14be",
                              "yuv422p14le",
                              "yuv444p12be",
                              "yuv444p12le",
                              "yuv444p14be",
                              "yuv444p14le",
                              "gbrp12be",
                              "gbrp12le",
                              "gbrp14be",
                              "gbrp14le",
                              "yuvj411p",
                              "bayer_bggr8",
                              "bayer_rggb8",
                              "bayer_gbrg8",
                              "bayer_grbg8",
                              "bayer_bggr16le",
                              "bayer_bggr16be",
                              "bayer_rggb16le",
                              "bayer_rggb16be",
                              "bayer_gbrg16le",
                              "bayer_gbrg16be",
                              "bayer_grbg16le",
                              "bayer_grbg16be",
                              "xvmc",
                              "yuv440p10le",
                              "yuv440p10be",
                              "yuv440p12le",
                              "yuv440p12be",
                              "ayuv64le",
                              "ayuv64be",
                              "videotoolbox_vld",
                              "p010le",
                              "p010be",
                              "gbrap12be",
                              "gbrap12le",
                              "gbrap10be",
                              "gbrap10le",
                              "mediacodec",
                              "gray12be",
                              "gray12le",
                              "gray10be",
                              "gray10le",
                              "p016le",
                              "p016be",
                              "d3d11",
                              "gray9be",
                              "gray9le",
                              "gbrpf32be",
                              "gbrpf32le",
                              "gbrapf32be",
                              "gbrapf32le",
                              "drm_prime",
                              "opencl",
                              "gray14be",
                              "gray14le",
                              "grayf32be",
                              "grayf32le",
                              "yuva422p12be",
                              "yuva422p12le",
                              "yuva444p12be",
                              "yuva444p12le",
                              "nv24",
                              "nv42",
                              "vulkan",
                              "y210be",
                              "y210le",
                              "x2rgb10le",
                              "x2rgb10be",
                              "x2bgr10le",
                              "x2bgr10be",
                              "p210be",
                              "p210le",
                              "p410be",
                              "p410le",
                              "p216be",
                              "p216le",
                              "p416be",
                              "p416le",
                              "vuya",
                              "rgbaf16be",
                              "rgbaf16le",
                              "vuyx",
                              "p012le",
                              "p012be",
                              "y212be",
                              "y212le",
                              "xv30be",
                              "xv30le",
                              "xv36be",
                              "xv36le",
                              "rgbf32be",
                              "rgbf32le",
                              "rgbaf32be",
                              "rgbaf32le",
                              "p212be",
                              "p212le",
                              "p412be",
                              "p412le",
                              "gbrap14be",
                              "gbrap14le"
                            ]
                          },
                          "frame_skipping": {
                            "type": "string",
                            "default": "none",
                            "enum": [
                              "none",
                              "half",
                              "quarter",
                              "frame_every_1_seconds",
                              "frame_every_5_seconds"
                            ]
                          },
                          "gop_size_ms": {
                            "description": "Gop size expressed in milliseconds",
                            "type": "integer",
                            "format": "uint",
                            "default": 2000,
                            "minimum": 0
                          },
                          "id": {
                            "type": "string"
                          },
                          "max_b_frames": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "format": "uint32",
                            "default": null,
                            "minimum": 0
                          },
                          "max_bit_rate": {
                            "description": "The maximum bit rate to be allowed",
                            "default": {
                              "unit": "fraction",
                              "value": 0.10000000149011612
                            },
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "const": "fraction"
                                  },
                                  "value": {
                                    "type": "number",
                                    "format": "float"
                                  }
                                },
                                "required": [
                                  "unit",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "const": "absolute"
                                  },
                                  "value": {
                                    "type": "integer",
                                    "format": "uint64",
                                    "minimum": 0
                                  }
                                },
                                "required": [
                                  "unit",
                                  "value"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "min_bit_rate": {
                            "description": "The minimum bit rate to be allowed",
                            "default": {
                              "unit": "fraction",
                              "value": 0.10000000149011612
                            },
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "const": "fraction"
                                  },
                                  "value": {
                                    "type": "number",
                                    "format": "float"
                                  }
                                },
                                "required": [
                                  "unit",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "const": "absolute"
                                  },
                                  "value": {
                                    "type": "integer",
                                    "format": "uint64",
                                    "minimum": 0
                                  }
                                },
                                "required": [
                                  "unit",
                                  "value"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "default": null
                          },
                          "options": {
                            "description": "Encoder implementation specific options",
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "format": "int64"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "u_int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "format": "uint64",
                                              "minimum": 0
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "double"
                                            },
                                            "value": {
                                              "type": "number",
                                              "format": "double"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "bool"
                                            },
                                            "value": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "ratio"
                                            },
                                            "value": {
                                              "type": "array",
                                              "items": [
                                                {
                                                  "type": "integer",
                                                  "format": "int32"
                                                },
                                                {
                                                  "type": "integer",
                                                  "format": "int32"
                                                }
                                              ],
                                              "maxItems": 2,
                                              "minItems": 2
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "pixel"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "sample"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    }
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "string"
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "int"
                                              },
                                              "value": {
                                                "type": "integer",
                                                "format": "int64"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "u_int"
                                              },
                                              "value": {
                                                "type": "integer",
                                                "format": "uint64",
                                                "minimum": 0
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "double"
                                              },
                                              "value": {
                                                "type": "number",
                                                "format": "double"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "bool"
                                              },
                                              "value": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "ratio"
                                              },
                                              "value": {
                                                "type": "array",
                                                "items": [
                                                  {
                                                    "type": "integer",
                                                    "format": "int32"
                                                  },
                                                  {
                                                    "type": "integer",
                                                    "format": "int32"
                                                  }
                                                ],
                                                "maxItems": 2,
                                                "minItems": 2
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "pixel"
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "sample"
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                }
                              }
                            ],
                            "default": {}
                          },
                          "qmax": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "format": "uint32",
                            "default": null,
                            "minimum": 0
                          },
                          "qmin": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "format": "uint32",
                            "default": null,
                            "minimum": 0
                          },
                          "rc_buffer_size": {
                            "description": "The rate control buffer size",
                            "default": {
                              "unit": "milliseconds",
                              "value": 1000
                            },
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "const": "milliseconds"
                                  },
                                  "value": {
                                    "type": "integer",
                                    "format": "uint64",
                                    "minimum": 0
                                  }
                                },
                                "required": [
                                  "unit",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "unit": {
                                    "type": "string",
                                    "const": "bits"
                                  },
                                  "value": {
                                    "type": "integer",
                                    "format": "uint64",
                                    "minimum": 0
                                  }
                                },
                                "required": [
                                  "unit",
                                  "value"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "size": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "height": {
                                    "type": "integer",
                                    "format": "uint32",
                                    "minimum": 0
                                  },
                                  "width": {
                                    "type": "integer",
                                    "format": "uint32",
                                    "minimum": 0
                                  }
                                },
                                "required": [
                                  "width",
                                  "height"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "width": {
                                    "type": "integer",
                                    "format": "uint32",
                                    "minimum": 0
                                  }
                                },
                                "required": [
                                  "width"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "scale_factor": {
                                    "type": "number",
                                    "format": "float"
                                  }
                                },
                                "required": [
                                  "scale_factor"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "additionalProperties": false
                              }
                            ],
                            "default": {}
                          },
                          "thread": {
                            "type": [
                              "object",
                              "null"
                            ],
                            "properties": {
                              "count": {
                                "type": "integer",
                                "format": "uint32",
                                "default": 0,
                                "minimum": 0
                              },
                              "kind": {
                                "type": "string",
                                "default": "slice",
                                "enum": [
                                  "slice",
                                  "frame"
                                ]
                              }
                            },
                            "default": null,
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "codec"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "track_selector": {
                      "description": "A track selector allow filtering tracks based on id, index, track type, codec(?)",
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "id": {
                              "description": "the track id to match against",
                              "type": "integer",
                              "format": "int32"
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "type": {
                              "type": "string",
                              "const": "track-id"
                            }
                          },
                          "required": [
                            "type",
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "codec": {
                              "description": "match against a specific codec or any codec",
                              "type": "string"
                            },
                            "criteria": {
                              "description": "wether to add all matching or only the \"best\"",
                              "type": "string",
                              "default": "best",
                              "enum": [
                                "all",
                                "best"
                              ]
                            },
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "kind": {
                              "description": "the track kind to match",
                              "type": "string",
                              "enum": [
                                "unknown",
                                "video",
                                "audio",
                                "data",
                                "subtitle",
                                "attachment"
                              ]
                            },
                            "language": {
                              "description": "matches a track language",
                              "type": [
                                "string",
                                "null"
                              ],
                              "default": null
                            },
                            "type": {
                              "type": "string",
                              "const": "track-kind"
                            }
                          },
                          "required": [
                            "type",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "type": {
                      "type": "string",
                      "const": "video"
                    }
                  },
                  "required": [
                    "type",
                    "id",
                    "track_selector"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "decoder": {
                      "description": "Override default decoder config options",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "extract_codec_frame_rate": {
                          "type": "boolean",
                          "default": false
                        },
                        "hw_frames_enabled": {
                          "description": "Controls if the decoder should attempt to output hw frames",
                          "type": "boolean",
                          "default": true
                        },
                        "max_error_tolerance": {
                          "type": "integer",
                          "format": "uint",
                          "default": 10,
                          "minimum": 0
                        },
                        "name": {
                          "description": "Set a specific decoder to be used by name",
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "options": {
                          "description": "Additional options to provide to the decoder",
                          "type": "object",
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "format": "int64"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "format": "uint64",
                                        "minimum": 0
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number",
                                        "format": "double"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "items": [
                                          {
                                            "type": "integer",
                                            "format": "int32"
                                          },
                                          {
                                            "type": "integer",
                                            "format": "int32"
                                          }
                                        ],
                                        "maxItems": 2,
                                        "minItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            ]
                          },
                          "default": {}
                        },
                        "thread": {
                          "description": "Controls thread configuration",
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "count": {
                              "type": "integer",
                              "format": "uint32",
                              "default": 0,
                              "minimum": 0
                            },
                            "kind": {
                              "type": "string",
                              "default": "slice",
                              "enum": [
                                "slice",
                                "frame"
                              ]
                            }
                          },
                          "default": null,
                          "additionalProperties": false
                        }
                      },
                      "default": null,
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "passthrough": {
                      "description": "Enables or disables passthrough of the source track",
                      "type": "boolean",
                      "default": false
                    },
                    "processing": {
                      "description": "Override default processing options",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "filters": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        }
                      },
                      "default": null,
                      "additionalProperties": false
                    },
                    "renditions": {
                      "description": "The renditions that will be generated based on the source track(s)",
                      "type": "array",
                      "default": [],
                      "items": {
                        "type": "object",
                        "properties": {
                          "bit_rate": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "format": "uint64",
                            "default": null,
                            "minimum": 0
                          },
                          "channels": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "format": "uint32",
                            "default": null,
                            "minimum": 0
                          },
                          "codec": {
                            "type": "string"
                          },
                          "encoder_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "default": null
                          },
                          "format": {
                            "type": "string"
                          },
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "default": null
                          },
                          "options": {
                            "description": "Encoder implementation specific options",
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "format": "int64"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "u_int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "format": "uint64",
                                              "minimum": 0
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "double"
                                            },
                                            "value": {
                                              "type": "number",
                                              "format": "double"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "bool"
                                            },
                                            "value": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "ratio"
                                            },
                                            "value": {
                                              "type": "array",
                                              "items": [
                                                {
                                                  "type": "integer",
                                                  "format": "int32"
                                                },
                                                {
                                                  "type": "integer",
                                                  "format": "int32"
                                                }
                                              ],
                                              "maxItems": 2,
                                              "minItems": 2
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "pixel"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "sample"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    }
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "string"
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "int"
                                              },
                                              "value": {
                                                "type": "integer",
                                                "format": "int64"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "u_int"
                                              },
                                              "value": {
                                                "type": "integer",
                                                "format": "uint64",
                                                "minimum": 0
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "double"
                                              },
                                              "value": {
                                                "type": "number",
                                                "format": "double"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "bool"
                                              },
                                              "value": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "ratio"
                                              },
                                              "value": {
                                                "type": "array",
                                                "items": [
                                                  {
                                                    "type": "integer",
                                                    "format": "int32"
                                                  },
                                                  {
                                                    "type": "integer",
                                                    "format": "int32"
                                                  }
                                                ],
                                                "maxItems": 2,
                                                "minItems": 2
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "pixel"
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "sample"
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                }
                              }
                            ],
                            "default": {}
                          },
                          "sample_rate": {
                            "type": [
                              "integer",
                              "null"
                            ],
                            "format": "uint32",
                            "default": null,
                            "minimum": 0
                          }
                        },
                        "required": [
                          "id",
                          "codec"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "track_selector": {
                      "description": "A track selector allow filtering tracks based on id, index, track type, codec(?)",
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "id": {
                              "description": "the track id to match against",
                              "type": "integer",
                              "format": "int32"
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "type": {
                              "type": "string",
                              "const": "track-id"
                            }
                          },
                          "required": [
                            "type",
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "codec": {
                              "description": "match against a specific codec or any codec",
                              "type": "string"
                            },
                            "criteria": {
                              "description": "wether to add all matching or only the \"best\"",
                              "type": "string",
                              "default": "best",
                              "enum": [
                                "all",
                                "best"
                              ]
                            },
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "kind": {
                              "description": "the track kind to match",
                              "type": "string",
                              "enum": [
                                "unknown",
                                "video",
                                "audio",
                                "data",
                                "subtitle",
                                "attachment"
                              ]
                            },
                            "language": {
                              "description": "matches a track language",
                              "type": [
                                "string",
                                "null"
                              ],
                              "default": null
                            },
                            "type": {
                              "type": "string",
                              "const": "track-kind"
                            }
                          },
                          "required": [
                            "type",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "type": {
                      "type": "string",
                      "const": "audio"
                    }
                  },
                  "required": [
                    "type",
                    "id",
                    "track_selector"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "decoder": {
                      "description": "Override default decoder config options",
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "extract_codec_frame_rate": {
                          "type": "boolean",
                          "default": false
                        },
                        "hw_frames_enabled": {
                          "description": "Controls if the decoder should attempt to output hw frames",
                          "type": "boolean",
                          "default": true
                        },
                        "max_error_tolerance": {
                          "type": "integer",
                          "format": "uint",
                          "default": 10,
                          "minimum": 0
                        },
                        "name": {
                          "description": "Set a specific decoder to be used by name",
                          "type": [
                            "string",
                            "null"
                          ],
                          "default": null
                        },
                        "options": {
                          "description": "Additional options to provide to the decoder",
                          "type": "object",
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "string"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "format": "int64"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "u_int"
                                      },
                                      "value": {
                                        "type": "integer",
                                        "format": "uint64",
                                        "minimum": 0
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "double"
                                      },
                                      "value": {
                                        "type": "number",
                                        "format": "double"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "bool"
                                      },
                                      "value": {
                                        "type": "boolean"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "ratio"
                                      },
                                      "value": {
                                        "type": "array",
                                        "items": [
                                          {
                                            "type": "integer",
                                            "format": "int32"
                                          },
                                          {
                                            "type": "integer",
                                            "format": "int32"
                                          }
                                        ],
                                        "maxItems": 2,
                                        "minItems": 2
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "pixel"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "const": "sample"
                                      },
                                      "value": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            ]
                          },
                          "default": {}
                        },
                        "thread": {
                          "description": "Controls thread configuration",
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "count": {
                              "type": "integer",
                              "format": "uint32",
                              "default": 0,
                              "minimum": 0
                            },
                            "kind": {
                              "type": "string",
                              "default": "slice",
                              "enum": [
                                "slice",
                                "frame"
                              ]
                            }
                          },
                          "default": null,
                          "additionalProperties": false
                        }
                      },
                      "default": null,
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "passthrough": {
                      "description": "Enables or disables passthrough of the source track",
                      "type": "boolean",
                      "default": false
                    },
                    "processing": {
                      "description": "Override default processing options",
                      "type": [
                        "object",
                        "null"
                      ],
                      "default": null,
                      "additionalProperties": false
                    },
                    "renditions": {
                      "description": "The renditions that will be generated based on the source track(s)",
                      "type": "array",
                      "default": [],
                      "items": {
                        "type": "object",
                        "properties": {
                          "codec": {
                            "type": "string"
                          },
                          "encoder_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "default": null
                          },
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "default": null
                          },
                          "options": {
                            "description": "Encoder implementation specific options",
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "string"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "format": "int64"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "u_int"
                                            },
                                            "value": {
                                              "type": "integer",
                                              "format": "uint64",
                                              "minimum": 0
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "double"
                                            },
                                            "value": {
                                              "type": "number",
                                              "format": "double"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "bool"
                                            },
                                            "value": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "ratio"
                                            },
                                            "value": {
                                              "type": "array",
                                              "items": [
                                                {
                                                  "type": "integer",
                                                  "format": "int32"
                                                },
                                                {
                                                  "type": "integer",
                                                  "format": "int32"
                                                }
                                              ],
                                              "maxItems": 2,
                                              "minItems": 2
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "pixel"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "object",
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "const": "sample"
                                            },
                                            "value": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "type",
                                            "value"
                                          ],
                                          "additionalProperties": false
                                        }
                                      ]
                                    }
                                  ]
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "string"
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "int"
                                              },
                                              "value": {
                                                "type": "integer",
                                                "format": "int64"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "u_int"
                                              },
                                              "value": {
                                                "type": "integer",
                                                "format": "uint64",
                                                "minimum": 0
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "double"
                                              },
                                              "value": {
                                                "type": "number",
                                                "format": "double"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "bool"
                                              },
                                              "value": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "ratio"
                                              },
                                              "value": {
                                                "type": "array",
                                                "items": [
                                                  {
                                                    "type": "integer",
                                                    "format": "int32"
                                                  },
                                                  {
                                                    "type": "integer",
                                                    "format": "int32"
                                                  }
                                                ],
                                                "maxItems": 2,
                                                "minItems": 2
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "pixel"
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "type": {
                                                "type": "string",
                                                "const": "sample"
                                              },
                                              "value": {
                                                "type": "string"
                                              }
                                            },
                                            "required": [
                                              "type",
                                              "value"
                                            ],
                                            "additionalProperties": false
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                }
                              }
                            ],
                            "default": {}
                          }
                        },
                        "required": [
                          "id",
                          "codec"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "timestamp_source_track_id": {
                      "description": "The track to take timestamps from instead of using the source timestamp",
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "track_selector": {
                      "description": "A track selector allow filtering tracks based on id, index, track type, codec(?)",
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "id": {
                              "description": "the track id to match against",
                              "type": "integer",
                              "format": "int32"
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "type": {
                              "type": "string",
                              "const": "track-id"
                            }
                          },
                          "required": [
                            "type",
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "codec": {
                              "description": "match against a specific codec or any codec",
                              "type": "string"
                            },
                            "criteria": {
                              "description": "wether to add all matching or only the \"best\"",
                              "type": "string",
                              "default": "best",
                              "enum": [
                                "all",
                                "best"
                              ]
                            },
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "kind": {
                              "description": "the track kind to match",
                              "type": "string",
                              "enum": [
                                "unknown",
                                "video",
                                "audio",
                                "data",
                                "subtitle",
                                "attachment"
                              ]
                            },
                            "language": {
                              "description": "matches a track language",
                              "type": [
                                "string",
                                "null"
                              ],
                              "default": null
                            },
                            "type": {
                              "type": "string",
                              "const": "track-kind"
                            }
                          },
                          "required": [
                            "type",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "type": {
                      "type": "string",
                      "const": "subtitle"
                    }
                  },
                  "required": [
                    "type",
                    "id",
                    "track_selector"
                  ],
                  "additionalProperties": false
                },
                {
                  "description": "A data track: SCTE-35, SMPTE ST 2038 VANC, KLV, or any other MPEG-TS data PID.\n\nData tracks are passthrough-only. There is no such thing as transcoding a data\nPID into a rendition, so unlike the other track kinds this carries no decoder,\nprocessing or rendition configuration.",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "default": null
                    },
                    "track_selector": {
                      "description": "A track selector allow filtering tracks based on id, index, track type, codec(?)",
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "id": {
                              "description": "the track id to match against",
                              "type": "integer",
                              "format": "int32"
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "type": {
                              "type": "string",
                              "const": "track-id"
                            }
                          },
                          "required": [
                            "type",
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "codec": {
                              "description": "match against a specific codec or any codec",
                              "type": "string"
                            },
                            "criteria": {
                              "description": "wether to add all matching or only the \"best\"",
                              "type": "string",
                              "default": "best",
                              "enum": [
                                "all",
                                "best"
                              ]
                            },
                            "decoration": {
                              "description": "decorate the track with additional values",
                              "type": [
                                "object",
                                "null"
                              ],
                              "properties": {
                                "bit_rate": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int64"
                                },
                                "id": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "format": "int32"
                                },
                                "language": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "metadata": {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "string"
                                  },
                                  "default": {}
                                }
                              },
                              "default": null,
                              "additionalProperties": false
                            },
                            "is_required": {
                              "description": "true if the task should not start without a matching track",
                              "type": "boolean",
                              "default": false
                            },
                            "kind": {
                              "description": "the track kind to match",
                              "type": "string",
                              "enum": [
                                "unknown",
                                "video",
                                "audio",
                                "data",
                                "subtitle",
                                "attachment"
                              ]
                            },
                            "language": {
                              "description": "matches a track language",
                              "type": [
                                "string",
                                "null"
                              ],
                              "default": null
                            },
                            "type": {
                              "type": "string",
                              "const": "track-kind"
                            }
                          },
                          "required": [
                            "type",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "type": {
                      "type": "string",
                      "const": "data"
                    }
                  },
                  "required": [
                    "type",
                    "id",
                    "track_selector"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          }
        },
        "required": [
          "id",
          "source_ids"
        ],
        "additionalProperties": false
      }
    },
    "version": {
      "type": "string",
      "const": "3"
    }
  },
  "required": [
    "version"
  ],
  "title": "Vindral Packager v3 documentation configuration",
  "description": "V3 example/editor schema. Unknown object fields are rejected to catch typos. Plugin option names, device availability and runtime behavior require the target build.",
  "additionalProperties": false
}
