google-cloud-video-transcoder-v1beta1 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23e43f8f9ce9a7461ba2b0ef462efaf083538f46234cf4e2b6dab297f4b8493b
4
- data.tar.gz: 2d9977e2b8f18149845643def2ed2a421907456e89c763358f182e6e4a18bcd2
3
+ metadata.gz: 82afcbdeaf7f25ad39e1370f03322f72246732d129e6d7d6674c8fee50defda9
4
+ data.tar.gz: b9072943d875039b18e537a38454b5dbc916c2f22e7f15853299a0f3411eae19
5
5
  SHA512:
6
- metadata.gz: f7807f27ac2d52105228cd4e2ebf7a98bad7a2352a82d2ba617abd817f5b1164023f8a496e4c57b43175e9bbea79768063a98fb1565b3c8d1be6454253e13fe9
7
- data.tar.gz: '069b5958ecec36aaaecbd149e7a6dcb23e88228da44af31a08501a5f6a0a82f0cb789036c7a4448bf0f0e80e8243ed91541f1b3ad93147a2946bb2cd8f0430c4'
6
+ metadata.gz: f3991656081acf897761d399fff9b0fc0b2512b5b02df1e695855582e813ccc55ffaf7eef166baa56c4ea84b0f8299c6504ee9849d457a31d24136d0b4daf524
7
+ data.tar.gz: 161b95adcaffd349f83bc74986e002e233cae1c786ab118187356e08b75ccb91dc26f76dd0f6a48b1cf9e69a10ae981019b66fedfc05b83adb7ba17d1cb42926
@@ -22,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
22
  optional :create_time, :message, 12, "google.protobuf.Timestamp"
23
23
  optional :start_time, :message, 13, "google.protobuf.Timestamp"
24
24
  optional :end_time, :message, 14, "google.protobuf.Timestamp"
25
+ optional :ttl_after_completion_days, :int32, 15
25
26
  oneof :job_config do
26
27
  optional :template_id, :string, 4
27
28
  optional :config, :message, 5, "google.cloud.video.transcoder.v1beta1.JobConfig"
@@ -109,6 +110,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
109
110
  optional :row_count, :int32, 6
110
111
  optional :start_time_offset, :message, 7, "google.protobuf.Duration"
111
112
  optional :end_time_offset, :message, 8, "google.protobuf.Duration"
113
+ optional :quality, :int32, 11
112
114
  oneof :extraction_strategy do
113
115
  optional :total_count, :int32, 9
114
116
  optional :interval, :message, 10, "google.protobuf.Duration"
@@ -157,6 +159,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
157
159
  optional :denoise, :message, 2, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Denoise"
158
160
  optional :deblock, :message, 3, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Deblock"
159
161
  optional :audio, :message, 4, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Audio"
162
+ optional :crop, :message, 5, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop"
163
+ optional :pad, :message, 6, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad"
160
164
  end
161
165
  add_message "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Color" do
162
166
  optional :saturation, :double, 1
@@ -176,6 +180,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
176
180
  optional :high_boost, :bool, 2
177
181
  optional :low_boost, :bool, 3
178
182
  end
183
+ add_message "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop" do
184
+ optional :top_pixels, :int32, 1
185
+ optional :bottom_pixels, :int32, 2
186
+ optional :left_pixels, :int32, 3
187
+ optional :right_pixels, :int32, 4
188
+ end
189
+ add_message "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad" do
190
+ optional :top_pixels, :int32, 1
191
+ optional :bottom_pixels, :int32, 2
192
+ optional :left_pixels, :int32, 3
193
+ optional :right_pixels, :int32, 4
194
+ end
179
195
  add_message "google.cloud.video.transcoder.v1beta1.VideoStream" do
180
196
  optional :codec, :string, 1
181
197
  optional :profile, :string, 2
@@ -303,6 +319,8 @@ module Google
303
319
  PreprocessingConfig::Denoise = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Denoise").msgclass
304
320
  PreprocessingConfig::Deblock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Deblock").msgclass
305
321
  PreprocessingConfig::Audio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Audio").msgclass
322
+ PreprocessingConfig::Crop = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop").msgclass
323
+ PreprocessingConfig::Pad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad").msgclass
306
324
  VideoStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.VideoStream").msgclass
307
325
  AudioStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.AudioStream").msgclass
