NAME

Google::Cloud::Video::Livestream::V1::Outputs - Compiled Protocol Buffers messages for google/cloud/video/livestream/v1/outputs.proto

SYNOPSIS

use Google::Cloud::Video::Livestream::V1::Outputs;

my $msg = Google::Cloud::Video::Livestream::V1::Outputs::ElementaryStream->new({
    key => $key,
    video_stream => $video_stream,
    audio_stream => $audio_stream,
    text_stream => $text_stream,
});

# Read or update a field
my $val = $msg->key();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Video::Livestream::V1::Outputs::ElementaryStream->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/video/livestream/v1/outputs.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::Livestream::V1::Outputs::ElementaryStream

Encoding of an input element 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

Google::Cloud::Video::Livestream::V1::Outputs::MuxStream

Multiplexing settings for output stream.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    A unique key for this multiplexed stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

  • $msg->container() / $msg->container($value)

    Type: String

    The container format. The default is `fmp4`.

    Supported container formats:

    - `fmp4` - the corresponding file extension is `.m4s` - `ts` - the corresponding file extension is `.ts`

  • $msg->elementary_streams() / $msg->elementary_streams($value)

    Type: String

    List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this stream.

    - For `fmp4` container, must contain either one video or one audio stream. - For `ts` container, must contain exactly one audio stream and up to one video stream.

  • $msg->segment_settings() / $msg->segment_settings($value)

    Type: Message (Google::Cloud::Video::Livestream::V1::Outputs::SegmentSettings)

    Segment settings for `fmp4` and `ts`.

  • $msg->encryption_id() / $msg->encryption_id($value)

    Type: String

    Identifier of the encryption configuration to use. If omitted, output will be unencrypted.

Google::Cloud::Video::Livestream::V1::Outputs::Manifest

Manifest configuration.

Inherits from Protobuf::Message.

Accessors

  • $msg->file_name() / $msg->file_name($value)

    Type: String

    The name of the generated file. The default is `manifest` with the extension suffix corresponding to the `Manifest` [type][google.cloud.video.livestream.v1.Manifest.type]. If multiple manifests are added to the channel, each must have a unique file name.

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Cloud::Video::Livestream::V1::Manifest::ManifestType)

    Required. Type of the manifest, can be `HLS` or `DASH`.

  • $msg->mux_streams() / $msg->mux_streams($value)

    Type: String

    Required. List of `MuxStream` [key][google.cloud.video.livestream.v1.MuxStream.key]s that should appear in this manifest.

    - For HLS, either `fmp4` or `ts` mux streams can be specified but not mixed. - For DASH, only `fmp4` mux streams can be specified.

  • $msg->max_segment_count() / $msg->max_segment_count($value)

    Type: Int32

    Maximum number of segments that this manifest holds. Once the manifest reaches this maximum number of segments, whenever a new segment is added to the manifest, the oldest segment will be removed from the manifest. The minimum value is 3 and the default value is 5.

  • $msg->segment_keep_duration() / $msg->segment_keep_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    How long to keep a segment on the output Google Cloud Storage bucket after it is removed from the manifest. This field should be large enough to cover the manifest propagation delay. Otherwise, a player could receive 404 errors while accessing segments which are listed in the manifest that the player has, but were already deleted from the output Google Cloud Storage bucket. Default value is `60s`.

    If both segment_keep_duration and [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] are set, [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration] is used and segment_keep_duration is ignored.

  • $msg->use_timecode_as_timeline() / $msg->use_timecode_as_timeline($value)

    Type: Bool

    Whether to use the timecode, as specified in timecode config, when setting:

    - `availabilityStartTime` attribute in DASH manifests. - `#EXT-X-PROGRAM-DATE-TIME` tag in HLS manifests.

    If false, ignore the input timecode and use the time from system clock when the manifest is first generated. This is the default behavior.

  • $msg->key() / $msg->key($value)

    Type: String

    Optional. A unique key for this manifest.

