# JobConfig

- [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SCHEMA_REPRESENTATION)
- [Input](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Input)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Input.SCHEMA_REPRESENTATION)
- [PreprocessingConfig](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#PreprocessingConfig)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#PreprocessingConfig.SCHEMA_REPRESENTATION)
- [Color](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Color)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Color.SCHEMA_REPRESENTATION)
- [Denoise](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Denoise)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Denoise.SCHEMA_REPRESENTATION)
- [Deblock](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Deblock)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Deblock.SCHEMA_REPRESENTATION)
- [Audio](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Audio)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Audio.SCHEMA_REPRESENTATION)
- [Crop](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Crop)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Crop.SCHEMA_REPRESENTATION)
- [Pad](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Pad)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Pad.SCHEMA_REPRESENTATION)
- [Deinterlace](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Deinterlace)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Deinterlace.SCHEMA_REPRESENTATION)
- [YadifConfig](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#YadifConfig)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#YadifConfig.SCHEMA_REPRESENTATION)
- [BwdifConfig](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#BwdifConfig)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#BwdifConfig.SCHEMA_REPRESENTATION)
- [InputAttributes](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#InputAttributes)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#InputAttributes.SCHEMA_REPRESENTATION)
- [TrackDefinition](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TrackDefinition)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TrackDefinition.SCHEMA_REPRESENTATION)
- [EditAtom](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom.SCHEMA_REPRESENTATION)
- [ElementaryStream](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#ElementaryStream)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#ElementaryStream.SCHEMA_REPRESENTATION)
- [VideoStream](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#VideoStream)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#VideoStream.SCHEMA_REPRESENTATION)
- [H264CodecSettings](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings.SCHEMA_REPRESENTATION)
- [FrameRateConversionStrategy](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FrameRateConversionStrategy)
- [H264ColorFormatSDR](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264ColorFormatSDR)
- [H264ColorFormatHLG](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264ColorFormatHLG)
- [H265CodecSettings](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265CodecSettings)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265CodecSettings.SCHEMA_REPRESENTATION)
- [H265ColorFormatSDR](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265ColorFormatSDR)
- [H265ColorFormatHLG](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265ColorFormatHLG)
- [H265ColorFormatHDR10](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265ColorFormatHDR10)
- [Vp9CodecSettings](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9CodecSettings)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9CodecSettings.SCHEMA_REPRESENTATION)
- [Vp9ColorFormatSDR](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9ColorFormatSDR)
- [Vp9ColorFormatHLG](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9ColorFormatHLG)
- [AudioStream](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AudioStream)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AudioStream.SCHEMA_REPRESENTATION)
- [AudioMapping](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AudioMapping)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AudioMapping.SCHEMA_REPRESENTATION)
- [TextStream](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TextStream)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TextStream.SCHEMA_REPRESENTATION)
- [TextMapping](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TextMapping)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TextMapping.SCHEMA_REPRESENTATION)
- [MuxStream](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MuxStream)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MuxStream.SCHEMA_REPRESENTATION)
- [SegmentSettings](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings.SCHEMA_REPRESENTATION)
- [Fmp4Config](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Fmp4Config)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Fmp4Config.SCHEMA_REPRESENTATION)
- [Manifest](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Manifest)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Manifest.SCHEMA_REPRESENTATION)
- [ManifestType](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#ManifestType)
- [DashConfig](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#DashConfig)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#DashConfig.SCHEMA_REPRESENTATION)
- [SegmentReferenceScheme](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentReferenceScheme)
- [Output](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Output)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Output.SCHEMA_REPRESENTATION)
- [AdBreak](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AdBreak)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AdBreak.SCHEMA_REPRESENTATION)
- [PubsubDestination](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#PubsubDestination)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#PubsubDestination.SCHEMA_REPRESENTATION)
- [SpriteSheet](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SpriteSheet)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SpriteSheet.SCHEMA_REPRESENTATION)
- [Overlay](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Overlay)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Overlay.SCHEMA_REPRESENTATION)
- [Image](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Image)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Image.SCHEMA_REPRESENTATION)
- [NormalizedCoordinate](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#NormalizedCoordinate)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#NormalizedCoordinate.SCHEMA_REPRESENTATION)
- [Animation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Animation)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Animation.SCHEMA_REPRESENTATION)
- [AnimationStatic](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationStatic)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationStatic.SCHEMA_REPRESENTATION)
- [AnimationFade](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationFade)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationFade.SCHEMA_REPRESENTATION)
- [FadeType](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FadeType)
- [AnimationEnd](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationEnd)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationEnd.SCHEMA_REPRESENTATION)
- [Encryption](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Encryption)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Encryption.SCHEMA_REPRESENTATION)
- [Aes128Encryption](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Aes128Encryption)
- [SampleAesEncryption](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SampleAesEncryption)
- [MpegCommonEncryption](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MpegCommonEncryption)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MpegCommonEncryption.SCHEMA_REPRESENTATION)
- [SecretManagerSource](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SecretManagerSource)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SecretManagerSource.SCHEMA_REPRESENTATION)
- [DrmSystems](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#DrmSystems)
  - [JSON representation](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#DrmSystems.SCHEMA_REPRESENTATION)
- [Widevine](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Widevine)
- [Fairplay](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Fairplay)
- [Playready](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Playready)
- [Clearkey](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Clearkey)

Job configuration

| JSON representation |
|---|
| ``` { "inputs": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Input`) } ], "editList": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom`) } ], "elementaryStreams": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#ElementaryStream`) } ], "muxStreams": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MuxStream`) } ], "manifests": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Manifest`) } ], "output": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Output`) }, "adBreaks": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AdBreak`) } ], "pubsubDestination": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#PubsubDestination`) }, "spriteSheets": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SpriteSheet`) } ], "overlays": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Overlay`) } ], "encryptions": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Encryption`) } ] } ``` |