308
326
  AudioStream::AudioAtom = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom").msgclass
@@ -47,13 +47,14 @@ module Google
47
47
  # See {::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client::Configuration}
48
48
  # for a description of the configuration fields.
49
49
  #
50
- # ## Example
50
+ # @deprecated This service is deprecated and may be removed in the next major version update.
51
51
  #
52
- # To modify the configuration for all TranscoderService clients:
52
+ # @example
53
53
  #
54
- # ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.configure do |config|
55
- # config.timeout = 10.0
56
- # end
54
+ # # Modify the configuration for all TranscoderService clients
55
+ # ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
57
58
  #
58
59
  # @yield [config] Configure the Client client.
59
60
  # @yieldparam config [Client::Configuration]
@@ -121,19 +122,15 @@ module Google
121
122
  ##
122
123
  # Create a new TranscoderService client object.
123
124
  #
124
- # ## Examples
125
+ # @example
125
126
  #
126
- # To create a new TranscoderService client with the default
127
- # configuration:
127
+ # # Create a client using the default configuration
128
+ # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new
128
129
  #
129
- # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new
130
- #
131
- # To create a new TranscoderService client with a custom
132
- # configuration:
133
- #
134
- # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new do |config|
135
- # config.timeout = 10.0
136
- # end
130
+ # # Create a client using a custom configuration
131
+ # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new do |config|
132
+ # config.timeout = 10.0
133
+ # end
137
134
  #
138
135
  # @yield [config] Configure the TranscoderService client.
139
136
  # @yieldparam config [Client::Configuration]
@@ -153,10 +150,9 @@ module Google
153
150
 
154
151
  # Create credentials
155
152
  credentials = @config.credentials
156
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
153
+ # Use self-signed JWT if the endpoint is unchanged from default,
157
154
  # but only if the default endpoint does not have a region prefix.
158
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
159
- @config.endpoint == Client.configure.endpoint &&
155
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
160
156
  !@config.endpoint.split(".").first.include?("-")
161
157
  credentials ||= Credentials.default scope: @config.scope,
162
158
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -235,7 +231,9 @@ module Google
235
231
  options.apply_defaults timeout: @config.rpcs.create_job.timeout,
236
232
  metadata: metadata,
237
233
  retry_policy: @config.rpcs.create_job.retry_policy
238
- options.apply_defaults metadata: @config.metadata,
234
+
235
+ options.apply_defaults timeout: @config.timeout,
236
+ metadata: @config.metadata,
239
237
  retry_policy: @config.retry_policy
240
238
 
241
239
  @transcoder_service_stub.call_rpc :create_job, request, options: options do |response, operation|
@@ -306,7 +304,9 @@ module Google
306
304
  options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
307
305
  metadata: metadata,
308
306
  retry_policy: @config.rpcs.list_jobs.retry_policy
309
- options.apply_defaults metadata: @config.metadata,
307
+
308
+ options.apply_defaults timeout: @config.timeout,
309
+ metadata: @config.metadata,
310
310
  retry_policy: @config.retry_policy
311
311
 
312
312
  @transcoder_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
@@ -374,7 +374,9 @@ module Google
374
374
  options.apply_defaults timeout: @config.rpcs.get_job.timeout,
375
375
  metadata: metadata,
376
376
  retry_policy: @config.rpcs.get_job.retry_policy
377
- options.apply_defaults metadata: @config.metadata,
377
+
378
+ options.apply_defaults timeout: @config.timeout,
379
+ metadata: @config.metadata,
378
380
  retry_policy: @config.retry_policy
379
381
 
380
382
  @transcoder_service_stub.call_rpc :get_job, request, options: options do |response, operation|
@@ -441,7 +443,9 @@ module Google
441
443
  options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
442
444
  metadata: metadata,
443
445
  retry_policy: @config.rpcs.delete_job.retry_policy
444
- options.apply_defaults metadata: @config.metadata,
446
+
447
+ options.apply_defaults timeout: @config.timeout,
448
+ metadata: @config.metadata,
445
449
  retry_policy: @config.retry_policy
446
450
 
447
451
  @transcoder_service_stub.call_rpc :delete_job, request, options: options do |response, operation|
@@ -516,7 +520,9 @@ module Google
516
520
  options.apply_defaults timeout: @config.rpcs.create_job_template.timeout,
