NAME
Google::Cloud::Video::Transcoder::V1::Resources - Compiled Protocol Buffers messages for google/cloud/video/transcoder/v1/resources.proto
SYNOPSIS
use Google::Cloud::Video::Transcoder::V1::Resources;
my $msg = Google::Cloud::Video::Transcoder::V1::Resources::Job->new({
name => $name,
input_uri => $input_uri,
output_uri => $output_uri,
template_id => $template_id,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Video::Transcoder::V1::Resources::Job->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/video/transcoder/v1/resources.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Video::Transcoder::V1::Resources::Job
Transcoding job resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the job. Format: `projects/{project_number}/locations/{location}/jobs/{job}`
$msg->input_uri()/$msg->input_uri($value)Type:
StringInput only. Specify the `input_uri` to populate empty `uri` fields in each element of `Job.config.inputs` or `JobTemplate.config.inputs` when using template. URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
$msg->output_uri()/$msg->output_uri($value)Type:
StringInput only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or `JobTemplate.config.output.uri` when using template. URI for the output file(s). For example, `gs://my-bucket/outputs/`. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
$msg->template_id()/$msg->template_id($value)Type:
StringInput only. Specify the `template_id` to use for populating `Job.config`. The default is `preset/web-hd`, which is the only supported preset.
User defined JobTemplate: `{job_template_id}`
$msg->config()/$msg->config($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::JobConfig)The configuration for this job.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Video::Transcoder::V1::Job::ProcessingState)Output only. The current state of the job.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the job was created.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the transcoding started.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the transcoding finished.
$msg->ttl_after_completion_days()/$msg->ttl_after_completion_days($value)Type:
Int32Job time to live value in days, which will be effective after job completion. Job should be deleted automatically after the given TTL. Enter a value between 1 and 90. The default is 30.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Job::LabelsEntry)The labels associated with this job. You can use these to organize and group your jobs.
$msg->error()/$msg->error($value)Type:
Message(Google::Rpc::Status::Status)Output only. An error object that describes the reason for the failure. This property is always present when [ProcessingState][google.cloud.video.transcoder.v1.Job.ProcessingState] is `FAILED`.
$msg->mode()/$msg->mode($value)Type:
Enum(Google::Cloud::Video::Transcoder::V1::Job::ProcessingMode)The processing mode of the job. The default is `PROCESSING_MODE_INTERACTIVE`.
$msg->batch_mode_priority()/$msg->batch_mode_priority($value)Type:
Int32The processing priority of a batch job. This field can only be set for batch mode jobs. The default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job.
$msg->optimization()/$msg->optimization($value)Type:
Enum(Google::Cloud::Video::Transcoder::V1::Job::OptimizationStrategy)Optional. The optimization strategy of the job. The default is `AUTODETECT`.
$msg->fill_content_gaps()/$msg->fill_content_gaps($value)Type:
BoolOptional. Insert silence and duplicate frames when timestamp gaps are detected in a given stream.
Enum: Job::ProcessingState
PROCESSING_STATE_UNSPECIFIED=>0PENDING=>1RUNNING=>2SUCCEEDED=>3FAILED=>4
Enum: Job::ProcessingMode
PROCESSING_MODE_UNSPECIFIED=>0PROCESSING_MODE_INTERACTIVE=>1PROCESSING_MODE_BATCH=>2
Enum: Job::OptimizationStrategy
OPTIMIZATION_STRATEGY_UNSPECIFIED=>0AUTODETECT=>1DISABLED=>2
Google::Cloud::Video::Transcoder::V1::Resources::JobTemplate
Transcoding job template resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the job template. Format: `projects/{project_number}/locations/{location}/jobTemplates/{job_template}`
$msg->config()/$msg->config($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::JobConfig)The configuration for this template.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::JobTemplate::LabelsEntry)The labels associated with this job template. You can use these to organize and group your job templates.
Google::Cloud::Video::Transcoder::V1::Resources::JobConfig
Job configuration
Inherits from Protobuf::Message.
Accessors
$msg->inputs()/$msg->inputs($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Input)List of input assets stored in Cloud Storage.
$msg->edit_list()/$msg->edit_list($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::EditAtom)List of edit atoms. Defines the ultimate timeline of the resulting file or manifest.
$msg->elementary_streams()/$msg->elementary_streams($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::ElementaryStream)List of elementary streams.
$msg->mux_streams()/$msg->mux_streams($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::MuxStream)List of multiplexing settings for output streams.
$msg->manifests()/$msg->manifests($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Manifest)List of output manifests.
$msg->output()/$msg->output($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Output)Output configuration.
$msg->ad_breaks()/$msg->ad_breaks($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::AdBreak)List of ad breaks. Specifies where to insert ad break tags in the output manifests.
$msg->pubsub_destination()/$msg->pubsub_destination($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::PubsubDestination)Destination on Pub/Sub.
$msg->sprite_sheets()/$msg->sprite_sheets($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::SpriteSheet)List of output sprite sheets. Spritesheets require at least one VideoStream in the Jobconfig.
$msg->overlays()/$msg->overlays($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Overlay)List of overlays on the output video, in descending Z-order.
$msg->encryptions()/$msg->encryptions($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Encryption)List of encryption configurations for the content. Each configuration has an ID. Specify this ID in the [MuxStream.encryption_id][google.cloud.video.transcoder.v1.MuxStream.encryption_id] field to indicate the configuration to use for that `MuxStream` output.
Google::Cloud::Video::Transcoder::V1::Resources::Input
Input asset.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringA unique key for this input. Must be specified when using advanced mapping and edit lists.
$msg->uri()/$msg->uri($value)Type:
StringURI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). If empty, the value is populated from [Job.input_uri][google.cloud.video.transcoder.v1.Job.input_uri]. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
$msg->preprocessing_config()/$msg->preprocessing_config($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig)Preprocessing configurations.
$msg->attributes()/$msg->attributes($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::InputAttributes)Optional. Input Attributes.
Google::Cloud::Video::Transcoder::V1::Resources::Output
Location of output file(s) in a Cloud Storage bucket.
Inherits from Protobuf::Message.
Accessors
$msg->uri()/$msg->uri($value)Type:
StringURI for the output file(s). For example, `gs://my-bucket/outputs/`. Must be a directory and not a top-level bucket. If empty, the value is populated from [Job.output_uri][google.cloud.video.transcoder.v1.Job.output_uri]. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
Google::Cloud::Video::Transcoder::V1::Resources::EditAtom
Edit atom.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringA unique key for this atom. Must be specified when using advanced mapping.
$msg->inputs()/$msg->inputs($value)Type:
StringList of [Input.key][google.cloud.video.transcoder.v1.Input.key] values identifying files that should be used in this atom. The listed `inputs` must have the same timeline.
$msg->end_time_offset()/$msg->end_time_offset($value)Type:
Message(Google::Protobuf::Duration::Duration)End time in seconds for the atom, relative to the input file timeline. When `end_time_offset` is not specified, the `inputs` are used until the end of the atom.
$msg->start_time_offset()/$msg->start_time_offset($value)Type:
Message(Google::Protobuf::Duration::Duration)Start time in seconds for the atom, relative to the input file timeline. The default is `0s`.
Google::Cloud::Video::Transcoder::V1::Resources::AdBreak
Ad break.
Inherits from Protobuf::Message.
Accessors
$msg->start_time_offset()/$msg->start_time_offset($value)Type:
Message(Google::Protobuf::Duration::Duration)Start time in seconds for the ad break, relative to the output file timeline. The default is `0s`.
Google::Cloud::Video::Transcoder::V1::Resources::ElementaryStream
Encoding of an input file such as an audio, video, or text track. Elementary streams must be packaged before mapping and sharing between different output formats.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringA unique key for this elementary stream.
$msg->video_stream()/$msg->video_stream($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::VideoStream)Encoding of a video stream.
$msg->audio_stream()/$msg->audio_stream($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::AudioStream)Encoding of an audio stream.
$msg->text_stream()/$msg->text_stream($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::TextStream)Encoding of a text stream. For example, closed captions or subtitles.
Google::Cloud::Video::Transcoder::V1::Resources::MuxStream
Multiplexing settings for output stream.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringA unique key for this multiplexed stream.
$msg->file_name()/$msg->file_name($value)Type:
StringThe name of the generated file. The default is [MuxStream.key][google.cloud.video.transcoder.v1.MuxStream.key] with the extension suffix corresponding to the [MuxStream.container][google.cloud.video.transcoder.v1.MuxStream.container].
Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `mux_stream0000000123.ts`.
$msg->container()/$msg->container($value)Type:
StringThe container format. The default is `mp4`
Supported streaming formats:
- `ts` - `fmp4`- the corresponding file extension is `.m4s`
Supported standalone file formats:
- `mp4` - `mp3` - `ogg` - `vtt`
See also: [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)
$msg->elementary_streams()/$msg->elementary_streams($value)Type:
StringList of [ElementaryStream.key][google.cloud.video.transcoder.v1.ElementaryStream.key] values multiplexed in this stream.
$msg->segment_settings()/$msg->segment_settings($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::SegmentSettings)Segment settings for `ts`, `fmp4` and `vtt`.
$msg->encryption_id()/$msg->encryption_id($value)Type:
StringIdentifier of the encryption configuration to use. If omitted, output will be unencrypted.
$msg->fmp4()/$msg->fmp4($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::MuxStream::Fmp4Config)Optional. `fmp4` container configuration.
Google::Cloud::Video::Transcoder::V1::Resources::Manifest
Manifest configuration.
Inherits from Protobuf::Message.
Accessors
$msg->file_name()/$msg->file_name($value)Type:
StringThe name of the generated file. The default is `manifest` with the extension suffix corresponding to the [Manifest.type][google.cloud.video.transcoder.v1.Manifest.type].
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Video::Transcoder::V1::Manifest::ManifestType)Required. Type of the manifest.
$msg->mux_streams()/$msg->mux_streams($value)Type:
StringRequired. List of user supplied [MuxStream.key][google.cloud.video.transcoder.v1.MuxStream.key] values that should appear in this manifest.
When [Manifest.type][google.cloud.video.transcoder.v1.Manifest.type] is `HLS`, a media manifest with name [MuxStream.key][google.cloud.video.transcoder.v1.MuxStream.key] and `.m3u8` extension is generated for each element in this list.
$msg->dash()/$msg->dash($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Manifest::DashConfig)`DASH` manifest configuration.
Enum: Manifest::ManifestType
MANIFEST_TYPE_UNSPECIFIED=>0HLS=>1DASH=>2
Google::Cloud::Video::Transcoder::V1::Resources::PubsubDestination
A Pub/Sub destination.
Inherits from Protobuf::Message.
Accessors
$msg->topic()/$msg->topic($value)Type:
StringThe name of the Pub/Sub topic to publish job completion notification to. For example: `projects/{project}/topics/{topic}`.
Google::Cloud::Video::Transcoder::V1::Resources::SpriteSheet
Sprite sheet configuration.
Inherits from Protobuf::Message.
Accessors
$msg->format()/$msg->format($value)Type:
StringFormat type. The default is `jpeg`.
Supported formats:
- `jpeg`
$msg->file_prefix()/$msg->file_prefix($value)Type:
StringRequired. File name prefix for the generated sprite sheets.
Each sprite sheet has an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `sprite_sheet0000000123.jpeg`.
$msg->sprite_width_pixels()/$msg->sprite_width_pixels($value)Type:
Int32Required. The width of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] field or the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] field, but not both (the API will automatically calculate the missing field).
For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.
$msg->sprite_height_pixels()/$msg->sprite_height_pixels($value)Type:
Int32Required. The height of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] field or the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] field, but not both (the API will automatically calculate the missing field).
For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.
$msg->column_count()/$msg->column_count($value)Type:
Int32The maximum number of sprites per row in a sprite sheet. The default is 0, which indicates no maximum limit.
$msg->row_count()/$msg->row_count($value)Type:
Int32The maximum number of rows per sprite sheet. When the sprite sheet is full, a new sprite sheet is created. The default is 0, which indicates no maximum limit.
$msg->start_time_offset()/$msg->start_time_offset($value)Type:
Message(Google::Protobuf::Duration::Duration)Start time in seconds, relative to the output file timeline. Determines the first sprite to pick. The default is `0s`.
$msg->end_time_offset()/$msg->end_time_offset($value)Type:
Message(Google::Protobuf::Duration::Duration)End time in seconds, relative to the output file timeline. When `end_time_offset` is not specified, the sprites are generated until the end of the output file.
$msg->total_count()/$msg->total_count($value)Type:
Int32Total number of sprites. Create the specified number of sprites distributed evenly across the timeline of the output media. The default is 100.
$msg->interval()/$msg->interval($value)Type:
Message(Google::Protobuf::Duration::Duration)Starting from `0s`, create sprites at regular intervals. Specify the interval value in seconds.
$msg->quality()/$msg->quality($value)Type:
Int32The quality of the generated sprite sheet. Enter a value between 1 and 100, where 1 is the lowest quality and 100 is the highest quality. The default is 100. A high quality value corresponds to a low image data compression ratio.
Google::Cloud::Video::Transcoder::V1::Resources::Overlay
Overlay configuration.
Inherits from Protobuf::Message.
Accessors
$msg->image()/$msg->image($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Overlay::Image)Image overlay.
$msg->animations()/$msg->animations($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Overlay::Animation)List of animations. The list should be chronological, without any time overlap.
Enum: Overlay::FadeType
FADE_TYPE_UNSPECIFIED=>0FADE_IN=>1FADE_OUT=>2
Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig
Preprocessing configurations.
Inherits from Protobuf::Message.
Accessors
$msg->color()/$msg->color($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig::Color)Color preprocessing configuration.
$msg->denoise()/$msg->denoise($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig::Denoise)Denoise preprocessing configuration.
$msg->deblock()/$msg->deblock($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig::Deblock)Deblock preprocessing configuration.
$msg->audio()/$msg->audio($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig::Audio)Audio preprocessing configuration.
$msg->crop()/$msg->crop($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig::Crop)Specify the video cropping configuration.
$msg->pad()/$msg->pad($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig::Pad)Specify the video pad filter configuration.
$msg->deinterlace()/$msg->deinterlace($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig::Deinterlace)Specify the video deinterlace configuration.
Google::Cloud::Video::Transcoder::V1::Resources::TrackDefinition
Track definition for the input asset.
Inherits from Protobuf::Message.
Accessors
$msg->input_track()/$msg->input_track($value)Type:
Int32The input track.
$msg->languages()/$msg->languages($value)Type:
StringOptional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
$msg->detect_languages()/$msg->detect_languages($value)Type:
BoolOptional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.
$msg->detected_languages()/$msg->detected_languages($value)Type:
StringOutput only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
Google::Cloud::Video::Transcoder::V1::Resources::InputAttributes
Input attributes that provide additional information about the input asset.
Inherits from Protobuf::Message.
Accessors
$msg->track_definitions()/$msg->track_definitions($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::TrackDefinition)Optional. A list of track definitions for the input asset.
Google::Cloud::Video::Transcoder::V1::Resources::VideoStream
Video stream resource.
Inherits from Protobuf::Message.
Accessors
$msg->h264()/$msg->h264($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::VideoStream::H264CodecSettings)H264 codec settings.
$msg->h265()/$msg->h265($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::VideoStream::H265CodecSettings)H265 codec settings.
$msg->vp9()/$msg->vp9($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::VideoStream::Vp9CodecSettings)VP9 codec settings.
Enum: VideoStream::FrameRateConversionStrategy
FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED=>0DOWNSAMPLE=>1DROP_DUPLICATE=>2
Google::Cloud::Video::Transcoder::V1::Resources::AudioStream
Audio stream resource.
Inherits from Protobuf::Message.
Accessors
$msg->codec()/$msg->codec($value)Type:
StringThe codec for this audio stream. The default is `aac`.
Supported audio codecs:
- `aac` - `aac-he` - `aac-he-v2` - `mp3` - `ac3` - `eac3` - `vorbis`
$msg->bitrate_bps()/$msg->bitrate_bps($value)Type:
Int32Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.
$msg->channel_count()/$msg->channel_count($value)Type:
Int32Number of audio channels. Must be between 1 and 6. The default is 2.
$msg->channel_layout()/$msg->channel_layout($value)Type:
StringA list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `["fl", "fr"]`.
Supported channel names:
- `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency
$msg->mapping()/$msg->mapping($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::AudioStream::AudioMapping)The mapping for the [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list] atoms with audio [EditAtom.inputs][google.cloud.video.transcoder.v1.EditAtom.inputs].
$msg->sample_rate_hertz()/$msg->sample_rate_hertz($value)Type:
Int32The audio sample rate in Hertz. The default is 48000 Hertz.
$msg->language_code()/$msg->language_code($value)Type:
StringThe BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
$msg->display_name()/$msg->display_name($value)Type:
StringThe name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
Google::Cloud::Video::Transcoder::V1::Resources::TextStream
Encoding of a text stream. For example, closed captions or subtitles.
Inherits from Protobuf::Message.
Accessors
$msg->codec()/$msg->codec($value)Type:
StringThe codec for this text stream. The default is `webvtt`.
Supported text codecs:
- `srt` - `ttml` - `cea608` - `cea708` - `webvtt`
$msg->language_code()/$msg->language_code($value)Type:
StringThe BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
$msg->mapping()/$msg->mapping($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::TextStream::TextMapping)The mapping for the [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list] atoms with text [EditAtom.inputs][google.cloud.video.transcoder.v1.EditAtom.inputs].
$msg->display_name()/$msg->display_name($value)Type:
StringThe name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
Google::Cloud::Video::Transcoder::V1::Resources::SegmentSettings
Segment settings for `ts`, `fmp4` and `vtt`.
Inherits from Protobuf::Message.
Accessors
$msg->segment_duration()/$msg->segment_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Duration of the segments in seconds. The default is `6.0s`. Note that `segmentDuration` must be greater than or equal to [`gopDuration`](#videostream), and `segmentDuration` must be divisible by [`gopDuration`](#videostream).
$msg->individual_segments()/$msg->individual_segments($value)Type:
BoolRequired. Create an individual segment file. The default is `false`.
Google::Cloud::Video::Transcoder::V1::Resources::Encryption
Encryption settings.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringRequired. Identifier for this set of encryption options.
$msg->aes_128()/$msg->aes_128($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Encryption::Aes128Encryption)Configuration for AES-128 encryption.
$msg->sample_aes()/$msg->sample_aes($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Encryption::SampleAesEncryption)Configuration for SAMPLE-AES encryption.
$msg->mpeg_cenc()/$msg->mpeg_cenc($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Encryption::MpegCommonEncryption)Configuration for MPEG Common Encryption (MPEG-CENC).
$msg->secret_manager_key_source()/$msg->secret_manager_key_source($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Encryption::SecretManagerSource)Keys are stored in Google Secret Manager.
$msg->drm_systems()/$msg->drm_systems($value)Type:
Message(Google::Cloud::Video::Transcoder::V1::Resources::Encryption::DrmSystems)Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Video::Transcoder::V1::Resources::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.