Class: Google::Apis::TranscoderV1::MuxStream
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::MuxStream
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/representations.rb
Overview
Multiplexing settings for output stream.
Instance Attribute Summary collapse
-
#container ⇒ String
The container format.
-
#elementary_streams ⇒ Array<String>
List of ElementaryStream.key values multiplexed in this stream.
-
#encryption_id ⇒ String
Identifier of the encryption configuration to use.
-
#file_name ⇒ String
The name of the generated file.
-
#fmp4 ⇒ Google::Apis::TranscoderV1::Fmp4Config
fmp4
container configuration. -
#key ⇒ String
A unique key for this multiplexed stream.
-
#segment_settings ⇒ Google::Apis::TranscoderV1::SegmentSettings
Segment settings for
ts
,fmp4
andvtt
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MuxStream
constructor
A new instance of MuxStream.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MuxStream
Returns a new instance of MuxStream.
1725 1726 1727 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1725 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container ⇒ String
The container format. The default is mp4
Supported container formats: - ts
fmp4
- the corresponding file extension is.m4s
-mp4
-vtt
-ogg
See also: Supported input and output formats Corresponds to the JSON propertycontainer
1689 1690 1691 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1689 def container @container end |
#elementary_streams ⇒ Array<String>
List of ElementaryStream.key values multiplexed in this stream.
Corresponds to the JSON property elementaryStreams
1694 1695 1696 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1694 def elementary_streams @elementary_streams end |
#encryption_id ⇒ String
Identifier of the encryption configuration to use. If omitted, output will be
unencrypted.
Corresponds to the JSON property encryptionId
1700 1701 1702 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1700 def encryption_id @encryption_id end |
#file_name ⇒ String
The name of the generated file. The default is MuxStream.key with the
extension suffix corresponding to the MuxStream.container. Individual segments
also have an incremental 10-digit zero-padded suffix starting from 0 before
the extension, such as mux_stream0000000123.ts
.
Corresponds to the JSON property fileName
1708 1709 1710 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1708 def file_name @file_name end |
#fmp4 ⇒ Google::Apis::TranscoderV1::Fmp4Config
fmp4
container configuration.
Corresponds to the JSON property fmp4
1713 1714 1715 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1713 def fmp4 @fmp4 end |
#key ⇒ String
A unique key for this multiplexed stream.
Corresponds to the JSON property key
1718 1719 1720 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1718 def key @key end |
#segment_settings ⇒ Google::Apis::TranscoderV1::SegmentSettings
Segment settings for ts
, fmp4
and vtt
.
Corresponds to the JSON property segmentSettings
1723 1724 1725 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1723 def segment_settings @segment_settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1730 1731 1732 1733 1734 1735 1736 1737 1738 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1730 def update!(**args) @container = args[:container] if args.key?(:container) @elementary_streams = args[:elementary_streams] if args.key?(:elementary_streams) @encryption_id = args[:encryption_id] if args.key?(:encryption_id) @file_name = args[:file_name] if args.key?(:file_name) @fmp4 = args[:fmp4] if args.key?(:fmp4) @key = args[:key] if args.key?(:key) @segment_settings = args[:segment_settings] if args.key?(:segment_settings) end |