---
updatedAt: 2026-07-22T07:09:47.000Z
agentTools:
  siteIndex: https://developer.bitmovin.com/llms.txt
  projectIndex: https://developer.bitmovin.com/encoding/llms.txt
---

# Get Stream details

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Live Encoding API",
    "description": "Bitmovins API Reference Description",
    "version": "3.0",
    "termsOfService": "https://bitmovin.com",
    "contact": {
      "name": "Bitmovin Inc",
      "url": "https://bitmovin.com",
      "email": "support@bitmovin.com"
    }
  },
  "servers": [
    {
      "url": "https://api.bitmovin.com/v1",
      "description": "Bitmovin Server",
      "variables": {}
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    },
    {
      "ApiKeyAuth": [],
      "TenantOrgId": []
    }
  ],
  "paths": {
    "/encoding/encodings/{encoding_id}/streams/{stream_id}": {
      "get": {
        "tags": [
          "Stream"
        ],
        "summary": "Get Stream details",
        "operationId": "LiveGetEncodingEncodingsStreamsByEncodingIdAndStreamId",
        "x-bitmovin": {
          "product": "shared"
        },
        "parameters": [
          {
            "name": "encoding_id",
            "in": "path",
            "description": "Id of the encoding.",
            "style": "simple",
            "required": true,
            "schema": {
              "type": "string",
              "example": "f3177c2e-0000-4ba6-bd20-1dee353d8a72"
            }
          },
          {
            "name": "stream_id",
            "in": "path",
            "description": "Id of the stream.",
            "style": "simple",
            "required": true,
            "schema": {
              "type": "string",
              "example": "a6336204-c929-4a61-b7a0-2cd6665114e9"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ResponseEnvelope"
                    },
                    {
                      "properties": {
                        "data": {
                          "properties": {
                            "result": {
                              "allOf": [
                                {
                                  "$ref": "#/components/schemas/Stream"
                                },
                                {
                                  "description": "Stream"
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "default": {
            "description": "Error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "description": "Your Bitmovin API key",
        "name": "X-Api-Key",
        "in": "header"
      },
      "TenantOrgId": {
        "type": "apiKey",
        "description": "Your Bitmovin account organization",
        "name": "X-Tenant-Org-Id",
        "in": "header"
      }
    },
    "schemas": {
      "BitmovinResource": {
        "title": "BitmovinResource",
        "allOf": [
          {
            "$ref": "#/components/schemas/BitmovinResponse"
          },
          {
            "properties": {
              "name": {
                "type": "string",
                "description": "Name of the resource. Can be freely chosen by the user.",
                "example": "Name of the resource"
              },
              "description": {
                "type": "string",
                "description": "Description of the resource. Can be freely chosen by the user.",
                "example": "Description of the resource"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "description": "Creation timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ",
                "example": "2016-06-25T20:09:23.69Z"
              },
              "modifiedAt": {
                "type": "string",
                "format": "date-time",
                "readOnly": true,
                "description": "Modified timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ",
                "example": "2016-06-25T20:09:23.69Z"
              },
              "customData": {
                "type": "string",
                "writeOnly": true,
                "description": "User-specific meta data. This can hold anything.",
                "additionalProperties": {
                  "type": "object"
                }
              }
            }
          }
        ]
      },
      "BitmovinResponse": {
        "title": "BitmovinResponse",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "readOnly": true,
            "description": "Id of the resource",
            "example": "cb90b80c-8867-4e3b-8479-174aa2843f62"
          }
        }
      },
      "AbstractCondition": {
        "title": "AbstractCondition"
      },
      "AclEntry": {
        "title": "AclEntry",
        "required": [
          "permission"
        ],
        "properties": {
          "scope": {
            "description": "Deprecation notice: The value of this property is not being used. It can be chosen arbitrarily or not set at all",
            "deprecated": true,
            "type": "string",
            "example": "public"
          },
          "permission": {
            "description": "",
            "allOf": [
              {
                "$ref": "#/components/schemas/AclPermission"
              }
            ]
          }
        }
      },
      "AclPermission": {
        "title": "AclPermission",
        "type": "string",
        "enum": [
          "PUBLIC_READ",
          "PRIVATE"
        ]
      },
      "AppliedStreamSettings": {
        "title": "AppliedStreamSettings",
        "properties": {
          "width": {
            "type": "integer",
            "format": "int32",
            "description": "The applied width. Useful if the width in the configuration was undefined",
            "example": 1920
          },
          "height": {
            "type": "integer",
            "format": "int32",
            "description": "The applied height. Useful if the height in the configuration was undefined",
            "example": 1080
          }
        }
      },
      "AudioStream": {
        "title": "AudioStream",
        "allOf": [
          {
            "$ref": "#/components/schemas/MediaStream"
          },
          {
            "properties": {
              "codec": {
                "type": "string",
                "description": "Codec of the stream",
                "example": "aac"
              },
              "sampleRate": {
                "type": "integer",
                "format": "int32",
                "description": "Audio sampling rate in Hz",
                "example": 48000
              },
              "bitrate": {
                "type": "string",
                "description": "Bitrate in bps",
                "example": 256000
              },
              "rate": {
                "type": "integer",
                "format": "int64",
                "description": "Bitrate in bps",
                "example": 10000000
              },
              "channelFormat": {
                "type": "string",
                "description": "Audio channel format",
                "example": "5.1"
              },
              "language": {
                "type": "string",
                "description": "Language of the stream",
                "example": "nor"
              },
              "hearingImpaired": {
                "type": "boolean",
                "description": "Hearing impaired support",
                "example": false
              }
            }
          }
        ]
      },
      "BitrateSelectionMode": {
        "title": "BitrateSelectionMode",
        "type": "string",
        "enum": [
          "OPTIMIZED",
          "COMPLEXITY_RANGE"
        ],
        "x-enum-elements": [
          {
            "name": "OPTIMIZED",
            "description": "Bitrate will be selected to provide the best quality for the resulting encoding profile."
          },
          {
            "name": "COMPLEXITY_RANGE",
            "description": "Bitrate will be selected based on the complexity range given in the configuration (`lowComplexityBoundaryForMaxBitrate` and `highComplexityBoundaryForMaxBitrate`). Complexity is defined by the max bitrate selected for the resulting encoding profile."
          }
        ]
      },
      "DecodingErrorMode": {
        "title": "DecodingErrorMode",
        "type": "string",
        "default": "FAIL_ON_ERROR",
        "enum": [
          "FAIL_ON_ERROR",
          "DUPLICATE_FRAMES"
        ],
        "x-enum-elements": [
          {
            "name": "FAIL_ON_ERROR",
            "description": "Encoding will fail, if there are errors during decoding of this stream"
          },
          {
            "name": "DUPLICATE_FRAMES",
            "description": "If a frame is undecodable, other frames will be duplicated to compensate for the lost frame. The encoding will not fail, but there will be warnings about which frames could not be decoded."
          }
        ]
      },
      "EncodingMode": {
        "title": "EncodingMode",
        "type": "string",
        "default": "STANDARD",
        "enum": [
          "STANDARD",
          "SINGLE_PASS",
          "TWO_PASS",
          "THREE_PASS",
          "SMART_PASS"
        ],
        "x-enum-elements": [
          {
            "name": "STANDARD",
            "description": "The standard encoding mode is ONE_PASS for LIVE encodings and TWO_PASS for VOD encodings"
          },
          {
            "name": "SINGLE_PASS",
            "description": "Single pass encoding"
          },
          {
            "name": "TWO_PASS",
            "description": "Two pass encoding for better quality"
          },
          {
            "name": "THREE_PASS",
            "description": "Three pass encoding for best quality (this only works for VoD workflows)"
          },
          {
            "name": "SMART_PASS",
            "description": "Smart pass encoding"
          }
        ]
      },
      "EncodingOutput": {
        "title": "EncodingOutput",
        "required": [
          "outputId",
          "outputPath"
        ],
        "properties": {
          "outputId": {
            "type": "string",
            "description": "Id of the corresponding output",
            "example": "55354be6-0237-42bb-ae85-a2d4ef1ed19e"
          },
          "outputPath": {
            "type": "string",
            "description": "Subdirectory where to save the files to",
            "example": "/encodings/movies/movie-1/video_720/"
          },
          "acl": {
            "description": "Determines accessibility of files written to this output. Only applies to output types that support ACLs. Defaults to PUBLIC_READ if the list is empty. The destination (e.g. cloud storage bucket) needs to allow the configured ACL",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AclEntry"
            }
          }
        }
      },
      "IgnoredBy": {
        "title": "IgnoredBy",
        "type": "string",
        "enum": [
          "CONDITION"
        ]
      },
      "Ignoring": {
        "title": "Ignoring",
        "properties": {
          "ignoredBy": {
            "readOnly": true,
            "description": "",
            "allOf": [
              {
                "$ref": "#/components/schemas/IgnoredBy"
              }
            ]
          },
          "ignoredByDescription": {
            "type": "string",
            "readOnly": true,
            "description": "Describes why ignoredBy has been set to its current value.",
            "example": "Condition 'MyCondition' violated."
          }
        }
      },
      "Link": {
        "title": "Link",
        "required": [
          "href"
        ],
        "properties": {
          "href": {
            "type": "string",
            "description": "webpage target URL",
            "example": "https://bitmovin.com/encoding-documentation/bitmovin-api/#/reference/encoding/manifests/add-period"
          },
          "title": {
            "type": "string",
            "description": "Short description of the linked page",
            "example": "how to add a period to a manifest"
          }
        }
      },
      "Message": {
        "title": "Message",
        "required": [
          "type",
          "text"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/BitmovinResponse"
          },
          {
            "properties": {
              "type": {
                "description": "Message type giving a hint on the importance of the message (log level)",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/MessageType"
                  }
                ]
              },
              "text": {
                "type": "string",
                "description": "Message text",
                "example": "field must not be empty"
              },
              "field": {
                "type": "string",
                "description": "Name of the field to which the message is referring to",
                "example": "manifestId"
              },
              "links": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Link"
                },
                "description": "collection of links to webpages containing further information on the topic"
              },
              "more": {
                "type": "object",
                "description": "Service-specific information"
              },
              "date": {
                "type": "string",
                "format": "date-time",
                "description": "Timestamp when the message occurred",
                "example": "2016-06-25T20:09:23.69Z"
              }
            }
          }
        ]
      },
      "MessageType": {
        "title": "MessageType",
        "type": "string",
        "enum": [
          "ERROR",
          "WARNING",
          "INFO",
          "DEBUG",
          "TRACE"
        ]
      },
      "ResponseEnvelope": {
        "title": "ResponseEnvelope",
        "required": [
          "requestId",
          "status",
          "data"
        ],
        "properties": {
          "requestId": {
            "type": "string",
            "readOnly": true,
            "description": "Unique correlation id",
            "example": "6d84e126-d10c-4e52-bbfb-bd4c92bc8333"
          },
          "status": {
            "description": "Response status information",
            "readOnly": true,
            "example": "SUCCESS",
            "allOf": [
              {
                "$ref": "#/components/schemas/ResponseStatus"
              }
            ]
          },
          "data": {
            "description": "Response information",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ResultWrapper"
              }
            ]
          },
          "more": {
            "type": "object",
            "description": "Additional endpoint specific information"
          }
        }
      },
      "ResponseError": {
        "title": "ResponseError",
        "required": [
          "requestId",
          "status",
          "data"
        ],
        "properties": {
          "requestId": {
            "type": "string",
            "readOnly": true,
            "description": "Unique correlation id",
            "example": "6d84e126-d10c-4e52-bbfb-bd4c92bc8333"
          },
          "status": {
            "description": "Response status information",
            "readOnly": true,
            "example": "ERROR",
            "allOf": [
              {
                "$ref": "#/components/schemas/ResponseStatus"
              }
            ]
          },
          "data": {
            "description": "Response information",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ResponseErrorData"
              }
            ]
          }
        }
      },
      "ResponseErrorData": {
        "title": "ResponseErrorData",
        "required": [
          "code",
          "message",
          "developerMessage"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32",
            "readOnly": true,
            "description": "Contains an error code as defined in https://bitmovin.com/encoding-documentation/bitmovin-api/#/introduction/api-error-codes\n",
            "example": 1005
          },
          "message": {
            "type": "string",
            "readOnly": true,
            "description": "General error message"
          },
          "developerMessage": {
            "type": "string",
            "readOnly": true,
            "description": "More detailed message meant for developers"
          },
          "links": {
            "type": "array",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/Link"
            },
            "description": "collection of links to webpages containing further information on the topic"
          },
          "details": {
            "type": "array",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/Message"
            },
            "description": "collection of messages containing more detailed information on the cause of the error"
          }
        }
      },
      "ResponseStatus": {
        "title": "ResponseStatus",
        "type": "string",
        "enum": [
          "SUCCESS",
          "ERROR"
        ]
      },
      "ResultWrapper": {
        "title": "ResultWrapper",
        "properties": {
          "result": {
            "type": "object",
            "readOnly": true
          }
        }
      },
      "StreamInput": {
        "title": "StreamInput",
        "properties": {
          "inputId": {
            "type": "string",
            "description": "ID of an Input resource defining the input storage. Required if 'inputStreamId' is not set.",
            "example": "47c3e8a3-ab76-46f5-8b07-cd2e2b0c3728"
          },
          "inputPath": {
            "type": "string",
            "description": "Path to an input media file. Required if 'inputStreamId' is not set.",
            "example": "/videos/movie1.mp4"
          },
          "selectionMode": {
            "description": "Specifies the strategy for selecting a stream from the input file. Must not be set when 'inputStreamId' is set.",
            "allOf": [
              {
                "$ref": "#/components/schemas/StreamSelectionMode"
              }
            ]
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "description": "Position of the stream to be selected from the input file (zero-based). Must not be set in combination with selectionMode 'AUTO', defaults to 0 for any other selectionMode.",
            "minimum": 0,
            "default": 0,
            "example": 0
          },
          "inputStreamId": {
            "type": "string",
            "description": "Set this property instead of all others to reference an InputStream resource (e.g. an Ingest-, Trimming- or ConcatenationInputStream)",
            "example": "47c3e8a3-ab76-46f5-8b07-cd2e2b0c3728"
          },
          "analysisDetails": {
            "description": "Input analysis details\n\nThis property is populated after the encoding has finished\n",
            "readOnly": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/EncodingStreamInputDetails"
              }
            ]
          }
        }
      },
      "Stream": {
        "title": "Stream",
        "required": [
          "inputStreams",
          "codecConfigId"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/BitmovinResource"
          },
          {
            "properties": {
              "inputStreams": {
                "type": "array",
                "description": "Determines the input source(s) for the stream. All video streams of an encoding need to have identical input configurations",
                "items": {
                  "$ref": "#/components/schemas/StreamInput"
                }
              },
              "outputs": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/EncodingOutput"
                }
              },
              "createQualityMetaData": {
                "type": "boolean",
                "description": "Set true to create quality metadata for this stream",
                "example": false
              },
              "codecConfigId": {
                "type": "string",
                "description": "Id of the codec configuration",
                "example": "d09c1a8a-4c56-4392-94d8-81712118aae0"
              },
              "segmentsEncoded": {
                "type": "integer",
                "format": "int32",
                "description": "Number of encoded segments. Available after encoding finishes.",
                "readOnly": true,
                "example": 65
              },
              "conditions": {
                "description": "Defines a condition that is evaluated against the input of the Stream. If the condition is not fulfilled, the Stream will be ignored during the encoding process. The 'streamConditionMode' of a Muxing allows to control how ignored Streams affect the Muxing. When retrieving the resource after the analysis step of the encoding has finished, 'ignoredBy' will indicate if and why it has been ignored. See [Stream Conditions](https://bitmovin.com/docs/encoding/articles/stream-conditions) for more information",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AbstractCondition"
                  }
                ]
              },
              "ignoredBy": {
                "description": "This read-only property is set during the analysis step of the encoding. If it contains items, the Stream has been ignored during the encoding process due to its 'conditions'",
                "readOnly": true,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Ignoring"
                }
              },
              "mode": {
                "description": "Mode of the stream",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/StreamMode"
                  }
                ]
              },
              "selectedEncodingMode": {
                "description": "The encoding mode that was used for this stream. This is derived from `encodingMode`, which can be specified in the codec configuration or in the encoding start request. Note that all streams of an encoding need to use the same encoding mode. This will therefore always match `selectedEncodingMode` of the related Encoding resource. Especially useful when `encodingMode` was not set explicitly or set to STANDARD (which translates to one of the other possible values on encoding start).",
                "readOnly": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EncodingMode"
                  }
                ]
              },
              "perTitleSettings": {
                "description": "Settings to configure Per-Title on stream level",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/StreamPerTitleSettings"
                  }
                ]
              },
              "metadata": {
                "description": "",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/StreamMetadata"
                  }
                ]
              },
              "decodingErrorMode": {
                "description": "Determines how to react to errors during decoding",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DecodingErrorMode"
                  }
                ]
              },
              "appliedSettings": {
                "description": "Contains stream properties which may not have been defined in the configuration",
                "readOnly": true,
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AppliedStreamSettings"
                  }
                ]
              }
            }
          }
        ]
      },
      "EncodingStreamInputDetails": {
        "title": "EncodingStreamInputDetails",
        "properties": {
          "formatName": {
            "type": "string",
            "readOnly": true,
            "description": "Format name",
            "example": "matroska,webm"
          },
          "startTime": {
            "type": "number",
            "format": "double",
            "readOnly": true,
            "description": "The start time in seconds",
            "example": 0
          },
          "duration": {
            "type": "number",
            "format": "double",
            "readOnly": true,
            "description": "Duration in seconds",
            "example": 263.013
          },
          "size": {
            "type": "integer",
            "format": "int64",
            "readOnly": true,
            "description": "Input file size in bytes",
            "example": 51107796
          },
          "bitrate": {
            "type": "integer",
            "format": "int64",
            "readOnly": true,
            "description": "Bitrate in bps",
            "example": 1554532
          },
          "tags": {
            "type": "object",
            "description": "Additional metadata saved in the input file",
            "additionalProperties": {
              "type": "object"
            }
          },
          "videoStreams": {
            "type": "array",
            "readOnly": true,
            "description": "Video streams in the input file",
            "items": {
              "$ref": "#/components/schemas/VideoStream"
            }
          },
          "audioStreams": {
            "type": "array",
            "readOnly": true,
            "description": "Audio stream in the input file",
            "items": {
              "$ref": "#/components/schemas/AudioStream"
            }
          },
          "metaStreams": {
            "type": "array",
            "readOnly": true,
            "description": "Meta data streams in the input file",
            "items": {
              "$ref": "#/components/schemas/MediaStream"
            }
          },
          "subtitleStreams": {
            "type": "array",
            "readOnly": true,
            "description": "Subtitle streams in the input file",
            "items": {
              "$ref": "#/components/schemas/SubtitleStream"
            }
          }
        }
      },
      "MediaStream": {
        "title": "MediaStream",
        "allOf": [
          {
            "$ref": "#/components/schemas/BitmovinResponse"
          },
          {
            "properties": {
              "position": {
                "type": "integer",
                "format": "int32",
                "description": "Position of the stream in the media, starting from 0.",
                "minimum": 0,
                "example": 0
              },
              "duration": {
                "type": "number",
                "format": "double",
                "description": "Duration of the stream in seconds",
                "example": 121
              },
              "codec": {
                "type": "string",
                "description": "Codec of the stream",
                "example": "h264"
              }
            }
          }
        ]
      },
      "SubtitleStream": {
        "title": "SubtitleStream",
        "allOf": [
          {
            "$ref": "#/components/schemas/MediaStream"
          },
          {
            "properties": {
              "language": {
                "type": "string",
                "description": "Language of the stream",
                "example": "nor"
              },
              "hearingImpaired": {
                "type": "boolean",
                "description": "Hearing impaired support",
                "example": false
              }
            }
          }
        ]
      },
      "VideoStream": {
        "title": "VideoStream",
        "required": [
          "width",
          "height"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/MediaStream"
          },
          {
            "properties": {
              "fps": {
                "type": "string",
                "description": "Frame rate of the video",
                "example": 23.97
              },
              "bitrate": {
                "type": "string",
                "description": "Bitrate in bps",
                "example": 10000000
              },
              "rate": {
                "type": "integer",
                "format": "int64",
                "description": "Bitrate in bps (the same as bitrate, but represented as an integer value)",
                "example": 10000000
              },
              "width": {
                "type": "integer",
                "format": "int32",
                "description": "Width of the video",
                "example": 1920
              },
              "height": {
                "type": "integer",
                "format": "int32",
                "description": "Height of the video",
                "example": 1080
              },
              "par": {
                "type": "number",
                "format": "double",
                "description": "Pixel aspect ratio of the video. Default is 1.0",
                "example": 1.777777778
              },
              "rotation": {
                "type": "integer",
                "format": "int32",
                "description": "Rotation of the video for mobile devices. Default is 0.",
                "example": 90
              }
            }
          }
        ]
      },
      "StreamMetadata": {
        "title": "StreamMetadata",
        "properties": {
          "language": {
            "type": "string",
            "description": "Language of the media contained in the stream, given as an ISO 639-2 code or a BCP 47 tag, for example 'eng' or 'en-US'. If the value is not set, then no metadata tag is set for the media stream.",
            "example": "eng"
          },
          "label": {
            "type": "string",
            "maxLength": 255,
            "description": "Display name of the Stream, for example to tell apart multiple audio tracks that share the same language. For CMAF muxings it is written as a 'labl' box (ISO/IEC 14496-12) into the user data of the track. Downstream packagers use it for the Label element in DASH manifests and the NAME attribute of EXT-X-MEDIA tags in HLS playlists. If the value is not set, no label is written. Use 'labelLanguage' to declare which language the label itself is written in.",
            "example": "English commentary 1"
          },
          "labelLanguage": {
            "type": "string",
            "maxLength": 35,
            "description": "Language the 'label' itself is written in, which is not necessarily the language of the media. A Spanish audio track can carry an English label, for example. For CMAF muxings it is written into the 'labl' box next to the label, and downstream packagers use it for the lang attribute of the Label element in DASH manifests. The value is written as given and downstream packagers expose it unchanged, so set a BCP 47 tag such as 'en' when the manifest should carry that form. The value has to be shaped like a BCP 47 tag: a primary subtag of two or three letters, optionally followed by subtags of up to eight letters or digits, each separated by a hyphen, for example 'en', 'en-US' or 'es-419'. If the value is not set and a label is set, 'language' is used as given, for example 'eng'. Without either, the label language is written as 'und' (undetermined). HLS playlists are not affected, as EXT-X-MEDIA has no equivalent attribute.",
            "example": "en"
          },
          "switchingSetId": {
            "type": "string",
            "maxLength": 64,
            "description": "Identifier of the switching set the Stream belongs to. For CMAF muxings it is written as a 'kind' box with schemeURI urn:dashif:ingest:switchingset_id (DASH-IF Live Media Ingest) into the user data of the track. Downstream packagers group tracks with the same identifier into one switching set and use it in segment URLs. Only letters, digits, hyphens and underscores are allowed. If the value is not set and a label is set, an identifier is derived from the properties of the Stream, including the label. Without a label, no identifier is written. Set it explicitly when segment URLs have to stay stable across configuration updates.",
            "example": "audio_commentary_1"
          }
        }
      },
      "StreamMode": {
        "title": "StreamMode",
        "type": "string",
        "enum": [
          "STANDARD",
          "PER_TITLE_TEMPLATE",
          "PER_TITLE_TEMPLATE_FIXED_RESOLUTION",
          "PER_TITLE_TEMPLATE_FIXED_RESOLUTION_AND_BITRATE",
          "PER_TITLE_RESULT"
        ],
        "x-enum-elements": [
          {
            "name": "STANDARD",
            "description": "Standard encoding. This is used to configure renditions that must show up in the output, i.e. will get encoded exactly as configured."
          },
          {
            "name": "PER_TITLE_TEMPLATE",
            "description": "Template for Per-Title encoding. This is used to define encoding settings for a given resolution when Per-Title encoding is enabled. Additionally, it allows to define which resolutions should be considered by Per-Title encoding."
          },
          {
            "name": "PER_TITLE_TEMPLATE_FIXED_RESOLUTION",
            "description": "Same as PER_TITLE_TEMPLATE, but it will be ensured that the configured resolution will be present in the Per-Title result."
          },
          {
            "name": "PER_TITLE_TEMPLATE_FIXED_RESOLUTION_AND_BITRATE",
            "description": "Same as PER_TITLE_TEMPLATE, but it will be ensured that the configured resolution and bitrate range will be present in the Per-Title result."
          },
          {
            "name": "PER_TITLE_RESULT",
            "description": "Once the Per-Title encoding is done, the generated streams will have this mode set."
          }
        ]
      },
      "StreamPerTitleSettings": {
        "title": "StreamPerTitleSettings",
        "properties": {
          "fixedResolutionAndBitrateSettings": {
            "description": "Settings for PER_TITLE_TEMPLATE_FIXED_RESOLUTION_AND_BITRATE mode",
            "allOf": [
              {
                "$ref": "#/components/schemas/StreamPerTitleFixedResolutionAndBitrateSettings"
              }
            ]
          },
          "codecMaxBitrateFactor": {
            "type": "number",
            "format": "double",
            "description": "This factor is used to calculate the maxBitrate of the codec configuration for the generated representation as a multiple of the targetBitrate(generated by Per-Title algorithm). This value will take precedence over the 'codecMaxBitrateFactor' from the pertitleStartConfiguration. This value will only have an impact on streams with h264 or h265 video configurations.",
            "example": 2
          },
          "codecBufsizeFactor": {
            "type": "number",
            "format": "double",
            "description": "This factor is used to calculate the bufsize of the codec configuration for the generated representations as a multiple of the targetBitrate(generated by Per-Title algorithm). This value will take precedence over the 'codecBufsizeFactor' from the pertitleStartConfiguration.. This value will only have an impact on streams with h264 or h265 video configurations.",
            "example": 4
          }
        }
      },
      "StreamPerTitleFixedResolutionAndBitrateSettings": {
        "title": "StreamPerTitleFixedResolutionAndBitrateSettings",
        "properties": {
          "minBitrate": {
            "type": "integer",
            "format": "int32",
            "description": "The minimum bitrate that will be used for that template.",
            "example": 240000
          },
          "maxBitrate": {
            "type": "integer",
            "format": "int32",
            "description": "The maximum bitrate that will be used for that template.",
            "example": 15000000
          },
          "bitrateSelectionMode": {
            "description": "Bitrate selection mode",
            "allOf": [
              {
                "$ref": "#/components/schemas/BitrateSelectionMode"
              }
            ]
          },
          "lowComplexityBoundaryForMaxBitrate": {
            "type": "integer",
            "format": "int32",
            "description": "Low complexity boundary for max bitrate",
            "example": 1800000
          },
          "highComplexityBoundaryForMaxBitrate": {
            "type": "integer",
            "format": "int32",
            "description": "High complexity boundary for max bitrate",
            "example": 2400000
          }
        }
      },
      "StreamSelectionMode": {
        "title": "StreamSelectionMode",
        "type": "string",
        "default": "AUTO",
        "enum": [
          "AUTO",
          "POSITION_ABSOLUTE",
          "VIDEO_RELATIVE",
          "AUDIO_RELATIVE",
          "SUBTITLE_RELATIVE"
        ],
        "x-enum-elements": [
          {
            "name": "AUTO",
            "description": "Automatically select the first stream that fits the Stream's codec configuration"
          },
          {
            "name": "POSITION_ABSOLUTE",
            "description": "Use the stream specified by 'position'"
          },
          {
            "name": "VIDEO_RELATIVE",
            "description": "Use the stream specified by 'position', counting video streams only"
          },
          {
            "name": "AUDIO_RELATIVE",
            "description": "Use the stream specified by 'position', counting audio streams only"
          },
          {
            "name": "SUBTITLE_RELATIVE",
            "description": "Use the stream specified by 'position', counting subtitle streams only"
          }
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Stream"
    }
  ]
}
```