517
521
  metadata: metadata,
518
522
  retry_policy: @config.rpcs.create_job_template.retry_policy
519
- options.apply_defaults metadata: @config.metadata,
523
+
524
+ options.apply_defaults timeout: @config.timeout,
525
+ metadata: @config.metadata,
520
526
  retry_policy: @config.retry_policy
521
527
 
522
528
  @transcoder_service_stub.call_rpc :create_job_template, request, options: options do |response, operation|
@@ -588,7 +594,9 @@ module Google
588
594
  options.apply_defaults timeout: @config.rpcs.list_job_templates.timeout,
589
595
  metadata: metadata,
590
596
  retry_policy: @config.rpcs.list_job_templates.retry_policy
591
- options.apply_defaults metadata: @config.metadata,
597
+
598
+ options.apply_defaults timeout: @config.timeout,
599
+ metadata: @config.metadata,
592
600
  retry_policy: @config.retry_policy
593
601
 
594
602
  @transcoder_service_stub.call_rpc :list_job_templates, request, options: options do |response, operation|
@@ -657,7 +665,9 @@ module Google
657
665
  options.apply_defaults timeout: @config.rpcs.get_job_template.timeout,
658
666
  metadata: metadata,
659
667
  retry_policy: @config.rpcs.get_job_template.retry_policy
660
- options.apply_defaults metadata: @config.metadata,
668
+
669
+ options.apply_defaults timeout: @config.timeout,
670
+ metadata: @config.metadata,
661
671
  retry_policy: @config.retry_policy
662
672
 
663
673
  @transcoder_service_stub.call_rpc :get_job_template, request, options: options do |response, operation|
@@ -724,7 +734,9 @@ module Google
724
734
  options.apply_defaults timeout: @config.rpcs.delete_job_template.timeout,
725
735
  metadata: metadata,
726
736
  retry_policy: @config.rpcs.delete_job_template.retry_policy
727
- options.apply_defaults metadata: @config.metadata,
737
+
738
+ options.apply_defaults timeout: @config.timeout,
739
+ metadata: @config.metadata,
728
740
  retry_policy: @config.retry_policy
729
741
 
730
742
  @transcoder_service_stub.call_rpc :delete_job_template, request, options: options do |response, operation|
@@ -748,22 +760,21 @@ module Google
748
760
  # Configuration can be applied globally to all clients, or to a single client
749
761
  # on construction.
750
762
  #
751
- # # Examples
752
- #
753
- # To modify the global config, setting the timeout for create_job
754
- # to 20 seconds, and all remaining timeouts to 10 seconds:
755
- #
756
- # ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.configure do |config|
757
- # config.timeout = 10.0
758
- # config.rpcs.create_job.timeout = 20.0
759
- # end
760
- #
761
- # To apply the above configuration only to a new client:
762
- #
763
- # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new do |config|
764
- # config.timeout = 10.0
765
- # config.rpcs.create_job.timeout = 20.0
766
- # end
763
+ # @example
764
+ #
765
+ # # Modify the global config, setting the timeout for
766
+ # # create_job to 20 seconds,
767
+ # # and all remaining timeouts to 10 seconds.
768
+ # ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.configure do |config|
769
+ # config.timeout = 10.0
770
+ # config.rpcs.create_job.timeout = 20.0
771
+ # end
772
+ #
773
+ # # Apply the above configuration only to a new client.
774
+ # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new do |config|
775
+ # config.timeout = 10.0
776
+ # config.rpcs.create_job.timeout = 20.0
777
+ # end
767
778
  #
768
779
  # @!attribute [rw] endpoint
769
780
  # The hostname or hostname:port of the service endpoint.
@@ -22,7 +22,7 @@ module Google
22
22
  module Video
23
23
  module Transcoder
24
24
  module V1beta1
25
- VERSION = "0.2.2"
25
+ VERSION = "0.3.0"
26
26
  end
27
27
  end
28
28
  end
@@ -31,8 +31,8 @@ module Google
31
31
  # @return [::String]
32
32
  # Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
33
33
  # `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
34
- # URI of the media. It must be stored in Cloud Storage. For example,
35
- # `gs://bucket/inputs/file.mp4`.
34
+ # URI of the media. Input files must be at least 5 seconds in duration and
35
+ # stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
36
36
  # @!attribute [rw] output_uri
