1
- // Copyright 2021 Google LLC
1
+ // Copyright 2022 Google LLC
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
@@ -60,12 +60,16 @@ message Job {
60
60
// Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
61
61
// `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
62
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`).
63
+ // stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). See
64
+ // [Supported input and output
65
+ // formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
64
66
string input_uri = 2 [(google.api.field_behavior ) = INPUT_ONLY ];
65
67
66
68
// Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
67
69
// `JobTemplate.config.output.uri` when using template.
68
- // URI for the output file(s). For example, `gs://my-bucket/outputs/`.
70
+ // URI for the output file(s). For example, `gs://my-bucket/outputs/`. See
71
+ // [Supported input and output
72
+ // formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
69
73
string output_uri = 3 [(google.api.field_behavior ) = INPUT_ONLY ];
70
74
71
75
// Specify the `job_config` for the transcoding job. If you don't specify the
@@ -104,6 +108,10 @@ message Job {
104
108
// a value between 1 and 90. The default is 30.
105
109
int32 ttl_after_completion_days = 15 ;
106
110
111
+ // The labels associated with this job. You can use these to organize and
112
+ // group your jobs.
113
+ map <string , string > labels = 16 ;
114
+
107
115
// Output only. An error object that describes the reason for the failure.
108
116
// This property is always present when `state` is `FAILED`.
109
117
google.rpc.Status error = 17 [(google.api.field_behavior ) = OUTPUT_ONLY ];
@@ -123,6 +131,10 @@ message JobTemplate {
123
131
124
132
// The configuration for this template.
125
133
JobConfig config = 2 ;
134
+
135
+ // The labels associated with this job template. You can use these to organize
136
+ // and group your job templates.
137
+ map <string , string > labels = 3 ;
126
138
}
127
139
128
140
// Job configuration
@@ -154,6 +166,7 @@ message JobConfig {
154
166
PubsubDestination pubsub_destination = 8 ;
155
167
156
168
// List of output sprite sheets.
169
+ // Spritesheets require at least one VideoStream in the Jobconfig.
157
170
repeated SpriteSheet sprite_sheets = 9 ;
158
171
159
172
// List of overlays on the output video, in descending Z-order.
@@ -168,7 +181,9 @@ message Input {
168
181
169
182
// URI of the media. Input files must be at least 5 seconds in duration and
170
183
// stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
171
- // If empty, the value will be populated from `Job.input_uri`.
184
+ // If empty, the value is populated from `Job.input_uri`. See
185
+ // [Supported input and output
186
+ // formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
172
187
string uri = 2 ;
173
188
174
189
// Preprocessing configurations.
@@ -178,7 +193,9 @@ message Input {
178
193
// Location of output file(s) in a Cloud Storage bucket.
179
194
message Output {
180
195
// URI for the output file(s). For example, `gs://my-bucket/outputs/`.
181
- // If empty the value is populated from `Job.output_uri`.
196
+ // If empty, the value is populated from `Job.output_uri`. See
197
+ // [Supported input and output
198
+ // formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
182
199
string uri = 1 ;
183
200
}
184
201
@@ -250,6 +267,10 @@ message MuxStream {
250
267
// - `fmp4`- the corresponding file extension is `.m4s`
251
268
// - `mp4`
252
269
// - `vtt`
270
+ //
271
+ // See also:
272
+ // [Supported input and output
273
+ // formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)
253
274
string container = 3 ;
254
275
255
276
// List of `ElementaryStream.key`s multiplexed in this stream.
@@ -400,6 +421,18 @@ message Overlay {
400
421
google.protobuf.Duration start_time_offset = 2 ;
401
422
}
402
423
424
+ // Fade type for the overlay: `FADE_IN` or `FADE_OUT`.
425
+ enum FadeType {
426
+ // The fade type is not specified.
427
+ FADE_TYPE_UNSPECIFIED = 0 ;
428
+
429
+ // Fade the overlay object into view.
430
+ FADE_IN = 1 ;
431
+
432
+ // Fade the overlay object out of view.
433
+ FADE_OUT = 2 ;
434
+ }
435
+
403
436
// Display overlay object with fade animation.
404
437
message AnimationFade {
405
438
// Required. Type of fade animation: `FADE_IN` or `FADE_OUT`.
@@ -443,18 +476,6 @@ message Overlay {
443
476
}
444
477
}
445
478
446
- // Fade type for the overlay: `FADE_IN` or `FADE_OUT`.
447
- enum FadeType {
448
- // The fade type is not specified.
449
- FADE_TYPE_UNSPECIFIED = 0 ;
450
-
451
- // Fade the overlay object into view.
452
- FADE_IN = 1 ;
453
-
454
- // Fade the overlay object out of view.
455
- FADE_OUT = 2 ;
456
- }
457
-
458
479
// Image overlay.
459
480
Image image = 1 ;
460
481
@@ -466,6 +487,8 @@ message Overlay {
466
487
// Preprocessing configurations.
467
488
message PreprocessingConfig {
468
489
// Color preprocessing configuration.
490
+ //
491
+ // **Note:** This configuration is not supported.
469
492
message Color {
470
493
// Control color saturation of the video. Enter a value between -1 and 1,
471
494
// where -1 is fully desaturated and 1 is maximum saturation. 0 is no
@@ -484,6 +507,8 @@ message PreprocessingConfig {
484
507
}
485
508
486
509
// Denoise preprocessing configuration.
510
+ //
511
+ // **Note:** This configuration is not supported.
487
512
message Denoise {
488
513
// Set strength of the denoise. Enter a value between 0 and 1. The higher
489
514
// the value, the smoother the image. 0 is no denoising. The default is 0.
@@ -499,6 +524,8 @@ message PreprocessingConfig {
499
524
}
500
525
501
526
// Deblock preprocessing configuration.
527
+ //
528
+ // **Note:** This configuration is not supported.
502
529
message Deblock {
503
530
// Set strength of the deblocker. Enter a value between 0 and 1. The higher
504
531
// the value, the stronger the block removal. 0 is no deblocking. The
@@ -525,9 +552,13 @@ message PreprocessingConfig {
525
552
double lufs = 1 ;
526
553
527
554
// Enable boosting high frequency components. The default is `false`.
555
+ //
556
+ // **Note:** This field is not supported.
528
557
bool high_boost = 2 ;
529
558
530
559
// Enable boosting low frequency components. The default is `false`.
560
+ //
561
+ // **Note:** This field is not supported.
531
562
bool low_boost = 3 ;
532
563
}
533
564
@@ -906,11 +937,12 @@ message VideoStream {
906
937
// Supported rate control modes:
907
938
//
908
939
// - `vbr` - variable bitrate
909
- // - `crf` - constant rate factor
910
940
string rate_control_mode = 6 ;
911
941
912
942
// Target CRF level. Must be between 10 and 36, where 10 is the highest
913
943
// quality and 36 is the most efficient compression. The default is 21.
944
+ //
945
+ // **Note:** This field is not supported.
914
946
int32 crf_level = 7 ;
915
947
916
948
// GOP mode can be either by frame count or duration.
0 commit comments