| Fields ||
|---|---|
| `inputs[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Input`)`` List of input assets stored in Cloud Storage. |
| `editList[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom`)`` List of edit atoms. Defines the ultimate timeline of the resulting file or manifest. |
| `elementaryStreams[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#ElementaryStream`)`` List of elementary streams. |
| `muxStreams[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MuxStream`)`` List of multiplexing settings for output streams. |
| `manifests[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Manifest`)`` List of output manifests. |
| `output` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Output`)`` Output configuration. |
| `adBreaks[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AdBreak`)`` List of ad breaks. Specifies where to insert ad break tags in the output manifests. |
| `pubsubDestination` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#PubsubDestination`)`` Destination on Pub/Sub. |
| `spriteSheets[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SpriteSheet`)`` List of output sprite sheets. Spritesheets require at least one VideoStream in the Jobconfig. |
| `overlays[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Overlay`)`` List of overlays on the output video, in descending Z-order. |
| `encryptions[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Encryption`)`` List of encryption configurations for the content. Each configuration has an ID. Specify this ID in the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MuxStream.FIELDS.encryption_id` field to indicate the configuration to use for that `MuxStream` output. |

## Input

Input asset.

| JSON representation |
|---|
| ``` { "key": string, "uri": string, "preprocessingConfig": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#PreprocessingConfig`) }, "attributes": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#InputAttributes`) } } ``` |

| Fields ||
|---|---|
| `key` | `string` A unique key for this input. Must be specified when using advanced mapping and edit lists. |
| `uri` | `string` URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). If empty, the value is populated from `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/projects.locations.jobs#Job.FIELDS.input_uri`. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats). |
| `preprocessingConfig` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#PreprocessingConfig`)`` Preprocessing configurations. |
| `attributes` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#InputAttributes`)`` Optional. Input Attributes. |

## PreprocessingConfig

Preprocessing configurations.

| JSON representation |
|---|
| ``` { "color": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Color`) }, "denoise": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Denoise`) }, "deblock": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Deblock`) }, "audio": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Audio`) }, "crop": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Crop`) }, "pad": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Pad`) }, "deinterlace": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Deinterlace`) } } ``` |

| Fields ||
|---|---|
| `color` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Color`)`` Color preprocessing configuration. |
| `denoise` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Denoise`)`` Denoise preprocessing configuration. |
| `deblock` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Deblock`)`` Deblock preprocessing configuration. |
| `audio` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Audio`)`` Audio preprocessing configuration. |
| `crop` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Crop`)`` Specify the video cropping configuration. |
| `pad` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Pad`)`` Specify the video pad filter configuration. |
| `deinterlace` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Deinterlace`)`` Specify the video deinterlace configuration. |

## Color

Color preprocessing configuration.

**Note:** This configuration is not supported.

| JSON representation |
|---|
| ``` { "saturation": number, "contrast": number, "brightness": number } ``` |

| Fields ||
|---|---|
| `saturation` | `number` Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0. |
| `contrast` | `number` Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0. |
| `brightness` | `number` Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0. |

## Denoise

Denoise preprocessing configuration.

**Note:** This configuration is not supported.

| JSON representation |
|---|
| ``` { "strength": number, "tune": string } ``` |

| Fields ||
|---|---|
| `strength` | `number` Set strength of the denoise. Enter a value between 0 and 1. The higher the value, the smoother the image. 0 is no denoising. The default is 0. |
| `tune` | `string` Set the denoiser mode. The default is `standard`. Supported denoiser modes: - `standard` - `grain` |

## Deblock

Deblock preprocessing configuration.

**Note:** This configuration is not supported.

| JSON representation |
|---|
| ``` { "strength": number, "enabled": boolean } ``` |

| Fields ||
|---|---|
| `strength` | `number` Set strength of the deblocker. Enter a value between 0 and 1. The higher the value, the stronger the block removal. 0 is no deblocking. The default is 0. |
| `enabled` | `boolean` Enable deblocker. The default is `false`. |

## Audio

Audio preprocessing configuration.

| JSON representation |
|---|
| ``` { "lufs": number, "highBoost": boolean, "lowBoost": boolean } ``` |

| Fields ||
|---|---|
| `lufs` | `number` Specify audio loudness normalization in loudness units relative to full scale (LUFS). Enter a value between -24 and 0 (the default), where: - -24 is the Advanced Television Systems Committee (ATSC A/85) standard - -23 is the EU R128 broadcast standard - -19 is the prior standard for online mono audio - -18 is the ReplayGain standard - -16 is the prior standard for stereo audio - -14 is the new online audio standard recommended by Spotify, as well as Amazon Echo - 0 disables normalization |
| `highBoost` | `boolean` Enable boosting high frequency components. The default is `false`. **Note:** This field is not supported. |
| `lowBoost` | `boolean` Enable boosting low frequency components. The default is `false`. **Note:** This field is not supported. |

## Crop

Video cropping configuration for the input video. The cropped input video is scaled to match the output resolution.

| JSON representation |
|---|
| ``` { "topPixels": integer, "bottomPixels": integer, "leftPixels": integer, "rightPixels": integer } ``` |

| Fields ||
|---|---|
| `topPixels` | `integer` The number of pixels to crop from the top. The default is 0. |
| `bottomPixels` | `integer` The number of pixels to crop from the bottom. The default is 0. |
| `leftPixels` | `integer` The number of pixels to crop from the left. The default is 0. |
| `rightPixels` | `integer` The number of pixels to crop from the right. The default is 0. |

## Pad

Pad filter configuration for the input video. The padded input video is scaled after padding with black to match the output resolution.

| JSON representation |
|---|
| ``` { "topPixels": integer, "bottomPixels": integer, "leftPixels": integer, "rightPixels": integer } ``` |

| Fields ||
|---|---|
| `topPixels` | `integer` The number of pixels to add to the top. The default is 0. |
| `bottomPixels` | `integer` The number of pixels to add to the bottom. The default is 0. |
| `leftPixels` | `integer` The number of pixels to add to the left. The default is 0. |
| `rightPixels` | `integer` The number of pixels to add to the right. The default is 0. |

## Deinterlace

Deinterlace configuration for input video.

| JSON representation |
|---|
| ``` { // Union field `deinterlacing_filter` can be only one of the following: "yadif": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#YadifConfig`) }, "bwdif": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#BwdifConfig`) } // End of list of possible types for union field `deinterlacing_filter`. } ``` |

