|
19 | 19 |
|
20 | 20 |
|
21 | 21 | from google.protobuf import duration_pb2 as duration # type: ignore
|
| 22 | +from google.protobuf import timestamp_pb2 as timestamp # type: ignore |
22 | 23 |
|
23 | 24 |
|
24 | 25 | __protobuf__ = proto.module(
|
@@ -99,6 +100,14 @@ class Job(proto.Message):
|
99 | 100 | Output only. List of failure details. This property may
|
100 | 101 | contain additional information about the failure when
|
101 | 102 | ``failure_reason`` is present.
|
| 103 | + create_time (~.timestamp.Timestamp): |
| 104 | + Output only. The time the job was created. |
| 105 | + start_time (~.timestamp.Timestamp): |
| 106 | + Output only. The time the transcoding |
| 107 | + started. |
| 108 | + end_time (~.timestamp.Timestamp): |
| 109 | + Output only. The time the transcoding |
| 110 | + finished. |
102 | 111 | """
|
103 | 112 |
|
104 | 113 | class ProcessingState(proto.Enum):
|
@@ -152,6 +161,12 @@ class OriginUri(proto.Message):
|
152 | 161 | proto.MESSAGE, number=11, message="FailureDetail",
|
153 | 162 | )
|
154 | 163 |
|
| 164 | + create_time = proto.Field(proto.MESSAGE, number=12, message=timestamp.Timestamp,) |
| 165 | + |
| 166 | + start_time = proto.Field(proto.MESSAGE, number=13, message=timestamp.Timestamp,) |
| 167 | + |
| 168 | + end_time = proto.Field(proto.MESSAGE, number=14, message=timestamp.Timestamp,) |
| 169 | + |
155 | 170 |
|
156 | 171 | class JobTemplate(proto.Message):
|
157 | 172 | r"""Transcoding job template resource.
|
@@ -387,9 +402,9 @@ class Manifest(proto.Message):
|
387 | 402 |
|
388 | 403 | Attributes:
|
389 | 404 | file_name (str):
|
390 |
| - The name of the generated file. The default is ``"master"`` |
391 |
| - with the extension suffix corresponding to the |
392 |
| - ``Manifest.type``. |
| 405 | + The name of the generated file. The default is |
| 406 | + ``"manifest"`` with the extension suffix corresponding to |
| 407 | + the ``Manifest.type``. |
393 | 408 | type_ (~.resources.Manifest.ManifestType):
|
394 | 409 | Required. Type of the manifest, can be "HLS"
|
395 | 410 | or "DASH".
|
@@ -811,11 +826,17 @@ class VideoStream(proto.Message):
|
811 | 826 | Enforce specified codec preset. The default is
|
812 | 827 | ``"veryfast"``.
|
813 | 828 | height_pixels (int):
|
814 |
| - Required. The height of video in pixels. Must |
815 |
| - be an even integer. |
| 829 | + The height of the video in pixels. Must be an |
| 830 | + even integer. When not specified, the height is |
| 831 | + adjusted to match the specified width and input |
| 832 | + aspect ratio. If both are omitted, the input |
| 833 | + height is used. |
816 | 834 | width_pixels (int):
|
817 |
| - Required. The width of video in pixels. Must |
818 |
| - be an even integer. |
| 835 | + The width of the video in pixels. Must be an |
| 836 | + even integer. When not specified, the width is |
| 837 | + adjusted to match the specified height and input |
| 838 | + aspect ratio. If both are omitted, the input |
| 839 | + width is used. |
819 | 840 | pixel_format (str):
|
820 | 841 | Pixel format to use. The default is ``"yuv420p"``.
|
821 | 842 |
|
@@ -880,10 +901,26 @@ class VideoStream(proto.Message):
|
880 | 901 | equal to zero. Must be less than
|
881 | 902 | ``VideoStream.gop_frame_count`` if set. The default is 0.
|
882 | 903 | frame_rate (float):
|
883 |
| - Required. The video frame rate in frames per |
884 |
| - second. Must be less than or equal to 120. Will |
885 |
| - default to the input frame rate if larger than |
886 |
| - the input frame rate. |
| 904 | + Required. The target video frame rate in frames per second |
| 905 | + (FPS). Must be less than or equal to 120. Will default to |
| 906 | + the input frame rate if larger than the input frame rate. |
| 907 | + The API will generate an output FPS that is divisible by the |
| 908 | + input FPS, and smaller or equal to the target FPS. |
| 909 | +
|
| 910 | + The following table shows the computed video FPS given the |
| 911 | + target FPS (in parenthesis) and input FPS (in the first |
| 912 | + column): |
| 913 | +
|
| 914 | + \| \| (30) \| (60) \| (25) \| (50) \| |
| 915 | + \|--------|--------|--------|------|------\| \| 240 \| Fail |
| 916 | + \| Fail \| Fail \| Fail \| \| 120 \| 30 \| 60 \| 20 \| 30 \| |
| 917 | + \| 100 \| 25 \| 50 \| 20 \| 30 \| \| 50 \| 25 \| 50 \| 20 \| |
| 918 | + 30 \| \| 60 \| 30 \| 60 \| 20 \| 30 \| \| 59.94 \| 29.97 \| |
| 919 | + 59.94 \| 20 \| 30 \| \| 48 \| 24 \| 48 \| 20 \| 30 \| \| 30 |
| 920 | + \| 30 \| 30 \| 20 \| 30 \| \| 25 \| 25 \| 25 \| 20 \| 30 \| |
| 921 | + \| 24 \| 24 \| 24 \| 20 \| 30 \| \| 23.976 \| 23.976 \| |
| 922 | + 23.976 \| 20 \| 30 \| \| 15 \| 15 \| 15 \| 20 \| 30 \| \| 12 |
| 923 | + \| 12 \| 12 \| 20 \| 30 \| \| 10 \| 10 \| 10 \| 20 \| 30 \| |
887 | 924 | aq_strength (float):
|
888 | 925 | Specify the intensity of the adaptive
|
889 | 926 | quantizer (AQ). Must be between 0 and 1, where 0
|
|
0 commit comments