123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "type": "object",
- "properties": {
- "format_version": {
- "type": "integer",
- "description": "Identifier for parsing this file.\n- v5 introduced the notion of protocol and Enhanced RTMP \n- v4 introduced 'ffmpeg_mpegts_muxer' to services/recommended/output\n - v3 introduced 'ffmpeg_hls_muxer' to services/recommended/output\n - v2 introduced 'alt_names' to services"
- },
- "services": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "Name of the streaming service. Will be displayed in the Service dropdown.",
- "minLength": 1
- },
- "protocol": {
- "type": "string",
- "description": "Protocol used by the service. If missing the service is considered using RTMP or RTMPS.",
- "enum": [
- "RTMP",
- "RTMPS",
- "HLS",
- "SRT",
- "RIST",
- "WHIP"
- ]
- },
- "common": {
- "type": "boolean",
- "description": "Whether or not the service is shown in the list before it is expanded to all services by the user.",
- "default": false
- },
- "stream_key_link": {
- "$ref": "#/definitions/saneUrl",
- "description": "Link where a logged-in user can find the 'stream key', presented as a button alongside the stream key field."
- },
- "supported video codecs": {
- "type": "array",
- "description": "Video codecs that are supported by the service.",
- "items": {
- "type": "string",
- "description": "Short-form codec names.",
- "minLength": 1,
- "enum": [
- "h264",
- "hevc",
- "av1"
- ]
- }
- },
- "supported audio codecs": {
- "type": "array",
- "description": "Audio codecs that are supported by the service.",
- "items": {
- "type": "string",
- "description": "Short-form codec names.",
- "minLength": 1,
- "enum": [
- "aac",
- "opus"
- ]
- }
- },
- "servers": {
- "type": "array",
- "description": "List of servers.",
- "items": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "Name of the server (e.g. location, primary/backup), displayed in the Server dropdown.",
- "minLength": 1
- },
- "url": {
- "$ref": "#/definitions/serviceUri",
- "description": "RTMP(S) or HLS URL of the ingest server.",
- "minLength": 1
- }
- },
- "additionalProperties": false,
- "required": [
- "name",
- "url"
- ]
- },
- "default": [
- {
- "name": "",
- "url": ""
- }
- ],
- "minItems": 1,
- "additionalItems": true
- },
- "recommended": {
- "type": "object",
- "description": "Recommended service settings. Users will be unable to choose values outside of these by default, so choose recommended values carefully.",
- "properties": {
- "keyint": {
- "type": "integer",
- "description": "Keyframe interval (seconds)."
- },
- "max video bitrate": {
- "type": "integer",
- "description": "Highest supported video bitrate (kbps)."
- },
- "max audio bitrate": {
- "type": "integer",
- "description": "Highest supported audio bitrate (kbps)."
- },
- "x264opts": {
- "type": "string",
- "description": "Additional x264 encoder options. Space-separated.",
- "pattern": "^(\\S+=\\S+\\s*)+$"
- },
- "output": {
- "type": "string",
- "description": "OBS output module used. Unused since OBS Studio 30, kept for backward compatibility.",
- "enum": [
- "rtmp_output",
- "ffmpeg_hls_muxer",
- "ffmpeg_mpegts_muxer"
- ]
- },
- "profile": {
- "type": "string",
- "description": "H.264 Profile.",
- "minLength": 1,
- "enum": [
- "high",
- "main",
- "baseline"
- ]
- },
- "bframes": {
- "type": "integer",
- "description": "Maximum allowed number of B-Frames."
- },
- "supported resolutions": {
- "type": "array",
- "description": "List of supported resolutions in format {width}x{height}",
- "items": {
- "$ref": "#/definitions/resolution"
- },
- "minItems": 1,
- "additionalItems": true
- },
- "max fps": {
- "type": "integer",
- "description": "Maximum supported framerate."
- },
- "bitrate matrix": {
- "type": "array",
- "description": "List of resolutions and frame rate combinations with their recommended maximum bitrate.",
- "items": {
- "type": "object",
- "properties": {
- "res": {
- "$ref": "#/definitions/resolution",
- "description": "Resolution in format {width}x{height}"
- },
- "fps": {
- "type": "integer",
- "description": "Frame rate"
- },
- "max bitrate": {
- "type": "integer",
- "description": "Maximum bitrate in kbps."
- }
- },
- "minItems": 1,
- "additionalProperties": false,
- "required": [
- "res",
- "fps",
- "max bitrate"
- ]
- },
- "default": [
- {
- "res": "",
- "fps": "",
- "max bitrate": ""
- }
- ],
- "additionalItems": true
- }
- },
- "additionalProperties": false
- },
- "more_info_link": {
- "$ref": "#/definitions/saneUrl",
- "description": "Link that provides additional info about the service, presented in the UI as a button next to the services dropdown."
- },
- "multitrack_video_configuration_url": {
- "$ref": "#/definitions/saneUrl",
- "description": "Accessed for multitrack video auto configuration"
- },
- "multitrack_video_name": {
- "type": "string",
- "description": "Marketing name for eRTMP multitrack video (e.g., Enhanced Broadcasting for Twitch)"
- },
- "multitrack_video_learn_more_link": {
- "$ref": "#/definitions/saneUrl",
- "description": "Link to additional information and privacy policy (for e.g., data sent to `multitrack_video_configuration_url`)"
- },
- "alt_names": {
- "type": "array",
- "description": "Previous names of the service used for migrating existing users to the updated entry.",
- "items": {
- "type": "string",
- "minLength": 1
- },
- "default": [
- ""
- ]
- }
- },
- "additionalProperties": false,
- "required": [
- "name",
- "servers"
- ],
- "allOf": [
- {
- "$comment": "Require protocol field if not an RTMP(S) URL",
- "if": { "not": { "properties": { "servers": { "items": { "properties": { "url": { "format": "uri", "pattern": "^rtmps?://" } } } } } } },
- "then": { "required": ["protocol"] }
- },
- {
- "$comment": "Require recommended output field if protocol field is not RTMP(S)",
- "if": { "required": ["protocol"], "properties": { "protocol": { "pattern": "^(HLS|SRT|RIST|WHIP)$" } } },
- "then": { "properties": { "recommended": { "required": ["output"] } } }
- }
- ]
- },
- "additionalItems": true
- }
- },
- "additionalProperties": true,
- "required": [
- "format_version",
- "services"
- ],
- "definitions": {
- "resolution": {
- "type": "string",
- "pattern": "^\\d+x\\d+$",
- "default": ""
- },
- "saneUrl": {
- "type": "string",
- "format": "uri",
- "pattern": "^https?://.+",
- "default": "https://"
- },
- "serviceUri": {
- "anyOf": [
- {
- "type": "string",
- "format": "uri",
- "pattern": "^(https|http|rtmps|rtmp|srt|rist)?://"
- },
- {
- "type": "string",
- "format": "hostname"
- }
- ]
- }
- }
- }
|