Reference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::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.
Note: The following fields are mutually exclusive: audio_stream, video_stream, text_stream. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: audio_stream, video_stream, text_stream. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: audio_stream, video_stream, text_stream. If a field in that set is populated, all other fields in the set will automatically be cleared.
#key
defkey()->::String
Returns
(::String) — A unique key for this elementary stream.
#key=
defkey=(value)->::String
Parameter
value (::String) — A unique key for this elementary stream.
Returns
(::String) — A unique key for this elementary stream.
Note: The following fields are mutually exclusive: text_stream, video_stream, audio_stream. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: text_stream, video_stream, audio_stream. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: text_stream, video_stream, audio_stream. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: video_stream, audio_stream, text_stream. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: video_stream, audio_stream, text_stream. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: video_stream, audio_stream, text_stream. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Transcoder V1 API - Class Google::Cloud::Video::Transcoder::V1::ElementaryStream (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [2.1.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/2.1.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [2.0.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/2.0.1/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [1.2.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.2.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [1.1.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.1.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [1.0.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.0.1/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.13.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.13.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.12.2](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.12.2/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.11.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.11.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.10.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.10.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.9.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.9.1/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.8.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.8.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.7.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.7.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.6.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.6.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.5.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.5.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.4.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.4.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.3.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.3.0/Google-Cloud-Video-Transcoder-V1-ElementaryStream)\n- [0.2.2](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.2.2/Google-Cloud-Video-Transcoder-V1-ElementaryStream) \nReference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::ElementaryStream.\n\nEncoding of an input file such as an audio, video, or text track.\nElementary streams must be packaged before\nmapping and sharing between different output formats. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #audio_stream\n\n def audio_stream() -\u003e ::Google::Cloud::Video::Transcoder::V1::AudioStream\n\n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::AudioStream](./Google-Cloud-Video-Transcoder-V1-AudioStream)) --- Encoding of an audio stream.\n\n\n Note: The following fields are mutually exclusive: `audio_stream`, `video_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #audio_stream=\n\n def audio_stream=(value) -\u003e ::Google::Cloud::Video::Transcoder::V1::AudioStream\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::Transcoder::V1::AudioStream](./Google-Cloud-Video-Transcoder-V1-AudioStream)) --- Encoding of an audio stream.\n\n\nNote: The following fields are mutually exclusive: `audio_stream`, `video_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::AudioStream](./Google-Cloud-Video-Transcoder-V1-AudioStream)) --- Encoding of an audio stream.\n\n\n Note: The following fields are mutually exclusive: `audio_stream`, `video_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #key\n\n def key() -\u003e ::String\n\n**Returns**\n\n- (::String) --- A unique key for this elementary stream.\n\n### #key=\n\n def key=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A unique key for this elementary stream. \n**Returns**\n\n- (::String) --- A unique key for this elementary stream.\n\n### #text_stream\n\n def text_stream() -\u003e ::Google::Cloud::Video::Transcoder::V1::TextStream\n\n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::TextStream](./Google-Cloud-Video-Transcoder-V1-TextStream)) --- Encoding of a text stream. For example, closed captions or subtitles.\n\n\n Note: The following fields are mutually exclusive: `text_stream`, `video_stream`, `audio_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #text_stream=\n\n def text_stream=(value) -\u003e ::Google::Cloud::Video::Transcoder::V1::TextStream\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::Transcoder::V1::TextStream](./Google-Cloud-Video-Transcoder-V1-TextStream)) --- Encoding of a text stream. For example, closed captions or subtitles.\n\n\nNote: The following fields are mutually exclusive: `text_stream`, `video_stream`, `audio_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::TextStream](./Google-Cloud-Video-Transcoder-V1-TextStream)) --- Encoding of a text stream. For example, closed captions or subtitles.\n\n\n Note: The following fields are mutually exclusive: `text_stream`, `video_stream`, `audio_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #video_stream\n\n def video_stream() -\u003e ::Google::Cloud::Video::Transcoder::V1::VideoStream\n\n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::VideoStream](./Google-Cloud-Video-Transcoder-V1-VideoStream)) --- Encoding of a video stream.\n\n\n Note: The following fields are mutually exclusive: `video_stream`, `audio_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #video_stream=\n\n def video_stream=(value) -\u003e ::Google::Cloud::Video::Transcoder::V1::VideoStream\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::Transcoder::V1::VideoStream](./Google-Cloud-Video-Transcoder-V1-VideoStream)) --- Encoding of a video stream.\n\n\nNote: The following fields are mutually exclusive: `video_stream`, `audio_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::VideoStream](./Google-Cloud-Video-Transcoder-V1-VideoStream)) --- Encoding of a video stream.\n\n\n Note: The following fields are mutually exclusive: `video_stream`, `audio_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]