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 +4 -4
- data/lib/google/cloud/video/transcoder/v1beta1/resources_pb.rb +18 -0
- data/lib/google/cloud/video/transcoder/v1beta1/transcoder_service/client.rb +54 -43
- data/lib/google/cloud/video/transcoder/v1beta1/version.rb +1 -1
- data/proto_docs/google/cloud/video/transcoder/v1beta1/resources.rb +132 -58
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82afcbdeaf7f25ad39e1370f03322f72246732d129e6d7d6674c8fee50defda9
|
4
|
+
data.tar.gz: b9072943d875039b18e537a38454b5dbc916c2f22e7f15853299a0f3411eae19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
#
|
50
|
+
# @deprecated This service is deprecated and may be removed in the next major version update.
|
51
51
|
#
|
52
|
-
#
|
52
|
+
# @example
|
53
53
|
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
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
|
-
#
|
125
|
+
# @example
|
125
126
|
#
|
126
|
-
#
|
127
|
-
#
|
127
|
+
# # Create a client using the default configuration
|
128
|
+
# client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new
|
128
129
|
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
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
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
#
|
752
|
-
#
|
753
|
-
#
|
754
|
-
# to 20 seconds,
|
755
|
-
#
|
756
|
-
#
|
757
|
-
#
|
758
|
-
#
|
759
|
-
#
|
760
|
-
#
|
761
|
-
#
|
762
|
-
#
|
763
|
-
#
|
764
|
-
#
|
765
|
-
#
|
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.
|
@@ -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.
|
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
|
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.
|
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
|
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
|
576
|
-
#
|
577
|
-
#
|
578
|
-
#
|
579
|
-
#
|
580
|
-
#
|
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
|
668
|
+
# Codec type. The following codecs are supported:
|
597
669
|
#
|
598
|
-
#
|
599
|
-
#
|
600
|
-
#
|
601
|
-
# - 'vp9'
|
670
|
+
# * `h264` (default)
|
671
|
+
# * `h265`
|
672
|
+
# * `vp9`
|
602
673
|
# @!attribute [rw] profile
|
603
674
|
# @return [::String]
|
604
|
-
#
|
675
|
+
# Enforces the specified codec profile. The following profiles are supported:
|
676
|
+
#
|
677
|
+
# * `baseline`
|
678
|
+
# * `main`
|
679
|
+
# * `high` (default)
|
605
680
|
#
|
606
|
-
#
|
607
|
-
#
|
608
|
-
# -
|
609
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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.
|
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
|
-
#
|
702
|
-
#
|
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.
|
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-
|
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.
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|