37
37
  # @return [::String]
38
38
  # Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
@@ -58,6 +58,7 @@ module Google
58
58
  # @!attribute [r] origin_uri
59
59
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Job::OriginUri]
60
60
  # Output only. The origin URI.
61
+ # <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
61
62
  # @!attribute [r] state
62
63
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Job::ProcessingState]
63
64
  # Output only. The current state of the job.
@@ -65,6 +66,7 @@ module Google
65
66
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Progress]
66
67
  # Output only. Estimated fractional progress, from `0` to `1` for each
67
68
  # step.
69
+ # <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
68
70
  # @!attribute [r] failure_reason
69
71
  # @return [::String]
70
72
  # Output only. A description of the reason for the failure. This property is
@@ -73,6 +75,7 @@ module Google
73
75
  # @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::FailureDetail>]
74
76
  # Output only. List of failure details. This property may contain additional
75
77
  # information about the failure when `failure_reason` is present.
78
+ # <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
76
79
  # @!attribute [r] create_time
77
80
  # @return [::Google::Protobuf::Timestamp]
78
81
  # Output only. The time the job was created.
@@ -82,6 +85,11 @@ module Google
82
85
  # @!attribute [r] end_time
83
86
  # @return [::Google::Protobuf::Timestamp]
84
87
  # Output only. The time the transcoding finished.
88
+ # @!attribute [rw] ttl_after_completion_days
89
+ # @return [::Integer]
90
+ # Job time to live value in days, which will be effective after job
91
+ # completion. Job should be deleted automatically after the given TTL. Enter
92
+ # a value between 1 and 90. The default is 30.
85
93
  class Job
86
94
  include ::Google::Protobuf::MessageExts
87
95
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -89,8 +97,8 @@ module Google
89
97
  # The origin URI.
90
98
  # @!attribute [rw] hls
91
99
  # @return [::String]
92
- # HLS master manifest URI. If multiple HLS master manifests are created
93
- # only first one is listed.
100
+ # HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
101
+ # If multiple HLS manifests are created, only the first one is listed.
94
102
  # @!attribute [rw] dash
95
103
  # @return [::String]
96
104
  # Dash manifest URI. If multiple Dash manifests are created, only the first
@@ -179,9 +187,9 @@ module Google
179
187
  # mapping and edit lists.
180
188
  # @!attribute [rw] uri
181
189
  # @return [::String]
182
- # URI of the media. It must be stored in Cloud Storage. Example
183
- # `gs://bucket/inputs/file.mp4`.
184
- # If empty the value will be populated from `Job.input_uri`.
190
+ # URI of the media. Input files must be at least 5 seconds in duration and
191
+ # stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
192
+ # If empty, the value will be populated from `Job.input_uri`.
185
193
  # @!attribute [rw] preprocessing_config
186
194
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::PreprocessingConfig]
187
195
  # Preprocessing configurations.
@@ -345,10 +353,16 @@ module Google
345
353
  # from 0 before the extension, such as `"sprite_sheet0000000123.jpeg"`.
346
354
  # @!attribute [rw] sprite_width_pixels
347
355
  # @return [::Integer]
348
- # Required. The width of sprite in pixels. Must be an even integer.
356
+ # Required. The width of sprite in pixels. Must be an even integer. To preserve the
357
+ # source aspect ratio, set the {::Google::Cloud::Video::Transcoder::V1beta1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels} field or
358
+ # the {::Google::Cloud::Video::Transcoder::V1beta1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels} field, but not both (the API will
359
+ # automatically calculate the missing field).
349
360
  # @!attribute [rw] sprite_height_pixels
350
361
  # @return [::Integer]
351
- # Required. The height of sprite in pixels. Must be an even integer.
362
+ # Required. The height of sprite in pixels. Must be an even integer. To preserve the
363
+ # source aspect ratio, set the {::Google::Cloud::Video::Transcoder::V1beta1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels} field or
364
+ # the {::Google::Cloud::Video::Transcoder::V1beta1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels} field, but not both (the API will
365
+ # automatically calculate the missing field).
352
366
  # @!attribute [rw] column_count
353
367
  # @return [::Integer]
354
368
  # The maximum number of sprites per row in a sprite sheet. The default is 0,