| Fields ||
|---|---|
| Union field `deinterlacing_filter`. Specify the video deinterlacing filter. The default is `yadif`. `deinterlacing_filter` can be only one of the following: ||
| `yadif` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#YadifConfig`)`` Specifies the Yet Another Deinterlacing Filter Configuration. |
| `bwdif` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#BwdifConfig`)`` Specifies the Bob Weaver Deinterlacing Filter Configuration. |

## YadifConfig

Yet Another Deinterlacing Filter Configuration.

| JSON representation |
|---|
| ``` { "mode": string, "disableSpatialInterlacing": boolean, "parity": string, "deinterlaceAllFrames": boolean } ``` |

| Fields ||
|---|---|
| `mode` | `string` Specifies the deinterlacing mode to adopt. The default is `send_frame`. Supported values: - `send_frame`: Output one frame for each frame - `send_field`: Output one frame for each field |
| `disableSpatialInterlacing` | `boolean` Disable spacial interlacing. The default is `false`. |
| `parity` | `string` The picture field parity assumed for the input interlaced video. The default is `auto`. Supported values: - `tff`: Assume the top field is first - `bff`: Assume the bottom field is first - `auto`: Enable automatic detection of field parity |
| `deinterlaceAllFrames` | `boolean` Deinterlace all frames rather than just the frames identified as interlaced. The default is `false`. |

## BwdifConfig

Bob Weaver Deinterlacing Filter Configuration.

| JSON representation |
|---|
| ``` { "mode": string, "parity": string, "deinterlaceAllFrames": boolean } ``` |

| Fields ||
|---|---|
| `mode` | `string` Specifies the deinterlacing mode to adopt. The default is `send_frame`. Supported values: - `send_frame`: Output one frame for each frame - `send_field`: Output one frame for each field |
| `parity` | `string` The picture field parity assumed for the input interlaced video. The default is `auto`. Supported values: - `tff`: Assume the top field is first - `bff`: Assume the bottom field is first - `auto`: Enable automatic detection of field parity |
| `deinterlaceAllFrames` | `boolean` Deinterlace all frames rather than just the frames identified as interlaced. The default is `false`. |

## InputAttributes

Input attributes that provide additional information about the input asset.

| JSON representation |
|---|
| ``` { "trackDefinitions": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TrackDefinition`) } ] } ``` |

| Fields ||
|---|---|
| `trackDefinitions[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TrackDefinition`)`` Optional. A list of track definitions for the input asset. |

## TrackDefinition

Track definition for the input asset.

| JSON representation |
|---|
| ``` { "languages": [ string ], "detectLanguages": boolean, "detectedLanguages": [ string ], "inputTrack": integer } ``` |

| Fields ||
|---|---|
| `languages[]` | `string` Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see <https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>. |
| `detectLanguages` | `boolean` Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field. |
| `detectedLanguages[]` | `string` Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see <https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>. This field is only populated if the detectLanguages field is set to true. |
| `inputTrack` | `integer` The input track. |

## EditAtom

Edit atom.

| JSON representation |
|---|
| ``` { "key": string, "inputs": [ string ], "endTimeOffset": string, "startTimeOffset": string } ``` |

| Fields ||
|---|---|
| `key` | `string` A unique key for this atom. Must be specified when using advanced mapping. |
| `inputs[]` | `string` List of `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Input.FIELDS.key` values identifying files that should be used in this atom. The listed `inputs` must have the same timeline. |
| `endTimeOffset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` End time in seconds for the atom, relative to the input file timeline. When `endTimeOffset` is not specified, the `inputs` are used until the end of the atom. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `startTimeOffset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Start time in seconds for the atom, relative to the input file timeline. The default is `0s`. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## ElementaryStream

Encoding of an input file such as an audio, video, or text track. Elementary streams must be packaged before mapping and sharing between different output formats.

| JSON representation |
|---|
| ``` { "key": string, // Union field `elementary_stream` can be only one of the following: "videoStream": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#VideoStream`) }, "audioStream": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AudioStream`) }, "textStream": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TextStream`) } // End of list of possible types for union field `elementary_stream`. } ``` |

| Fields ||
|---|---|
| `key` | `string` A unique key for this elementary stream. |
| Union field `elementary_stream`. Encoding of an audio, video, or text track. `elementary_stream` can be only one of the following: ||
| `videoStream` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#VideoStream`)`` Encoding of a video stream. |
| `audioStream` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AudioStream`)`` Encoding of an audio stream. |
| `textStream` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TextStream`)`` Encoding of a text stream. For example, closed captions or subtitles. |

## VideoStream

Video stream resource.

| JSON representation |
|---|
| ``` { // Union field `codec_settings` can be only one of the following: "h264": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings`) }, "h265": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265CodecSettings`) }, "vp9": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9CodecSettings`) } // End of list of possible types for union field `codec_settings`. } ``` |

| Fields ||
|---|---|
| Union field `codec_settings`. Codec settings can be h264, h265, or vp9. `codec_settings` can be only one of the following: ||
| `h264` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings`)`` H264 codec settings. |
| `h265` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265CodecSettings`)`` H265 codec settings. |
| `vp9` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9CodecSettings`)`` VP9 codec settings. |

## H264CodecSettings

H264 codec settings.

| JSON representation |
|---|
| ``` { "widthPixels": integer, "heightPixels": integer, "frameRate": number, "frameRateConversionStrategy": enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FrameRateConversionStrategy`), "bitrateBps": integer, "pixelFormat": string, "rateControlMode": string, "crfLevel": integer, "allowOpenGop": boolean, "enableTwoPass": boolean, "vbvSizeBits": integer, "vbvFullnessBits": integer, "entropyCoder": string, "bPyramid": boolean, "bFrameCount": integer, "aqStrength": number, "profile": string, "tune": string, "preset": string, // Union field `gop_mode` can be only one of the following: "gopFrameCount": integer, "gopDuration": string // End of list of possible types for union field `gop_mode`. // Union field `color_format` can be only one of the following: "sdr": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264ColorFormatSDR`) }, "hlg": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264ColorFormatHLG`) } // End of list of possible types for union field `color_format`. } ``` |

