# MediaContainerWithDecisionStream

`Stream` represents a particular stream from a media item, such as the video stream, audio stream, or subtitle stream. The stream may either be part of the file represented by the parent `Part` or, especially for subtitles, an external file. The stream contains more detailed information about the specific stream. For example, a video may include the `aspectRatio` at the `Media` level, but detailed information about the video stream like the color space will be included on the `Stream` for the video stream.  Note that photos do not have streams (mostly as an optimization).



## Fields

| Field                                                                                                                          | Type                                                                                                                           | Required                                                                                                                       | Description                                                                                                                    | Example                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| `default_`                                                                                                                     | *Optional\<Boolean>*                                                                                                           | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | true                                                                                                                           |
| `audioChannelLayout`                                                                                                           | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | stereo                                                                                                                         |
| `bitDepth`                                                                                                                     | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 8                                                                                                                              |
| `bitrate`                                                                                                                      | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 5466                                                                                                                           |
| `canAutoSync`                                                                                                                  | *Optional\<Boolean>*                                                                                                           | :heavy_minus_sign:                                                                                                             | For subtitle streams only. If `true` then the server can attempt to automatically sync the subtitle timestamps with the video. | true                                                                                                                           |
| `chromaLocation`                                                                                                               | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | topleft                                                                                                                        |
| `chromaSubsampling`                                                                                                            | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 4:2:0                                                                                                                          |
| `codec`                                                                                                                        | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | The codec of the stream, such as `h264` or `aac`                                                                               | h264                                                                                                                           |
| `colorPrimaries`                                                                                                               | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | bt709                                                                                                                          |
| `colorRange`                                                                                                                   | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | tv                                                                                                                             |
| `colorSpace`                                                                                                                   | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | bt709                                                                                                                          |
| `colorTrc`                                                                                                                     | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | bt709                                                                                                                          |
| `displayTitle`                                                                                                                 | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | A friendly name for the stream, often comprised of the language and codec information                                          | English (H.264 Main)                                                                                                           |
| `frameRate`                                                                                                                    | *Optional\<Double>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 23.976                                                                                                                         |
| `hasScalingMatrix`                                                                                                             | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | false                                                                                                                          |
| `height`                                                                                                                       | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 544                                                                                                                            |
| `id`                                                                                                                           | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 1                                                                                                                              |
| `index`                                                                                                                        | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | If the stream is part of the `Part` and not an external resource, the index of the stream within that part                     | 0                                                                                                                              |
| `key`                                                                                                                          | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | If the stream is independently streamable, the key from which it can be streamed                                               | /library/streams/1                                                                                                             |
| `language`                                                                                                                     | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | English                                                                                                                        |
| `languageCode`                                                                                                                 | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | The three character language code for the stream contents                                                                      | eng                                                                                                                            |
| `level`                                                                                                                        | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 31                                                                                                                             |
| `profile`                                                                                                                      | *Optional\<Object>*                                                                                                            | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | main                                                                                                                           |
| `refFrames`                                                                                                                    | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 2                                                                                                                              |
| `samplingRate`                                                                                                                 | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 48000                                                                                                                          |
| `selected`                                                                                                                     | *Optional\<Boolean>*                                                                                                           | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            |                                                                                                                                |
| `streamIdentifier`                                                                                                             | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 1                                                                                                                              |
| `streamType`                                                                                                                   | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | A number indicating the type of the stream. `1` for video, `2` for audio, `3` for subtitles, `4` for lyrics                    | 1                                                                                                                              |
| `width`                                                                                                                        | *Optional\<Long>*                                                                                                              | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 1280                                                                                                                           |
| `decision`                                                                                                                     | [Optional\<MediaContainerWithDecisionDecision>](../../models/shared/MediaContainerWithDecisionDecision.md)                     | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            |                                                                                                                                |
| `location`                                                                                                                     | [Optional\<MediaContainerWithDecisionLocation>](../../models/shared/MediaContainerWithDecisionLocation.md)                     | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            |                                                                                                                                |
| `additionalProperties`                                                                                                         | Map\<String, *Object*>                                                                                                         | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            |                                                                                                                                |