# 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:                                                                                              | Indicates if this stream is default.                                                                            | true                                                                                                            |
| `AudioChannelLayout`                                                                                            | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Audio channel layout.                                                                                           | 5.1(side)                                                                                                       |
| `Channels`                                                                                                      | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Number of audio channels (for audio streams).                                                                   | 6                                                                                                               |
| `BitDepth`                                                                                                      | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Bit depth of the video stream.                                                                                  | 10                                                                                                              |
| `DOVIBLCompatID`                                                                                                | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Dolby Vision BL compatibility ID.                                                                               | 1                                                                                                               |
| `DOVIBLPresent`                                                                                                 | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates if Dolby Vision BL is present.                                                                        | true                                                                                                            |
| `DOVIELPresent`                                                                                                 | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates if Dolby Vision EL is present.                                                                        | false                                                                                                           |
| `DOVILevel`                                                                                                     | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Dolby Vision level.                                                                                             | 6                                                                                                               |
| `DOVIPresent`                                                                                                   | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates if Dolby Vision is present.                                                                           | true                                                                                                            |
| `DOVIProfile`                                                                                                   | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Dolby Vision profile.                                                                                           | 8                                                                                                               |
| `DOVIRPUPresent`                                                                                                | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates if Dolby Vision RPU is present.                                                                       | true                                                                                                            |
| `DOVIVersion`                                                                                                   | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Dolby Vision version.                                                                                           | 1.0                                                                                                             |
| `Bitrate`                                                                                                       | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Bitrate of the stream.                                                                                          | 24743                                                                                                           |
| `CanAutoSync`                                                                                                   | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates if the stream can auto-sync.                                                                          | false                                                                                                           |
| `ChromaLocation`                                                                                                | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Chroma sample location.                                                                                         | topleft                                                                                                         |
| `ChromaSubsampling`                                                                                             | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Chroma subsampling format.                                                                                      | 4:2:0                                                                                                           |
| `CodedHeight`                                                                                                   | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Coded video height.                                                                                             | 1608                                                                                                            |
| `CodedWidth`                                                                                                    | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Coded video width.                                                                                              | 3840                                                                                                            |
| `ClosedCaptions`                                                                                                | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | N/A                                                                                                             | true                                                                                                            |
| `Codec`                                                                                                         | *string*                                                                                                        | :heavy_check_mark:                                                                                              | Codec used by the stream.                                                                                       | hevc                                                                                                            |
| `ColorPrimaries`                                                                                                | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Color primaries used.                                                                                           | bt2020                                                                                                          |
| `ColorRange`                                                                                                    | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Color range (e.g., tv).                                                                                         | tv                                                                                                              |
| `ColorSpace`                                                                                                    | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Color space.                                                                                                    | bt2020nc                                                                                                        |
| `ColorTrc`                                                                                                      | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Color transfer characteristics.                                                                                 | smpte2084                                                                                                       |
| `DisplayTitle`                                                                                                  | *string*                                                                                                        | :heavy_check_mark:                                                                                              | Display title for the stream.                                                                                   | 4K DoVi/HDR10 (HEVC Main 10)                                                                                    |
| `ExtendedDisplayTitle`                                                                                          | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Extended display title for the stream.                                                                          | 4K DoVi/HDR10 (HEVC Main 10)                                                                                    |
| `FrameRate`                                                                                                     | **float32*                                                                                                      | :heavy_minus_sign:                                                                                              | Frame rate of the stream.                                                                                       | 23.976                                                                                                          |
| `HasScalingMatrix`                                                                                              | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | N/A                                                                                                             | false                                                                                                           |
| `Height`                                                                                                        | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Height of the video stream.                                                                                     | 1602                                                                                                            |
| `ID`                                                                                                            | *int*                                                                                                           | :heavy_check_mark:                                                                                              | Unique stream identifier.                                                                                       | 1002625                                                                                                         |
| `Index`                                                                                                         | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Index of the stream.                                                                                            | 0                                                                                                               |
| `Key`                                                                                                           | *string*                                                                                                        | :heavy_check_mark:                                                                                              | Key to access this stream part.                                                                                 | /library/streams/216389                                                                                         |
| `Language`                                                                                                      | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Language of the stream.                                                                                         | English                                                                                                         |
| `LanguageCode`                                                                                                  | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | ISO language code.                                                                                              | eng                                                                                                             |
| `LanguageTag`                                                                                                   | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Language tag (e.g., en).                                                                                        | en                                                                                                              |
| `Format`                                                                                                        | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Format of the stream (e.g., srt).                                                                               | srt                                                                                                             |
| `HeaderCompression`                                                                                             | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates whether header compression is enabled.                                                                | true                                                                                                            |
| `Level`                                                                                                         | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Video level.                                                                                                    | 150                                                                                                             |
| `Original`                                                                                                      | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates if this is the original stream.                                                                       | true                                                                                                            |
| `Profile`                                                                                                       | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Video profile.                                                                                                  | main 10                                                                                                         |
| `RefFrames`                                                                                                     | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Number of reference frames.                                                                                     | 1                                                                                                               |
| `SamplingRate`                                                                                                  | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Sampling rate for the audio stream.                                                                             | 48000                                                                                                           |
| `ScanType`                                                                                                      | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | N/A                                                                                                             | progressive                                                                                                     |
| `EmbeddedInVideo`                                                                                               | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | N/A                                                                                                             | progressive                                                                                                     |
| `Selected`                                                                                                      | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates if this stream is selected (applicable for audio streams).                                            | true                                                                                                            |
| `Forced`                                                                                                        | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | N/A                                                                                                             | true                                                                                                            |
| `HearingImpaired`                                                                                               | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates if the stream is for the hearing impaired.                                                            | true                                                                                                            |
| `Dub`                                                                                                           | **bool*                                                                                                         | :heavy_minus_sign:                                                                                              | Indicates if the stream is a dub.                                                                               | true                                                                                                            |
| `Title`                                                                                                         | **string*                                                                                                       | :heavy_minus_sign:                                                                                              | Optional title for the stream (e.g., language variant).                                                         | SDH                                                                                                             |
| `StreamIdentifier`                                                                                              | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | N/A                                                                                                             | 1                                                                                                               |
| `StreamType`                                                                                                    | *int64*                                                                                                         | :heavy_check_mark:                                                                                              | Stream type:<br/>  - VIDEO = 1<br/>  - AUDIO = 2<br/>  - SUBTITLE = 3<br/>                                      |                                                                                                                 |
| `Width`                                                                                                         | **int*                                                                                                          | :heavy_minus_sign:                                                                                              | Width of the video stream.                                                                                      | 3840                                                                                                            |
| `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                                                                                                             |                                                                                                                 |