Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit054339f

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat!: update proto files, add create_time, start_time and end_time, height_pixels and width_pixels become optional
PiperOrigin-RevId: 334639492
1 parente86eab6 commit054339f

File tree

3 files changed

+47
-10
lines changed

3 files changed

+47
-10
lines changed

‎google/cloud/video/transcoder/v1beta1/BUILD.bazel‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ proto_library(
3030
"//google/api:field_behavior_proto",
3131
"//google/api:resource_proto",
3232
"@com_google_protobuf//:duration_proto",
33+
"@com_google_protobuf//:timestamp_proto",
3334
"@com_google_protobuf//:empty_proto",
3435
],
3536
)
@@ -129,6 +130,7 @@ go_gapic_library(
129130
deps= [
130131
":transcoder_go_proto",
131132
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
133+
"@io_bazel_rules_go//proto/wkt:timestamp_go_proto",
132134
],
133135
)
134136

‎google/cloud/video/transcoder/v1beta1/resources.proto‎

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package google.cloud.video.transcoder.v1beta1;
1919
import"google/api/field_behavior.proto";
2020
import"google/api/resource.proto";
2121
import"google/protobuf/duration.proto";
22+
import"google/protobuf/timestamp.proto";
2223

2324
optiongo_package="google.golang.org/genproto/googleapis/cloud/video/transcoder/v1beta1;transcoder";
2425
optionjava_multiple_files=true;
@@ -115,6 +116,15 @@ message Job {
115116
// Output only. List of failure details. This property may contain additional
116117
// information about the failure when `failure_reason` is present.
117118
repeatedFailureDetailfailure_details=11 [(google.api.field_behavior) =OUTPUT_ONLY];
119+
120+
// Output only. The time the job was created.
121+
google.protobuf.Timestampcreate_time=12 [(google.api.field_behavior) =OUTPUT_ONLY];
122+
123+
// Output only. The time the transcoding started.
124+
google.protobuf.Timestampstart_time=13 [(google.api.field_behavior) =OUTPUT_ONLY];
125+
126+
// Output only. The time the transcoding finished.
127+
google.protobuf.Timestampend_time=14 [(google.api.field_behavior) =OUTPUT_ONLY];
118128
}
119129

120130
// Transcoding job template resource.
@@ -283,7 +293,7 @@ message Manifest {
283293
DASH=2;
284294
}
285295

286-
// The name of the generated file. The default is `"master"` with the
296+
// The name of the generated file. The default is `"manifest"` with the
287297
// extension suffix corresponding to the `Manifest.type`.
288298
stringfile_name=1;
289299

@@ -556,11 +566,15 @@ message VideoStream {
556566
// Enforce specified codec preset. The default is `"veryfast"`.
557567
stringpreset=4;
558568

559-
// Required. The height of video in pixels. Must be an even integer.
560-
int32height_pixels=5 [(google.api.field_behavior) =REQUIRED];
569+
// The height of the video in pixels. Must be an even integer.
570+
// When not specified, the height is adjusted to match the specified width and
571+
// input aspect ratio. If both are omitted, the input height is used.
572+
int32height_pixels=5;
561573

562-
// Required. The width of video in pixels. Must be an even integer.
563-
int32width_pixels=6 [(google.api.field_behavior) =REQUIRED];
574+
// The width of the video in pixels. Must be an even integer.
575+
// When not specified, the width is adjusted to match the specified height and
576+
// input aspect ratio. If both are omitted, the input width is used.
577+
int32width_pixels=6;
564578

565579
// Pixel format to use. The default is `"yuv420p"`.
566580
//
@@ -633,9 +647,30 @@ message VideoStream {
633647
// Must be less than `VideoStream.gop_frame_count` if set. The default is 0.
634648
int32b_frame_count=19;
635649

636-
// Required. The video frame rate in frames per second. Must be less than or equal to
637-
// 120. Will default to the input frame rate if larger than the input frame
638-
// rate.
650+
// Required. The target video frame rate in frames per second (FPS). Must be less than
651+
// or equal to 120. Will default to the input frame rate if larger than the
652+
// input frame rate. The API will generate an output FPS that is divisible by
653+
// the input FPS, and smaller or equal to the target FPS.
654+
//
655+
// The following table shows the computed video FPS given the target FPS (in
656+
// parenthesis) and input FPS (in the first column):
657+
//
658+
// | | (30) | (60) | (25) | (50) |
659+
// |--------|--------|--------|------|------|
660+
// | 240 | Fail | Fail | Fail | Fail |
661+
// | 120 | 30 | 60 | 20 | 30 |
662+
// | 100 | 25 | 50 | 20 | 30 |
663+
// | 50 | 25 | 50 | 20 | 30 |
664+
// | 60 | 30 | 60 | 20 | 30 |
665+
// | 59.94 | 29.97 | 59.94 | 20 | 30 |
666+
// | 48 | 24 | 48 | 20 | 30 |
667+
// | 30 | 30 | 30 | 20 | 30 |
668+
// | 25 | 25 | 25 | 20 | 30 |
669+
// | 24 | 24 | 24 | 20 | 30 |
670+
// | 23.976 | 23.976 | 23.976 | 20 | 30 |
671+
// | 15 | 15 | 15 | 20 | 30 |
672+
// | 12 | 12 | 12 | 20 | 30 |
673+
// | 10 | 10 | 10 | 20 | 30 |
639674
doubleframe_rate=20 [(google.api.field_behavior) =REQUIRED];
640675

641676
// Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and

‎google/cloud/video/transcoder/v1beta1/services.proto‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ message CreateJobTemplateRequest {
189189
// Required. The ID to use for the job template, which will become the final component
190190
// of the job template's resource name.
191191
//
192-
// This value should be 4-63 characters, and valid characters
193-
//are `/[a-zA-Z0-9_-_]/`.
192+
// This value should be 4-63 characters, and valid characters must match the
193+
//regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
194194
stringjob_template_id=3 [(google.api.field_behavior) =REQUIRED];
195195
}
196196

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp