# 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`                                                                                                                      | **bool*                                                                                                                        | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | true                                                                                                                           |
| `AudioChannelLayout`                                                                                                           | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | stereo                                                                                                                         |
| `BitDepth`                                                                                                                     | **int64*                                                                                                                       | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 8                                                                                                                              |
| `Bitrate`                                                                                                                      | **int64*                                                                                                                       | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 5466                                                                                                                           |
| `CanAutoSync`                                                                                                                  | **bool*                                                                                                                        | :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`                                                                                                               | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | topleft                                                                                                                        |
| `ChromaSubsampling`                                                                                                            | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 4:2:0                                                                                                                          |
| `Codec`                                                                                                                        | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | The codec of the stream, such as `h264` or `aac`                                                                               | h264                                                                                                                           |
| `ColorPrimaries`                                                                                                               | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | bt709                                                                                                                          |
| `ColorRange`                                                                                                                   | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | tv                                                                                                                             |
| `ColorSpace`                                                                                                                   | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | bt709                                                                                                                          |
| `ColorTrc`                                                                                                                     | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | bt709                                                                                                                          |
| `DisplayTitle`                                                                                                                 | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | A friendly name for the stream, often comprised of the language and codec information                                          | English (H.264 Main)                                                                                                           |
| `FrameRate`                                                                                                                    | **float64*                                                                                                                     | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 23.976                                                                                                                         |
| `HasScalingMatrix`                                                                                                             | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | false                                                                                                                          |
| `Height`                                                                                                                       | **int64*                                                                                                                       | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 544                                                                                                                            |
| `ID`                                                                                                                           | **int64*                                                                                                                       | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 1                                                                                                                              |
| `Index`                                                                                                                        | **int64*                                                                                                                       | :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`                                                                                                                          | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | If the stream is independently streamable, the key from which it can be streamed                                               | /library/streams/1                                                                                                             |
| `Language`                                                                                                                     | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | English                                                                                                                        |
| `LanguageCode`                                                                                                                 | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | The three character language code for the stream contents                                                                      | eng                                                                                                                            |
| `Level`                                                                                                                        | **int64*                                                                                                                       | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 31                                                                                                                             |
| `Profile`                                                                                                                      | *any*                                                                                                                          | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | main                                                                                                                           |
| `RefFrames`                                                                                                                    | **int64*                                                                                                                       | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 2                                                                                                                              |
| `SamplingRate`                                                                                                                 | **int64*                                                                                                                       | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 48000                                                                                                                          |
| `Selected`                                                                                                                     | **bool*                                                                                                                        | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            |                                                                                                                                |
| `StreamIdentifier`                                                                                                             | **int64*                                                                                                                       | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 1                                                                                                                              |
| `StreamType`                                                                                                                   | **int64*                                                                                                                       | :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`                                                                                                                        | **int64*                                                                                                                       | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            | 1280                                                                                                                           |
| `Decision`                                                                                                                     | [*components.MediaContainerWithDecisionDecision](../../models/components/mediacontainerwithdecisiondecision.md)                | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            |                                                                                                                                |
| `Location`                                                                                                                     | [*components.MediaContainerWithDecisionLocation](../../models/components/mediacontainerwithdecisionlocation.md)                | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            |                                                                                                                                |
| `AdditionalProperties`                                                                                                         | map[string]*any*                                                                                                               | :heavy_minus_sign:                                                                                                             | N/A                                                                                                                            |                                                                                                                                |