Enum: Manifest::ManifestType

  • MANIFEST_TYPE_UNSPECIFIED => 0

  • HLS => 1

  • DASH => 2

Google::Cloud::Video::Livestream::V1::Outputs::DistributionStream

Multiplexing settings for output streams used in [Distribution][google.cloud.video.livestream.v1.Distribution].

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    Required. A unique key for this distribution stream. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

  • $msg->container() / $msg->container($value)

    Type: String

    Required. The container format.

    Supported container formats:

    - `ts`, must contain exactly one audio stream and up to one video stream. - `flv`, must contain at most one audio stream and at most one video stream.

  • $msg->elementary_streams() / $msg->elementary_streams($value)

    Type: String

    Required. List of `ElementaryStream` [key][google.cloud.video.livestream.v1.ElementaryStream.key]s multiplexed in this stream. Must contain at least one audio stream and up to one video stream.

Google::Cloud::Video::Livestream::V1::Outputs::Distribution

Distribution configuration.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    Required. A unique key for this distribution. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

  • $msg->distribution_stream() / $msg->distribution_stream($value)

    Type: String

    Required. `DistributionStream` [key][google.cloud.video.livestream.v1.DistributionStream.key]s that should appear in this distribution output.

    - For SRT protocol, only `ts` distribution streams can be specified. - For RTMP protocol, only `flv` distribution streams can be specified.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Video::Livestream::V1::Distribution::State)

    Output only. State of the distribution.

  • $msg->error() / $msg->error($value)

    Type: Message (Google::Rpc::Status::Status)

    Output only. Only present when the `state` is `ERROR`. The reason for the error state of the distribution.

  • $msg->srt_push() / $msg->srt_push($value)

    Type: Message (Google::Cloud::Video::Livestream::V1::Outputs::SrtPushOutputEndpoint)

    Output endpoint using SRT_PUSH.

  • $msg->rtmp_push() / $msg->rtmp_push($value)

    Type: Message (Google::Cloud::Video::Livestream::V1::Outputs::RtmpPushOutputEndpoint)

    Output endpoint using RTMP_PUSH.

Enum: Distribution::State

  • STATE_UNSPECIFIED => 0

  • ERROR => 5

  • NOT_READY => 6

  • READY => 7

  • AWAITING_INPUT => 8

  • DISTRIBUTING => 9

Google::Cloud::Video::Livestream::V1::Outputs::SrtPushOutputEndpoint

Configurations for an output endpoint using SRT_PUSH as the streaming protocol.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    Required. The full URI of the remote SRT server.

  • $msg->passphrase_secret_version() / $msg->passphrase_secret_version($value)

    Type: String

    The name of the Secret Version containing the SRT encryption passphrase, which is stored in Google Secret Manager. It should be in the format of `projects/{project}/secrets/{secret_id}/versions/{version_number}`.

Google::Cloud::Video::Livestream::V1::Outputs::RtmpPushOutputEndpoint

Configurations for an output endpoint using RTMP_PUSH as the streaming protocol.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    Required. The full URI of the remote RTMP server. For example: `rtmp://192.168.123.321/live/my-stream` or `rtmp://somedomain.com/someapp`.

  • $msg->stream_key() / $msg->stream_key($value)

    Type: String

    Required. Stream key for RTMP protocol.

Google::Cloud::Video::Livestream::V1::Outputs::SpriteSheet

Sprite sheet configuration.

Inherits from Protobuf::Message.