| Fields ||
|---|---|
| `widthPixels` | `integer` The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output. |
| `heightPixels` | `integer` The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output. |
| `frameRate` | `number` Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. |
| `frameRateConversionStrategy` | ``enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FrameRateConversionStrategy`)`` Optional. Frame rate conversion strategy for desired frame rate. The default is `DOWNSAMPLE`. |
| `bitrateBps` | `integer` Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 800,000,000. |
| `pixelFormat` | `string` Pixel format to use. The default is `yuv420p`. Supported pixel formats: - `yuv420p` pixel format - `yuv422p` pixel format - `yuv444p` pixel format - `yuv420p10` 10-bit HDR pixel format - `yuv422p10` 10-bit HDR pixel format - `yuv444p10` 10-bit HDR pixel format - `yuv420p12` 12-bit HDR pixel format - `yuv422p12` 12-bit HDR pixel format - `yuv444p12` 12-bit HDR pixel format |
| `rateControlMode` | `string` Specify the mode. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor |
| `crfLevel` | `integer` Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21. |
| `allowOpenGop` | `boolean` Specifies whether an open Group of Pictures (GOP) structure should be allowed or not. The default is `false`. |
| `enableTwoPass` | `boolean` Use two-pass encoding strategy to achieve better video quality. `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings.FIELDS.rate_control_mode` must be `vbr`. The default is `false`. |
| `vbvSizeBits` | `integer` Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings.FIELDS.bitrate_bps`. |
| `vbvFullnessBits` | `integer` Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to 90% of `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings.FIELDS.vbv_size_bits`. |
| `entropyCoder` | `string` The entropy coder to use. The default is `cabac`. Supported entropy coders: - `cavlc` - `cabac` |
| `bPyramid` | `boolean` Allow B-pyramid for reference frame selection. This may not be supported on all decoders. The default is `false`. |
| `bFrameCount` | `integer` The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264CodecSettings.FIELDS.gop_frame_count` if set. The default is 0. |
| `aqStrength` | `number` Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and 1, where 0 disables the quantizer and 1 maximizes the quantizer. A higher value equals a lower bitrate but smoother image. The default is 0. |
| `profile` | `string` Enforces the specified codec profile. The following profiles are supported: - `baseline` - `main` - `high` (default) The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message. |
| `tune` | `string` Enforces the specified codec tune. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message. |
| `preset` | `string` Enforces the specified codec preset. The default is `veryfast`. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Preset). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message. |
| Union field `gop_mode`. GOP mode can be either by frame count or duration. `gop_mode` can be only one of the following: ||
| `gopFrameCount` | `integer` Select the GOP size based on the specified frame count. Must be greater than zero. |
| `gopDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings), and [`segmentDuration`](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings) must be divisible by `gopDuration`. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| Union field `color_format`. Color format can be sdr or hlg. `color_format` can be only one of the following: ||
| `sdr` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264ColorFormatSDR`)`` Optional. SDR color format setting for H264. |
| `hlg` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H264ColorFormatHLG`)`` Optional. HLG color format setting for H264. |

## FrameRateConversionStrategy

The conversion strategy for desired frame rate.

| Enums ||
|---|---|
| `FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED` | Unspecified frame rate conversion strategy. |
| `DOWNSAMPLE` | Selectively retain frames to reduce the output frame rate. Every *n* th frame is kept, where `n = ceil(input frame rate / target frame rate)`. When *n* = 1 (that is, the target frame rate is greater than the input frame rate), the output frame rate matches the input frame rate. When *n* \> 1, frames are dropped and the output frame rate is equal to `(input frame rate / n)`. For more information, see [Calculate frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate). |
| `DROP_DUPLICATE` | Drop or duplicate frames to match the specified frame rate. |

## H264ColorFormatSDR

This type has no fields.
Convert the input video to a Standard Dynamic Range (SDR) video.

## H264ColorFormatHLG

This type has no fields.
Convert the input video to a Hybrid Log Gamma (HLG) video.

## H265CodecSettings

H265 codec settings.

| JSON representation |
|---|
| ``` { "widthPixels": integer, "heightPixels": integer, "frameRate": number, "frameRateConversionStrategy": enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FrameRateConversionStrategy`), "bitrateBps": integer, "pixelFormat": string, "rateControlMode": string, "crfLevel": integer, "allowOpenGop": boolean, "enableTwoPass": boolean, "vbvSizeBits": integer, "vbvFullnessBits": integer, "bPyramid": boolean, "bFrameCount": integer, "aqStrength": number, "profile": string, "tune": string, "preset": string, // Union field `gop_mode` can be only one of the following: "gopFrameCount": integer, "gopDuration": string // End of list of possible types for union field `gop_mode`. // Union field `color_format` can be only one of the following: "sdr": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265ColorFormatSDR`) }, "hlg": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265ColorFormatHLG`) }, "hdr10": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265ColorFormatHDR10`) } // End of list of possible types for union field `color_format`. } ``` |