@@ -376,6 +390,12 @@ module Google
376
390
  # @return [::Google::Protobuf::Duration]
377
391
  # Starting from `0s`, create sprites at regular intervals. Specify the
378
392
  # interval value in seconds.
393
+ # @!attribute [rw] quality
394
+ # @return [::Integer]
395
+ # The quality of the generated sprite sheet. Enter a value between 1
396
+ # and 100, where 1 is the lowest quality and 100 is the highest quality.
397
+ # The default is 100. A high quality value corresponds to a low image data
398
+ # compression ratio.
379
399
  class SpriteSheet
380
400
  include ::Google::Protobuf::MessageExts
381
401
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -408,8 +428,8 @@ module Google
408
428
  # Overlaid jpeg image.
409
429
  # @!attribute [rw] uri
410
430
  # @return [::String]
411
- # Required. URI of the image in Cloud Storage. For example,
412
- # `gs://bucket/inputs/image.jpeg`.
431
+ # Required. URI of the JPEG image in Cloud Storage. For example,
432
+ # `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
413
433
  # @!attribute [rw] resolution
414
434
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Overlay::NormalizedCoordinate]
415
435
  # Normalized image resolution, based on output video resolution. Valid
@@ -418,8 +438,8 @@ module Google
418
438
  # both `x` and `y` to `0.0`.
419
439
  # @!attribute [rw] alpha
420
440
  # @return [::Float]
421
- # Target image opacity. Valid values: `1` (solid, default),
422
- # `0` (transparent).
441
+ # Target image opacity. Valid values are from `1.0` (solid, default) to
442
+ # `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
423
443
  class Image
424
444
  include ::Google::Protobuf::MessageExts
425
445
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -430,7 +450,9 @@ module Google
430
450
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Overlay::NormalizedCoordinate]
431
451
  # Normalized coordinates based on output video resolution. Valid
432
452
  # values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
433
- # object.
453
+ # object. For example, use the x and y coordinates \\{0,0} to position the
454
+ # top-left corner of the overlay animation in the top-left corner of the
455
+ # output video.
434
456
  # @!attribute [rw] start_time_offset
435
457
  # @return [::Google::Protobuf::Duration]
436
458
  # The time to start displaying the overlay object, in seconds. Default: 0
@@ -447,7 +469,9 @@ module Google
447
469
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Overlay::NormalizedCoordinate]
448
470
  # Normalized coordinates based on output video resolution. Valid
449
471
  # values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
450
- # object.
472
+ # object. For example, use the x and y coordinates \\{0,0} to position the
473
+ # top-left corner of the overlay animation in the top-left corner of the
474
+ # output video.
451
475
  # @!attribute [rw] start_time_offset
452
476
  # @return [::Google::Protobuf::Duration]
453
477
  # The time to start the fade animation, in seconds. Default: 0
@@ -512,6 +536,12 @@ module Google
512
536
  # @!attribute [rw] audio
513
537
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::PreprocessingConfig::Audio]
514
538
  # Audio preprocessing configuration.
539
+ # @!attribute [rw] crop
540
+ # @return [::Google::Cloud::Video::Transcoder::V1beta1::PreprocessingConfig::Crop]
541
+ # Specify the video cropping configuration.
542
+ # @!attribute [rw] pad
543
+ # @return [::Google::Cloud::Video::Transcoder::V1beta1::PreprocessingConfig::Pad]
544
+ # Specify the video pad filter configuration.
515
545
  class PreprocessingConfig
516
546
  include ::Google::Protobuf::MessageExts
517
547
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -572,12 +602,16 @@ module Google
572
602
  # @!attribute [rw] lufs
573
603
  # @return [::Float]
574
604
  # Specify audio loudness normalization in loudness units relative to full
575
- # scale (LUFS). Enter a value between -24 and 0, where -24 is the Advanced
576
- # Television Systems Committee (ATSC A/85), -23 is the EU R128 broadcast
577
- # standard, -19 is the prior standard for online mono audio, -18 is the
578
- # ReplayGain standard, -16 is the prior standard for stereo audio, -14 is
579
- # the new online audio standard recommended by Spotify, as well as Amazon
580
- # Echo, and 0 disables normalization. The default is 0.
605
+ # scale (LUFS). Enter a value between -24 and 0 (the default), where:
606
+ #
607
+ # * -24 is the Advanced Television Systems Committee (ATSC A/85) standard
608
+ # * -23 is the EU R128 broadcast standard
609
+ # * -19 is the prior standard for online mono audio
610
+ # * -18 is the ReplayGain standard
611
+ # * -16 is the prior standard for stereo audio
612
+ # * -14 is the new online audio standard recommended by Spotify, as well
613
+ # as Amazon Echo
614
+ # * 0 disables normalization
581
615
  # @!attribute [rw] high_boost