Accessors

  • $msg->format() / $msg->format($value)

    Type: String

    Format type. The default is `jpeg`.

    Supported formats:

    - `jpeg`

  • $msg->file_prefix() / $msg->file_prefix($value)

    Type: String

    Required. File name prefix for the generated sprite sheets. If multiple sprite sheets are added to the channel, each must have a unique file prefix. 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: Int32

    Required. The width of the sprite in pixels. Must be an even integer.

  • $msg->sprite_height_pixels() / $msg->sprite_height_pixels($value)

    Type: Int32

    Required. The height of the sprite in pixels. Must be an even integer.

  • $msg->column_count() / $msg->column_count($value)

    Type: Int32

    The maximum number of sprites per row in a sprite sheet. Valid range is [1, 10] and the default value is 1.

  • $msg->row_count() / $msg->row_count($value)

    Type: Int32

    The maximum number of rows per sprite sheet. When the sprite sheet is full, a new sprite sheet is created. Valid range is [1, 10] and the default value is 1.

  • $msg->interval() / $msg->interval($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Create sprites at regular intervals. Valid range is [1 second, 1 hour] and the default value is `10s`.

  • $msg->quality() / $msg->quality($value)

    Type: Int32

    The 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::Livestream::V1::Outputs::PreprocessingConfig

Preprocessing configurations.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Livestream::V1::Outputs::VideoStream

Video stream resource.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Livestream::V1::Outputs::AudioStream

Audio stream resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->transmux() / $msg->transmux($value)

    Type: Bool

    Specifies whether pass through (transmuxing) is enabled or not. If set to `true`, the rest of the settings, other than `mapping`, will be ignored. The default is `false`.

  • $msg->codec() / $msg->codec($value)

    Type: String

    The codec for this audio stream. The default is `aac`.

    Supported audio codecs:

    - `aac`

  • $msg->bitrate_bps() / $msg->bitrate_bps($value)

    Type: Int32

    Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.

  • $msg->channel_count() / $msg->channel_count($value)

    Type: Int32

    Number of audio channels. Must be between 1 and 6. The default is 2.

  • $msg->channel_layout() / $msg->channel_layout($value)

    Type: String

    A 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::Livestream::V1::Outputs::AudioStream::AudioMapping)

    The mapping for the input streams and audio channels.

  • $msg->sample_rate_hertz() / $msg->sample_rate_hertz($value)

    Type: Int32

    The audio sample rate in Hertz. The default is 48000 Hertz.

Google::Cloud::Video::Livestream::V1::Outputs::TextStream

Encoding of a text stream. For example, closed captions or subtitles.

Inherits from Protobuf::Message.

Accessors

  • $msg->codec() / $msg->codec($value)

    Type: String

    Required. The codec for this text stream.

    Supported text codecs:

    - `cea608` - `cea708` - `webvtt`

  • $msg->language_code() / $msg->language_code($value)

    Type: String

    Optional. The 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->display_name() / $msg->display_name($value)

    Type: String

    Optional. The name for this particular text stream that will be added to the HLS/DASH manifest.

  • $msg->output_cea_channel() / $msg->output_cea_channel($value)

    Type: String

    Optional. The channel of the closed caption in the output stream. This field should only be set when textstream is used for partner distribution. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea608`; Must be one between `SERVICE1` and `SERVICE63`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea708`.

  • $msg->mapping() / $msg->mapping($value)

    Type: Message (Google::Cloud::Video::Livestream::V1::Outputs::TextStream::TextMapping)

    Optional. The mapping for the input streams and text tracks.

Google::Cloud::Video::Livestream::V1::Outputs::SegmentSettings

Segment settings for `fmp4` and `ts`.

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 `6s`. Note that `segmentDuration` must be greater than or equal to [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration], and `segmentDuration` must be divisible by [gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration]. Valid range is [2s, 20s].

    All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in the same manifest must have the same segment duration.

Google::Cloud::Video::Livestream::V1::Outputs::TimecodeConfig

Timecode configuration.

Inherits from Protobuf::Message.

Accessors

Enum: TimecodeConfig::TimecodeSource

  • TIMECODE_SOURCE_UNSPECIFIED => 0

  • MEDIA_TIMESTAMP => 1

  • EMBEDDED_TIMECODE => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Video::Livestream::V1::Outputs::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.