| Fields ||
|---|---|
| `widthPixels` | `integer` The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output. |
| `heightPixels` | `integer` The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output. |
| `frameRate` | `number` Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. |
| `frameRateConversionStrategy` | ``enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FrameRateConversionStrategy`)`` Optional. Frame rate conversion strategy for desired frame rate. The default is `DOWNSAMPLE`. |
| `bitrateBps` | `integer` Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 800,000,000. |
| `pixelFormat` | `string` Pixel format to use. The default is `yuv420p`. Supported pixel formats: - `yuv420p` pixel format - `yuv422p` pixel format - `yuv444p` pixel format - `yuv420p10` 10-bit HDR pixel format - `yuv422p10` 10-bit HDR pixel format - `yuv444p10` 10-bit HDR pixel format - `yuv420p12` 12-bit HDR pixel format - `yuv422p12` 12-bit HDR pixel format - `yuv444p12` 12-bit HDR pixel format |
| `rateControlMode` | `string` Specify the mode. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor |
| `crfLevel` | `integer` Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21. |
| `allowOpenGop` | `boolean` Specifies whether an open Group of Pictures (GOP) structure should be allowed or not. The default is `false`. |
| `enableTwoPass` | `boolean` Use two-pass encoding strategy to achieve better video quality. `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265CodecSettings.FIELDS.rate_control_mode` must be `vbr`. The default is `false`. |
| `vbvSizeBits` | `integer` Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to `VideoStream.bitrate_bps`. |
| `vbvFullnessBits` | `integer` Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to 90% of `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265CodecSettings.FIELDS.vbv_size_bits`. |
| `bPyramid` | `boolean` Allow B-pyramid for reference frame selection. This may not be supported on all decoders. The default is `false`. |
| `bFrameCount` | `integer` The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265CodecSettings.FIELDS.gop_frame_count` if set. The default is 0. |
| `aqStrength` | `number` Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and 1, where 0 disables the quantizer and 1 maximizes the quantizer. A higher value equals a lower bitrate but smoother image. The default is 0. |
| `profile` | `string` Enforces the specified codec profile. The following profiles are supported: - 8-bit profiles - `main` (default) - `main-intra` - `mainstillpicture` - 10-bit profiles - `main10` (default) - `main10-intra` - `main422-10` - `main422-10-intra` - `main444-10` - `main444-10-intra` - 12-bit profiles - `main12` (default) - `main12-intra` - `main422-12` - `main422-12-intra` - `main444-12` - `main444-12-intra` The available options are [FFmpeg-compatible](https://x265.readthedocs.io/). Note that certain values for this field may cause the transcoder to override other fields you set in the `H265CodecSettings` message. |
| `tune` | `string` Enforces the specified codec tune. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.265). Note that certain values for this field may cause the transcoder to override other fields you set in the `H265CodecSettings` message. |
| `preset` | `string` Enforces the specified codec preset. The default is `veryfast`. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.265). Note that certain values for this field may cause the transcoder to override other fields you set in the `H265CodecSettings` message. |
| Union field `gop_mode`. GOP mode can be either by frame count or duration. `gop_mode` can be only one of the following: ||
| `gopFrameCount` | `integer` Select the GOP size based on the specified frame count. Must be greater than zero. |
| `gopDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings), and [`segmentDuration`](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings) must be divisible by `gopDuration`. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| Union field `color_format`. Color format can be sdr, hlg, hdr10. `color_format` can be only one of the following: ||
| `sdr` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265ColorFormatSDR`)`` Optional. SDR color format setting for H265. |
| `hlg` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265ColorFormatHLG`)`` Optional. HLG color format setting for H265. |
| `hdr10` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#H265ColorFormatHDR10`)`` Optional. HDR10 color format setting for H265. |

## H265ColorFormatSDR

This type has no fields.
Convert the input video to a Standard Dynamic Range (SDR) video.

## H265ColorFormatHLG

This type has no fields.
Convert the input video to a Hybrid Log Gamma (HLG) video.

## H265ColorFormatHDR10

This type has no fields.
Convert the input video to a High Dynamic Range 10 (HDR10) video.

## Vp9CodecSettings

VP9 codec settings.

| JSON representation |
|---|
| ``` { "widthPixels": integer, "heightPixels": integer, "frameRate": number, "frameRateConversionStrategy": enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FrameRateConversionStrategy`), "bitrateBps": integer, "pixelFormat": string, "rateControlMode": string, "crfLevel": integer, "profile": string, // Union field `gop_mode` can be only one of the following: "gopFrameCount": integer, "gopDuration": string // End of list of possible types for union field `gop_mode`. // Union field `color_format` can be only one of the following: "sdr": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9ColorFormatSDR`) }, "hlg": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9ColorFormatHLG`) } // End of list of possible types for union field `color_format`. } ``` |

| Fields ||
|---|---|
| `widthPixels` | `integer` The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output. |
| `heightPixels` | `integer` The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output. |
| `frameRate` | `number` Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. |
| `frameRateConversionStrategy` | ``enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FrameRateConversionStrategy`)`` Optional. Frame rate conversion strategy for desired frame rate. The default is `DOWNSAMPLE`. |
| `bitrateBps` | `integer` Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 480,000,000. |
| `pixelFormat` | `string` Pixel format to use. The default is `yuv420p`. Supported pixel formats: - `yuv420p` pixel format - `yuv422p` pixel format - `yuv444p` pixel format - `yuv420p10` 10-bit HDR pixel format - `yuv422p10` 10-bit HDR pixel format - `yuv444p10` 10-bit HDR pixel format - `yuv420p12` 12-bit HDR pixel format - `yuv422p12` 12-bit HDR pixel format - `yuv444p12` 12-bit HDR pixel format |
| `rateControlMode` | `string` Specify the mode. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate |
| `crfLevel` | `integer` Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21. **Note:** This field is not supported. |
| `profile` | `string` Enforces the specified codec profile. The following profiles are supported: - `profile0` (default) - `profile1` - `profile2` - `profile3` The available options are [WebM-compatible](https://www.webmproject.org/vp9/profiles/). Note that certain values for this field may cause the transcoder to override other fields you set in the `Vp9CodecSettings` message. |
| Union field `gop_mode`. GOP mode can be either by frame count or duration. `gop_mode` can be only one of the following: ||
| `gopFrameCount` | `integer` Select the GOP size based on the specified frame count. Must be greater than zero. |
| `gopDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings), and [`segmentDuration`](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings) must be divisible by `gopDuration`. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| Union field `color_format`. Color format can be sdr or hlg. `color_format` can be only one of the following: ||
| `sdr` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9ColorFormatSDR`)`` Optional. SDR color format setting for VP9. |
| `hlg` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Vp9ColorFormatHLG`)`` Optional. HLG color format setting for VP9. |

## Vp9ColorFormatSDR

This type has no fields.
Convert the input video to a Standard Dynamic Range (SDR) video.

## Vp9ColorFormatHLG

This type has no fields.
Convert the input video to a Hybrid Log Gamma (HLG) video.

## AudioStream

Audio stream resource.