582
616
  # @return [::Boolean]
583
617
  # Enable boosting high frequency components. The default is `false`.
@@ -588,31 +622,82 @@ module Google
588
622
  include ::Google::Protobuf::MessageExts
589
623
  extend ::Google::Protobuf::MessageExts::ClassMethods
590
624
  end
625
+
626
+ # Video cropping configuration for the input video. The cropped input video
627
+ # is scaled to match the output resolution.
628
+ # @!attribute [rw] top_pixels
629
+ # @return [::Integer]
630
+ # The number of pixels to crop from the top. The default is 0.
631
+ # @!attribute [rw] bottom_pixels
632
+ # @return [::Integer]
633
+ # The number of pixels to crop from the bottom. The default is 0.
634
+ # @!attribute [rw] left_pixels
635
+ # @return [::Integer]
636
+ # The number of pixels to crop from the left. The default is 0.
637
+ # @!attribute [rw] right_pixels
638
+ # @return [::Integer]
639
+ # The number of pixels to crop from the right. The default is 0.
640
+ class Crop
641
+ include ::Google::Protobuf::MessageExts
642
+ extend ::Google::Protobuf::MessageExts::ClassMethods
643
+ end
644
+
645
+ # Pad filter configuration for the input video. The padded input video
646
+ # is scaled after padding with black to match the output resolution.
647
+ # @!attribute [rw] top_pixels
648
+ # @return [::Integer]
649
+ # The number of pixels to add to the top. The default is 0.
650
+ # @!attribute [rw] bottom_pixels
651
+ # @return [::Integer]
652
+ # The number of pixels to add to the bottom. The default is 0.
653
+ # @!attribute [rw] left_pixels
654
+ # @return [::Integer]
655
+ # The number of pixels to add to the left. The default is 0.
656
+ # @!attribute [rw] right_pixels
657
+ # @return [::Integer]
658
+ # The number of pixels to add to the right. The default is 0.
659
+ class Pad
660
+ include ::Google::Protobuf::MessageExts
661
+ extend ::Google::Protobuf::MessageExts::ClassMethods
662
+ end
591
663
  end
592
664
 
593
665
  # Video stream resource.
594
666
  # @!attribute [rw] codec
595
667
  # @return [::String]
596
- # Codec type. The default is `"h264"`.
668
+ # Codec type. The following codecs are supported:
597
669
  #
598
- # Supported codecs:
599
- # - 'h264'
600
- # - 'h265'
601
- # - 'vp9'
670
+ # * `h264` (default)
671
+ # * `h265`
672
+ # * `vp9`
602
673
  # @!attribute [rw] profile
603
674
  # @return [::String]
604
- # Enforce specified codec profile. The default is `"high"`.
675
+ # Enforces the specified codec profile. The following profiles are supported:
676
+ #
677
+ # * `baseline`
678
+ # * `main`
679
+ # * `high` (default)
605
680
  #
606
- # Supported codec profiles:
607
- # - 'baseline'
608
- # - 'main'
609
- # - 'high'
681
+ # The available options are
682
+ # <a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Profile"
683
+ # class="external">FFmpeg-compatible</a>. Note that certain values for this
684
+ # field may cause the transcoder to override other fields you set in the
685
+ # `VideoStream` message.
610
686
  # @!attribute [rw] tune
611
687
  # @return [::String]
612
- # Enforce specified codec tune.
688
+ # Enforces the specified codec tune. The available options are
689
+ # <a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Tune"
690
+ # class="external">FFmpeg-compatible</a>. Note that certain values for this
691
+ # field may cause the transcoder to override other fields you set in the
692
+ # `VideoStream` message.
613
693
  # @!attribute [rw] preset
614
694
  # @return [::String]
