@@ -57,18 +57,18 @@ message Job {
57
57
// Format: `projects/{project_number}/locations/{location}/jobs/{job}`
58
58
string name = 1 ;
59
59
60
- // Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
61
- // `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
62
- // URI of the media. Input files must be at least 5 seconds in duration and
63
- // stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). See
64
- // [Supported input and output
60
+ // Input only. Specify the `input_uri` to populate empty `uri` fields in each
61
+ // element of `Job.config.inputs` or `JobTemplate.config.inputs` when using
62
+ // template. URI of the media. Input files must be at least 5 seconds in
63
+ // duration and stored in Cloud Storage (for example,
64
+ // `gs://bucket/inputs/file.mp4`). See [Supported input and output
65
65
// formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
66
66
string input_uri = 2 [(google.api.field_behavior ) = INPUT_ONLY ];
67
67
68
- // Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
69
- // `JobTemplate.config.output.uri` when using template.
70
- // URI for the output file(s). For example, `gs://my-bucket/outputs/`. See
71
- // [Supported input and output
68
+ // Input only. Specify the `output_uri` to populate an empty
69
+ // `Job.config.output.uri` or ` JobTemplate.config.output.uri` when using
70
+ // template. URI for the output file(s). For example,
71
+ // `gs://my-bucket/outputs/`. See [Supported input and output
72
72
// formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
73
73
string output_uri = 3 [(google.api.field_behavior ) = INPUT_ONLY ];
74
74
@@ -77,8 +77,8 @@ message Job {
77
77
// `preset/web-hd` by default. When you use a `template_id` to create a job,
78
78
// the `Job.config` is populated by the `JobTemplate.config`.<br>
79
79
oneof job_config {
80
- // Input only. Specify the `template_id` to use for populating `Job.config`. The default
81
- // is `preset/web-hd`.
80
+ // Input only. Specify the `template_id` to use for populating `Job.config`.
81
+ // The default is `preset/web-hd`.
82
82
//
83
83
// Preset Transcoder templates:
84
84
// - `preset/{preset_id}`
@@ -95,13 +95,16 @@ message Job {
95
95
ProcessingState state = 8 [(google.api.field_behavior ) = OUTPUT_ONLY ];
96
96
97
97
// Output only. The time the job was created.
98
- google.protobuf.Timestamp create_time = 12 [(google.api.field_behavior ) = OUTPUT_ONLY ];
98
+ google.protobuf.Timestamp create_time = 12
99
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
99
100
100
101
// Output only. The time the transcoding started.
101
- google.protobuf.Timestamp start_time = 13 [(google.api.field_behavior ) = OUTPUT_ONLY ];
102
+ google.protobuf.Timestamp start_time = 13
103
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
102
104
103
105
// Output only. The time the transcoding finished.
104
- google.protobuf.Timestamp end_time = 14 [(google.api.field_behavior ) = OUTPUT_ONLY ];
106
+ google.protobuf.Timestamp end_time = 14
107
+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
105
108
106
109
// Job time to live value in days, which will be effective after job
107
110
// completion. Job should be deleted automatically after the given TTL. Enter
@@ -301,7 +304,8 @@ message Manifest {
301
304
// Required. Type of the manifest, can be `HLS` or `DASH`.
302
305
ManifestType type = 2 [(google.api.field_behavior ) = REQUIRED ];
303
306
304
- // Required. List of user given `MuxStream.key`s that should appear in this manifest.
307
+ // Required. List of user given `MuxStream.key`s that should appear in this
308
+ // manifest.
305
309
//
306
310
// When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key`
307
311
// and `.m3u8` extension is generated for each element of the
@@ -331,21 +335,27 @@ message SpriteSheet {
331
335
// from 0 before the extension, such as `sprite_sheet0000000123.jpeg`.
332
336
string file_prefix = 2 [(google.api.field_behavior ) = REQUIRED ];
333
337
334
- // Required. The width of sprite in pixels. Must be an even integer. To preserve the
335
- // source aspect ratio, set the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] field or
336
- // the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] field, but not both (the API will
337
- // automatically calculate the missing field).
338
+ // Required. The width of sprite in pixels. Must be an even integer. To
339
+ // preserve the source aspect ratio, set the
340
+ // [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels]
341
+ // field or the
342
+ // [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels]
343
+ // field, but not both (the API will automatically calculate the missing
344
+ // field).
338
345
//
339
346
// For portrait videos that contain horizontal ASR and rotation metadata,
340
347
// provide the width, in pixels, per the horizontal ASR. The API calculates
341
348
// the height per the horizontal ASR. The API detects any rotation metadata
342
349
// and swaps the requested height and width for the output.
343
350
int32 sprite_width_pixels = 3 [(google.api.field_behavior ) = REQUIRED ];
344
351
345
- // Required. The height of sprite in pixels. Must be an even integer. To preserve the
346
- // source aspect ratio, set the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] field or
347
- // the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] field, but not both (the API will
348
- // automatically calculate the missing field).
352
+ // Required. The height of sprite in pixels. Must be an even integer. To
353
+ // preserve the source aspect ratio, set the
354
+ // [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels]
355
+ // field or the
356
+ // [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels]
357
+ // field, but not both (the API will automatically calculate the missing
358
+ // field).
349
359
//
350
360
// For portrait videos that contain horizontal ASR and rotation metadata,
351
361
// provide the height, in pixels, per the horizontal ASR. The API calculates
@@ -714,17 +724,17 @@ message VideoStream {
714
724
// and swaps the requested height and width for the output.
715
725
int32 height_pixels = 2 ;
716
726
717
- // Required. The target video frame rate in frames per second (FPS). Must be less than
718
- // or equal to 120. Will default to the input frame rate if larger than the
719
- // input frame rate. The API will generate an output FPS that is divisible
720
- // by the input FPS, and smaller or equal to the target FPS. See
727
+ // Required. The target video frame rate in frames per second (FPS). Must be
728
+ // less than or equal to 120. Will default to the input frame rate if larger
729
+ // than the input frame rate. The API will generate an output FPS that is
730
+ // divisible by the input FPS, and smaller or equal to the target FPS. See
721
731
// [Calculating frame
722
732
// rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
723
733
// more information.
724
734
double frame_rate = 3 [(google.api.field_behavior ) = REQUIRED ];
725
735
726
- // Required. The video bitrate in bits per second. The minimum value is 1,000.
727
- // The maximum value is 800,000,000.
736
+ // Required. The video bitrate in bits per second. The minimum value is
737
+ // 1,000. The maximum value is 800,000,000.
728
738
int32 bitrate_bps = 4 [(google.api.field_behavior ) = REQUIRED ];
729
739
730
740
// Pixel format to use. The default is `yuv420p`.
@@ -859,17 +869,17 @@ message VideoStream {
859
869
// and swaps the requested height and width for the output.
860
870
int32 height_pixels = 2 ;
861
871
862
- // Required. The target video frame rate in frames per second (FPS). Must be less than
863
- // or equal to 120. Will default to the input frame rate if larger than the
864
- // input frame rate. The API will generate an output FPS that is divisible
865
- // by the input FPS, and smaller or equal to the target FPS. See
872
+ // Required. The target video frame rate in frames per second (FPS). Must be
873
+ // less than or equal to 120. Will default to the input frame rate if larger
874
+ // than the input frame rate. The API will generate an output FPS that is
875
+ // divisible by the input FPS, and smaller or equal to the target FPS. See
866
876
// [Calculating frame
867
877
// rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
868
878
// more information.
869
879
double frame_rate = 3 [(google.api.field_behavior ) = REQUIRED ];
870
880
871
- // Required. The video bitrate in bits per second. The minimum value is 1,000.
872
- // The maximum value is 800,000,000.
881
+ // Required. The video bitrate in bits per second. The minimum value is
882
+ // 1,000. The maximum value is 800,000,000.
873
883
int32 bitrate_bps = 4 [(google.api.field_behavior ) = REQUIRED ];
874
884
875
885
// Pixel format to use. The default is `yuv420p`.
@@ -1011,17 +1021,17 @@ message VideoStream {
1011
1021
// and swaps the requested height and width for the output.
1012
1022
int32 height_pixels = 2 ;
1013
1023
1014
- // Required. The target video frame rate in frames per second (FPS). Must be less than
1015
- // or equal to 120. Will default to the input frame rate if larger than the
1016
- // input frame rate. The API will generate an output FPS that is divisible
1017
- // by the input FPS, and smaller or equal to the target FPS. See
1024
+ // Required. The target video frame rate in frames per second (FPS). Must be
1025
+ // less than or equal to 120. Will default to the input frame rate if larger
1026
+ // than the input frame rate. The API will generate an output FPS that is
1027
+ // divisible by the input FPS, and smaller or equal to the target FPS. See
1018
1028
// [Calculating frame
1019
1029
// rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
1020
1030
// more information.
1021
1031
double frame_rate = 3 [(google.api.field_behavior ) = REQUIRED ];
1022
1032
1023
- // Required. The video bitrate in bits per second. The minimum value is 1,000.
1024
- // The maximum value is 480,000,000.
1033
+ // Required. The video bitrate in bits per second. The minimum value is
1034
+ // 1,000. The maximum value is 480,000,000.
1025
1035
int32 bitrate_bps = 4 [(google.api.field_behavior ) = REQUIRED ];
1026
1036
1027
1037
// Pixel format to use. The default is `yuv420p`.
@@ -1099,8 +1109,8 @@ message VideoStream {
1099
1109
message AudioStream {
1100
1110
// The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
1101
1111
message AudioMapping {
1102
- // Required. The `EditAtom.key` that references the atom with audio inputs in the
1103
- // `Job.edit_list`.
1112
+ // Required. The `EditAtom.key` that references the atom with audio inputs
1113
+ // in the `Job.edit_list`.
1104
1114
string atom_key = 1 [(google.api.field_behavior ) = REQUIRED ];
1105
1115
1106
1116
// Required. The `Input.key` that identifies the input file.
@@ -1132,7 +1142,8 @@ message AudioStream {
1132
1142
// - `eac3`
1133
1143
string codec = 1 ;
1134
1144
1135
- // Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
1145
+ // Required. Audio bitrate in bits per second. Must be between 1 and
1146
+ // 10,000,000.
1136
1147
int32 bitrate_bps = 2 [(google.api.field_behavior ) = REQUIRED ];
1137
1148
1138
1149
// Number of audio channels. Must be between 1 and 6. The default is 2.
@@ -1157,6 +1168,15 @@ message AudioStream {
1157
1168
1158
1169
// The audio sample rate in Hertz. The default is 48000 Hertz.
1159
1170
int32 sample_rate_hertz = 6 ;
1171
+
1172
+ // The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
1173
+ // information, see
1174
+ // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1175
+ string language_code = 7 ;
1176
+
1177
+ // The name for this particular audio stream that
1178
+ // will be added to the HLS/DASH manifest.
1179
+ string display_name = 8 ;
1160
1180
}
1161
1181
1162
1182
// Encoding of a text stream. For example, closed captions or subtitles.
@@ -1185,8 +1205,17 @@ message TextStream {
1185
1205
// - `webvtt`
1186
1206
string codec = 1 ;
1187
1207
1208
+ // The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
1209
+ // information, see
1210
+ // https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1211
+ string language_code = 2 ;
1212
+
1188
1213
// The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
1189
1214
repeated TextMapping mapping = 3 ;
1215
+
1216
+ // The name for this particular text stream that
1217
+ // will be added to the HLS/DASH manifest.
1218
+ string display_name = 4 ;
1190
1219
}
1191
1220
1192
1221
// Segment settings for `ts`, `fmp4` and `vtt`.
0 commit comments