| JSON representation |
|---|
| ``` { "codec": string, "bitrateBps": integer, "channelCount": integer, "channelLayout": [ string ], "mapping": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AudioMapping`) } ], "sampleRateHertz": integer, "languageCode": string, "displayName": string } ``` |

| Fields ||
|---|---|
| `codec` | `string` The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac` - `aac-he` - `aac-he-v2` - `mp3` - `ac3` - `eac3` - `vorbis` |
| `bitrateBps` | `integer` Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000. |
| `channelCount` | `integer` Number of audio channels. Must be between 1 and 6. The default is 2. |
| `channelLayout[]` | `string` A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `["fl", "fr"]`. Supported channel names: - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency |
| `mapping[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AudioMapping`)`` The mapping for the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FIELDS.edit_list` atoms with audio `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom.FIELDS.inputs`. |
| `sampleRateHertz` | `integer` The audio sample rate in Hertz. The default is 48000 Hertz. |
| `languageCode` | `string` The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see <https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>. Not supported in MP4 files. |
| `displayName` | `string` The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files. |

## AudioMapping

The mapping for the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FIELDS.edit_list` atoms with audio `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom.FIELDS.inputs`.

| JSON representation |
|---|
| ``` { "atomKey": string, "inputKey": string, "inputTrack": integer, "inputChannel": integer, "outputChannel": integer, "gainDb": number } ``` |

| Fields ||
|---|---|
| `atomKey` | `string` Required. The `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom.FIELDS.key` that references the atom with audio inputs in the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FIELDS.edit_list`. |
| `inputKey` | `string` Required. The `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Input.FIELDS.key` that identifies the input file. |
| `inputTrack` | `integer` Required. The zero-based index of the track in the input file. |
| `inputChannel` | `integer` Required. The zero-based index of the channel in the input audio stream. |
| `outputChannel` | `integer` Required. The zero-based index of the channel in the output audio stream. |
| `gainDb` | `number` Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0. |

## TextStream

Encoding of a text stream. For example, closed captions or subtitles.

| JSON representation |
|---|
| ``` { "codec": string, "languageCode": string, "mapping": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TextMapping`) } ], "displayName": string } ``` |

| Fields ||
|---|---|
| `codec` | `string` The codec for this text stream. The default is `webvtt`. Supported text codecs: - `srt` - `ttml` - `cea608` - `cea708` - `webvtt` |
| `languageCode` | `string` The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see <https://www.unicode.org/reports/tr35/#Unicode_locale_identifier>. Not supported in MP4 files. |
| `mapping[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#TextMapping`)`` The mapping for the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FIELDS.edit_list` atoms with text `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom.FIELDS.inputs`. |
| `displayName` | `string` The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files. |

## TextMapping

The mapping for the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FIELDS.edit_list` atoms with text `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom.FIELDS.inputs`.

| JSON representation |
|---|
| ``` { "atomKey": string, "inputKey": string, "inputTrack": integer } ``` |

| Fields ||
|---|---|
| `atomKey` | `string` Required. The `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#EditAtom.FIELDS.key` that references atom with text inputs in the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FIELDS.edit_list`. |
| `inputKey` | `string` Required. The `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Input.FIELDS.key` that identifies the input file. |
| `inputTrack` | `integer` Required. The zero-based index of the track in the input file. |

## MuxStream

Multiplexing settings for output stream.

| JSON representation |
|---|
| ``` { "key": string, "fileName": string, "container": string, "elementaryStreams": [ string ], "segmentSettings": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings`) }, "encryptionId": string, // Union field `container_config` can be only one of the following: "fmp4": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Fmp4Config`) } // End of list of possible types for union field `container_config`. } ``` |

| Fields ||
|---|---|
| `key` | `string` A unique key for this multiplexed stream. |
| `fileName` | `string` The name of the generated file. The default is `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MuxStream.FIELDS.key` with the extension suffix corresponding to the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MuxStream.FIELDS.container`. 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) |
| `elementaryStreams[]` | `string` List of `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#ElementaryStream.FIELDS.key` values multiplexed in this stream. |
| `segmentSettings` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings`)`` Segment settings for `ts`, `fmp4` and `vtt`. |
| `encryptionId` | `string` Identifier of the encryption configuration to use. If omitted, output will be unencrypted. |
| Union field `container_config`. Specifies the container configuration. `container_config` can be only one of the following: ||
| `fmp4` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Fmp4Config`)`` Optional. `fmp4` container configuration. |

## SegmentSettings

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

| JSON representation |
|---|
| ``` { "segmentDuration": string, "individualSegments": boolean } ``` |

| Fields ||
|---|---|
| `segmentDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Duration of the segments in seconds. The default is `6.0s`. Note that `segmentDuration` must be greater than or equal to [`gopDuration`](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#videostream), and `segmentDuration` must be divisible by [`gopDuration`](https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#videostream). A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `individualSegments` | `boolean` Required. Create an individual segment file. The default is `false`. |

## Fmp4Config

`fmp4` container configuration.

| JSON representation |
|---|
| ``` { "codecTag": string } ``` |

| Fields ||
|---|---|
| `codecTag` | `string` Optional. Specify the codec tag string that will be used in the media bitstream. When not specified, the codec appropriate value is used. Supported H265 codec tags: - `hvc1` (default) - `hev1` |

## Manifest

Manifest configuration.

| JSON representation |
|---|
| ``` { "fileName": string, "type": enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#ManifestType`), "muxStreams": [ string ], // Union field `manifest_config` can be only one of the following: "dash": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#DashConfig`) } // End of list of possible types for union field `manifest_config`. } ``` |

| Fields ||
|---|---|
| `fileName` | `string` The name of the generated file. The default is `manifest` with the extension suffix corresponding to the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Manifest.FIELDS.type`. |
| `type` | ``enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#ManifestType`)`` Required. Type of the manifest. |
| `muxStreams[]` | `string` Required. List of user supplied `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MuxStream.FIELDS.key` values that should appear in this manifest. When `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Manifest.FIELDS.type` is `HLS`, a media manifest with name `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MuxStream.FIELDS.key` and `.m3u8` extension is generated for each element in this list. |
| Union field `manifest_config`. Specifies the manifest configuration. `manifest_config` can be only one of the following: ||
| `dash` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#DashConfig`)`` `DASH` manifest configuration. |

## ManifestType

The manifest type, which corresponds to the adaptive streaming format used.

| Enums ||
|---|---|
| `MANIFEST_TYPE_UNSPECIFIED` | The manifest type is not specified. |
| `HLS` | Create an HLS manifest. The corresponding file extension is `.m3u8`. |
| `DASH` | Create an MPEG-DASH manifest. The corresponding file extension is `.mpd`. |

## DashConfig

`DASH` manifest configuration.

| JSON representation |
|---|
| ``` { "segmentReferenceScheme": enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentReferenceScheme`) } ``` |

| Fields ||
|---|---|
| `segmentReferenceScheme` | ``enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentReferenceScheme`)`` The segment reference scheme for a `DASH` manifest. The default is `SEGMENT_LIST`. |

## SegmentReferenceScheme

The segment reference scheme for a `DASH` manifest.

| Enums ||
|---|---|
| `SEGMENT_REFERENCE_SCHEME_UNSPECIFIED` | The segment reference scheme is not specified. |
| `SEGMENT_LIST` | Explicitly lists the URLs of media files for each segment. For example, if `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings.FIELDS.individual_segments` is `true`, then the manifest contains fields similar to the following: <Initialization sourceURL="my-hd-stream-init.m4s"/> <SegmentList presentationTimeOffset="0" duration="1000" timescale="10000"> <SegmentURL media="hd-stream0000000000.m4s"/> <SegmentURL media="hd-stream0000000001.m4s"/> ... |
| `SEGMENT_TEMPLATE_NUMBER` | `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SegmentSettings.FIELDS.individual_segments` must be set to `true` to use this segment reference scheme. Uses the DASH specification `<SegmentTemplate>` tag to determine the URLs of media files for each segment. For example: <SegmentTemplate presentationTimeOffset="0" timescale="10000" initialization="my-hd-stream-init.m4s" media="hd-stream$Number%010d$.m4s" startNumber="0"> ... |

## Output

Location of output file(s) in a Cloud Storage bucket.

| JSON representation |
|---|
| ``` { "uri": string } ``` |

| Fields ||
|---|---|
| `uri` | `string` URI for the output file(s). For example, `gs://my-bucket/outputs/`. Must be a directory and not a top-level bucket. If empty, the value is populated from `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/projects.locations.jobs#Job.FIELDS.output_uri`. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats). |

## AdBreak

Ad break.

| JSON representation |
|---|
| ``` { "startTimeOffset": string } ``` |

| Fields ||
|---|---|
| `startTimeOffset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Start time in seconds for the ad break, relative to the output file timeline. The default is `0s`. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## PubsubDestination

A Pub/Sub destination.

| JSON representation |
|---|
| ``` { "topic": string } ``` |

| Fields ||
|---|---|
| `topic` | `string` The name of the Pub/Sub topic to publish job completion notification to. For example: `projects/{project}/topics/{topic}`. |

## SpriteSheet

Sprite sheet configuration.

| JSON representation |
|---|
| ``` { "format": string, "filePrefix": string, "spriteWidthPixels": integer, "spriteHeightPixels": integer, "columnCount": integer, "rowCount": integer, "startTimeOffset": string, "endTimeOffset": string, "quality": integer, // Union field `extraction_strategy` can be only one of the following: "totalCount": integer, "interval": string // End of list of possible types for union field `extraction_strategy`. } ``` |

| Fields ||
|---|---|
| `format` | `string` Format type. The default is `jpeg`. Supported formats: - `jpeg` |
| `filePrefix` | `string` Required. File name prefix for the generated sprite sheets. Each sprite sheet has an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `sprite_sheet0000000123.jpeg`. |
| `spriteWidthPixels` | `integer` Required. The width of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SpriteSheet.FIELDS.sprite_width_pixels` field or the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SpriteSheet.FIELDS.sprite_height_pixels` field, but not both (the API will automatically calculate the missing field). For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output. |
| `spriteHeightPixels` | `integer` Required. The height of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SpriteSheet.FIELDS.sprite_height_pixels` field or the `https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SpriteSheet.FIELDS.sprite_width_pixels` field, but not both (the API will automatically calculate the missing field). For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output. |
| `columnCount` | `integer` The maximum number of sprites per row in a sprite sheet. The default is 0, which indicates no maximum limit. |
| `rowCount` | `integer` The maximum number of rows per sprite sheet. When the sprite sheet is full, a new sprite sheet is created. The default is 0, which indicates no maximum limit. |
| `startTimeOffset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Start time in seconds, relative to the output file timeline. Determines the first sprite to pick. The default is `0s`. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `endTimeOffset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` End time in seconds, relative to the output file timeline. When `endTimeOffset` is not specified, the sprites are generated until the end of the output file. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `quality` | `integer` The quality of the generated sprite sheet. Enter a value between 1 and 100, where 1 is the lowest quality and 100 is the highest quality. The default is 100. A high quality value corresponds to a low image data compression ratio. |
| Union field `extraction_strategy`. Specify either total number of sprites or interval to create sprites. `extraction_strategy` can be only one of the following: ||
| `totalCount` | `integer` Total number of sprites. Create the specified number of sprites distributed evenly across the timeline of the output media. The default is 100. |
| `interval` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Starting from `0s`, create sprites at regular intervals. Specify the interval value in seconds. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## Overlay

Overlay configuration.

| JSON representation |
|---|
| ``` { "image": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Image`) }, "animations": [ { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Animation`) } ] } ``` |

| Fields ||
|---|---|
| `image` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Image`)`` Image overlay. |
| `animations[]` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Animation`)`` List of animations. The list should be chronological, without any time overlap. |

## Image

Overlaid image.

| JSON representation |
|---|
| ``` { "uri": string, "resolution": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#NormalizedCoordinate`) }, "alpha": number } ``` |

| Fields ||
|---|---|
| `uri` | `string` Required. URI of the image in Cloud Storage. For example, `gs://bucket/inputs/image.png`. Only PNG and JPEG images are supported. |
| `resolution` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#NormalizedCoordinate`)`` Normalized image resolution, based on output video resolution. Valid values: `0.0`--`1.0`. To respect the original image aspect ratio, set either `x` or `y` to `0.0`. To use the original image resolution, set both `x` and `y` to `0.0`. |
| `alpha` | `number` Target image opacity. Valid values are from `1.0` (solid, default) to `0.0` (transparent), exclusive. Set this to a value greater than `0.0`. |

## NormalizedCoordinate

2D normalized coordinates. Default: `{0.0, 0.0}`

| JSON representation |
|---|
| ``` { "x": number, "y": number } ``` |