615
- # Enforce specified codec preset. The default is `"veryfast"`.
695
+ # Enforces the specified codec preset. The default is `veryfast`. The
696
+ # available options are
697
+ # <a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Preset"
698
+ # class="external">FFmpeg-compatible</a>. Note that certain values for this
699
+ # field may cause the transcoder to override other fields you set in the
700
+ # `VideoStream` message.
616
701
  # @!attribute [rw] height_pixels
617
702
  # @return [::Integer]
618
703
  # The height of the video in pixels. Must be an even integer.
@@ -639,7 +724,9 @@ module Google
639
724
  # - 'yuv444p12' 12-bit HDR pixel format.
640
725
  # @!attribute [rw] bitrate_bps
641
726
  # @return [::Integer]
642
- # Required. The video bitrate in bits per second. Must be between 1 and 1,000,000,000.
727
+ # Required. The video bitrate in bits per second. The minimum value is 1,000.
728
+ # The maximum value for H264/H265 is 800,000,000. The maximum value for VP9
729
+ # is 480,000,000.
643
730
  # @!attribute [rw] rate_control_mode
644
731
  # @return [::String]
645
732
  # Specify the `rate_control_mode`. The default is `"vbr"`.
@@ -675,7 +762,9 @@ module Google
675
762
  # @!attribute [rw] gop_duration
676
763
  # @return [::Google::Protobuf::Duration]
677
764
  # Select the GOP size based on the specified duration. The default is
678
- # `"3s"`.
765
+ # `"3s"`. Note that `gopDuration` must be less than or equal to
766
+ # [`segmentDuration`](#SegmentSettings), and
767
+ # [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
679
768
  # @!attribute [rw] entropy_coder
680
769
  # @return [::String]
681
770
  # The entropy coder to use. The default is `"cabac"`.
@@ -696,28 +785,10 @@ module Google
696
785
  # Required. The target video frame rate in frames per second (FPS). Must be less than
697
786
  # or equal to 120. Will default to the input frame rate if larger than the
698
787
  # input frame rate. The API will generate an output FPS that is divisible by
699
- # the input FPS, and smaller or equal to the target FPS.
700
- #
701
- # The following table shows the computed video FPS given the target FPS (in
702
- # parenthesis) and input FPS (in the first column):
703
- # ```
704
- # | | (30) | (60) | (25) | (50) |
705
- # |--------|--------|--------|------|------|
706
- # | 240 | Fail | Fail | Fail | Fail |
707
- # | 120 | 30 | 60 | 20 | 30 |
708
- # | 100 | 25 | 50 | 20 | 30 |
709
- # | 50 | 25 | 50 | 20 | 30 |
710
- # | 60 | 30 | 60 | 20 | 30 |
711
- # | 59.94 | 29.97 | 59.94 | 20 | 30 |
712
- # | 48 | 24 | 48 | 20 | 30 |
713
- # | 30 | 30 | 30 | 20 | 30 |
714
- # | 25 | 25 | 25 | 20 | 30 |
715
- # | 24 | 24 | 24 | 20 | 30 |
716
- # | 23.976 | 23.976 | 23.976 | 20 | 30 |
717
- # | 15 | 15 | 15 | 20 | 30 |
718
- # | 12 | 12 | 12 | 20 | 30 |
719
- # | 10 | 10 | 10 | 20 | 30 |
720
- # ```
788
+ # the input FPS, and smaller or equal to the target FPS. See
789
+ # [Calculate frame
790
+ # rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
791
+ # more information.
721
792
  # @!attribute [rw] aq_strength
722
793
  # @return [::Float]
723
794
  # Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and
@@ -865,7 +936,10 @@ module Google
865
936
  # Segment settings for `"ts"`, `"fmp4"` and `"vtt"`.
866
937
  # @!attribute [rw] segment_duration
867
938
  # @return [::Google::Protobuf::Duration]
868
- # Duration of the segments in seconds. The default is `"6.0s"`.
939
+ # Duration of the segments in seconds. The default is `"6.0s"`. Note that
940
+ # `segmentDuration` must be greater than or equal to
941
+ # [`gopDuration`](#videostream), and `segmentDuration` must be divisible by
942
+ # [`gopDuration`](#videostream).
869
943
  # @!attribute [rw] individual_segments
870
944
  # @return [::Boolean]
871
945
  # Required. Create an individual segment file. The default is `false`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video-transcoder-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a