Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::LiveEventEncoding
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2020_05_01::Models::LiveEventEncoding
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding.rb
Overview
Specifies the live event type and optional encoding settings for encoding live events.
Instance Attribute Summary collapse
-
#encoding_type ⇒ LiveEventEncodingType
set to None, the service simply passes through the incoming video and audio layer(s) to the output.
-
#key_frame_interval ⇒ Duration
to specify the output fragment length for the video and audio tracks of an encoding live event.
-
#preset_name ⇒ String
encodingType is not None.
-
#stretch_mode ⇒ StretchMode
fit the desired output resolution(s).
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LiveEventEncoding class as Ruby Hash.
Instance Attribute Details
#encoding_type ⇒ LiveEventEncodingType
set to None, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created. Possible values include: ‘None’, ‘Standard’, ‘Premium1080p’
24 25 26 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding.rb', line 24 def encoding_type @encoding_type end |
#key_frame_interval ⇒ Duration
to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events.
45 46 47 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding.rb', line 45 def key_frame_interval @key_frame_interval end |
#preset_name ⇒ String
encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’.
31 32 33 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding.rb', line 31 def preset_name @preset_name end |
#stretch_mode ⇒ StretchMode
fit the desired output resolution(s). Default is None. Possible values include: ‘None’, ‘AutoSize’, ‘AutoFit’
36 37 38 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding.rb', line 36 def stretch_mode @stretch_mode end |
Class Method Details
.mapper ⇒ Object
Mapper for LiveEventEncoding class as Ruby Hash. This will be used for serialization/deserialization.
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/live_event_encoding.rb', line 52 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'LiveEventEncoding', type: { name: 'Composite', class_name: 'LiveEventEncoding', model_properties: { encoding_type: { client_side_validation: true, required: false, serialized_name: 'encodingType', type: { name: 'String' } }, preset_name: { client_side_validation: true, required: false, serialized_name: 'presetName', type: { name: 'String' } }, stretch_mode: { client_side_validation: true, required: false, serialized_name: 'stretchMode', type: { name: 'String' } }, key_frame_interval: { client_side_validation: true, required: false, serialized_name: 'keyFrameInterval', type: { name: 'TimeSpan' } } } } } end |