| Fields ||
|---|---|
| `x` | `number` Normalized x coordinate. |
| `y` | `number` Normalized y coordinate. |

## Animation

Animation types.

| JSON representation |
|---|
| ``` { // Union field `animation_type` can be only one of the following: "animationStatic": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationStatic`) }, "animationFade": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationFade`) }, "animationEnd": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationEnd`) } // End of list of possible types for union field `animation_type`. } ``` |

| Fields ||
|---|---|
| Union field `animation_type`. Animations can be static or fade, or they can end the previous animation. `animation_type` can be only one of the following: ||
| `animationStatic` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationStatic`)`` Display static overlay object. |
| `animationFade` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationFade`)`` Display overlay object with fade animation. |
| `animationEnd` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#AnimationEnd`)`` End previous animation. |

## AnimationStatic

Display static overlay object.

| JSON representation |
|---|
| ``` { "xy": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#NormalizedCoordinate`) }, "startTimeOffset": string } ``` |

| Fields ||
|---|---|
| `xy` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#NormalizedCoordinate`)`` Normalized coordinates based on output video resolution. Valid values: `0.0`--`1.0`. `xy` is the upper-left coordinate of the overlay object. For example, use the x and y coordinates {0,0} to position the top-left corner of the overlay animation in the top-left corner of the output video. |
| `startTimeOffset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` The time to start displaying the overlay object, in seconds. Default: 0 A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## AnimationFade

Display overlay object with fade animation.

| JSON representation |
|---|
| ``` { "fadeType": enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FadeType`), "xy": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#NormalizedCoordinate`) }, "startTimeOffset": string, "endTimeOffset": string } ``` |

| Fields ||
|---|---|
| `fadeType` | ``enum (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#FadeType`)`` Required. Type of fade animation: `FADE_IN` or `FADE_OUT`. |
| `xy` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#NormalizedCoordinate`)`` Normalized coordinates based on output video resolution. Valid values: `0.0`--`1.0`. `xy` is the upper-left coordinate of the overlay object. For example, use the x and y coordinates {0,0} to position the top-left corner of the overlay animation in the top-left corner of the output video. |
| `startTimeOffset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` The time to start the fade animation, in seconds. Default: 0 A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `endTimeOffset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` The time to end the fade animation, in seconds. Default: `startTimeOffset` + 1s A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## FadeType

Fade type for the overlay: `FADE_IN` or `FADE_OUT`.

| Enums ||
|---|---|
| `FADE_TYPE_UNSPECIFIED` | The fade type is not specified. |
| `FADE_IN` | Fade the overlay object into view. |
| `FADE_OUT` | Fade the overlay object out of view. |

## AnimationEnd

End previous overlay animation from the video. Without `AnimationEnd`, the overlay object will keep the state of previous animation until the end of the video.

| JSON representation |
|---|
| ``` { "startTimeOffset": string } ``` |

| Fields ||
|---|---|
| `startTimeOffset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` The time to end overlay object, in seconds. Default: 0 A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## Encryption

Encryption settings.

| JSON representation |
|---|
| ``` { "id": string, "drmSystems": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#DrmSystems`) }, // Union field `encryption_mode` can be only one of the following: "aes128": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Aes128Encryption`) }, "sampleAes": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SampleAesEncryption`) }, "mpegCenc": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MpegCommonEncryption`) } // End of list of possible types for union field `encryption_mode`. // Union field `secret_source` can be only one of the following: "secretManagerKeySource": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SecretManagerSource`) } // End of list of possible types for union field `secret_source`. } ``` |

| Fields ||
|---|---|
| `id` | `string` Required. Identifier for this set of encryption options. |
| `drmSystems` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#DrmSystems`)`` Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled. |
| Union field `encryption_mode`. Encryption mode can be either `aes` or `cenc`. `encryption_mode` can be only one of the following: ||
| `aes128` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Aes128Encryption`)`` Configuration for AES-128 encryption. |
| `sampleAes` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SampleAesEncryption`)`` Configuration for SAMPLE-AES encryption. |
| `mpegCenc` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#MpegCommonEncryption`)`` Configuration for MPEG Common Encryption (MPEG-CENC). |
| Union field `secret_source`. Defines where content keys are stored. `secret_source` can be only one of the following: ||
| `secretManagerKeySource` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#SecretManagerSource`)`` Keys are stored in Google Secret Manager. |

## Aes128Encryption

This type has no fields.
Configuration for AES-128 encryption.

## SampleAesEncryption

This type has no fields.
Configuration for SAMPLE-AES encryption.

## MpegCommonEncryption

Configuration for MPEG Common Encryption (MPEG-CENC).

| JSON representation |
|---|
| ``` { "scheme": string } ``` |

| Fields ||
|---|---|
| `scheme` | `string` Required. Specify the encryption scheme. Supported encryption schemes: - `cenc` - `cbcs` |

## SecretManagerSource

Configuration for secrets stored in Google Secret Manager.

| JSON representation |
|---|
| ``` { "secretVersion": string } ``` |

| Fields ||
|---|---|
| `secretVersion` | `string` Required. The name of the Secret Version containing the encryption key in the following format: `projects/{project}/secrets/{secret_id}/versions/{version_number}` Note that only numbered versions are supported. Aliases like "latest" are not supported. |

## DrmSystems

Defines configuration for DRM systems in use.

| JSON representation |
|---|
| ``` { "widevine": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Widevine`) }, "fairplay": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Fairplay`) }, "playready": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Playready`) }, "clearkey": { object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Clearkey`) } } ``` |

| Fields ||
|---|---|
| `widevine` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Widevine`)`` Widevine configuration. |
| `fairplay` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Fairplay`)`` Fairplay configuration. |
| `playready` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Playready`)`` Playready configuration. |
| `clearkey` | ``object (`https://docs.cloud.google.com/transcoder/docs/reference/rest/v1/JobConfig#Clearkey`)`` Clearkey configuration. |

## Widevine

This type has no fields.
Widevine configuration.

## Fairplay

This type has no fields.
Fairplay configuration.

## Playready

This type has no fields.
Playready configuration.

## Clearkey

This type has no fields.
Clearkey configuration.