# Google Cloud Video Transcoder V1 Client - Class MuxStream (1.4.0)

1.4.0 (latest) 1.3.2 1.2.0 1.1.0 1.0.3 0.10.5 0.9.1 0.8.2 0.7.1 0.6.0 0.5.3 Reference documentation and code samples for the Google Cloud Video Transcoder V1 Client class MuxStream.

Multiplexing settings for output stream.

Generated from protobuf message `google.cloud.video.transcoder.v1.MuxStream`

## Namespace

Google \\ Cloud \\ Video \\ Transcoder \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key` | `string` A unique key for this multiplexed stream. |
| `↳ file_name` | `string` The name of the generated file. The default is [MuxStream.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream#_Google_Cloud_Video_Transcoder_V1_MuxStream__getKey__) with the extension suffix corresponding to the [MuxStream.container](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream#_Google_Cloud_Video_Transcoder_V1_MuxStream__getContainer__). Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `mux_stream0000000123.ts`. |
| `↳ container` | `string` The container format. The default is `mp4` Supported streaming formats: - `ts` - `fmp4`- the corresponding file extension is `.m4s` Supported standalone file formats: - `mp4` - `mp3` - `ogg` - `vtt` See also: [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats) |
| `↳ elementary_streams` | `string[]` List of [ElementaryStream.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.ElementaryStream#_Google_Cloud_Video_Transcoder_V1_ElementaryStream__getKey__) values multiplexed in this stream. |
| `↳ segment_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SegmentSettings` Segment settings for `ts`, `fmp4` and `vtt`. |
| `↳ encryption_id` | `string` Identifier of the encryption configuration to use. If omitted, output will be unencrypted. |
| `↳ fmp4` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream.Fmp4Config` Optional. `fmp4` container configuration. |

### getKey

A unique key for this multiplexed stream.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKey

A unique key for this multiplexed stream.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFileName

The name of the generated file. The default is
[MuxStream.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream#_Google_Cloud_Video_Transcoder_V1_MuxStream__getKey__) with the
extension suffix corresponding to the
[MuxStream.container](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream#_Google_Cloud_Video_Transcoder_V1_MuxStream__getContainer__).

Individual segments also have an incremental 10-digit zero-padded suffix
starting from 0 before the extension, such as `mux_stream0000000123.ts`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setFileName

The name of the generated file. The default is
[MuxStream.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream#_Google_Cloud_Video_Transcoder_V1_MuxStream__getKey__) with the
extension suffix corresponding to the
[MuxStream.container](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream#_Google_Cloud_Video_Transcoder_V1_MuxStream__getContainer__).

Individual segments also have an incremental 10-digit zero-padded suffix
starting from 0 before the extension, such as `mux_stream0000000123.ts`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getContainer

The container format. The default is `mp4`
Supported streaming formats:

- `ts`
- `fmp4`- the corresponding file extension is `.m4s` Supported standalone file formats:
- `mp4`
- `mp3`
- `ogg`
- `vtt` See also: [Supported input and output
  formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setContainer

The container format. The default is `mp4`
Supported streaming formats:

- `ts`
- `fmp4`- the corresponding file extension is `.m4s` Supported standalone file formats:
- `mp4`
- `mp3`
- `ogg`
- `vtt` See also: [Supported input and output
  formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getElementaryStreams

List of
[ElementaryStream.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.ElementaryStream#_Google_Cloud_Video_Transcoder_V1_ElementaryStream__getKey__)
values multiplexed in this stream.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setElementaryStreams

List of
[ElementaryStream.key](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.ElementaryStream#_Google_Cloud_Video_Transcoder_V1_ElementaryStream__getKey__)
values multiplexed in this stream.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSegmentSettings

Segment settings for `ts`, `fmp4` and `vtt`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SegmentSettings|null` |   |

### hasSegmentSettings

### clearSegmentSettings

### setSegmentSettings

Segment settings for `ts`, `fmp4` and `vtt`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SegmentSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEncryptionId

Identifier of the encryption configuration to use. If omitted, output will
be unencrypted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEncryptionId

Identifier of the encryption configuration to use. If omitted, output will
be unencrypted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFmp4

Optional. `fmp4` container configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream.Fmp4Config|null` |   |

### hasFmp4

### setFmp4

Optional. `fmp4` container configuration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream.Fmp4Config` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getContainerConfig

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |