Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Layer
- Inherits:
-
VideoLayer
- Object
- Layer
- VideoLayer
- Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Layer
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb
Overview
Describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec.
Instance Attribute Summary collapse
-
#buffer_window ⇒ Duration
ISO 8601 format.
-
#entropy_mode ⇒ EntropyMode
not specified, the encoder chooses the mode that is appropriate for the profile and level.
-
#level ⇒ String
Auto, or a number that matches the H.264 profile.
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
-
#profile ⇒ H264VideoProfile
High422, High444.
-
#reference_frames ⇒ Integer
encoding this layer.
Attributes inherited from VideoLayer
#adaptive_bframe, #b_frames, #bitrate, #frame_rate, #max_bitrate, #slices
Attributes inherited from Layer
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for H264Layer class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ H264Layer
constructor
A new instance of H264Layer.
Constructor Details
#initialize ⇒ H264Layer
Returns a new instance of H264Layer.
17 18 19 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 17 def initialize @odatatype = "#Microsoft.Media.H264Layer" end |
Instance Attribute Details
#buffer_window ⇒ Duration
ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S).
37 38 39 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 37 def buffer_window @buffer_window end |
#entropy_mode ⇒ EntropyMode
not specified, the encoder chooses the mode that is appropriate for the profile and level. Possible values include: ‘Cabac’, ‘Cavlc’
47 48 49 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 47 def entropy_mode @entropy_mode end |
#level ⇒ String
Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer.
32 33 34 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 32 def level @level end |
#odatatype ⇒ Object
Returns the value of attribute odatatype.
21 22 23 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 21 def odatatype @odatatype end |
#profile ⇒ H264VideoProfile
High422, High444. Default is Auto. Possible values include: ‘Auto’, ‘Baseline’, ‘Main’, ‘High’, ‘High422’, ‘High444’
26 27 28 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 26 def profile @profile end |
#reference_frames ⇒ Integer
encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting.
42 43 44 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 42 def reference_frames @reference_frames end |
Class Method Details
.mapper ⇒ Object
Mapper for H264Layer class as Ruby Hash. This will be used for serialization/deserialization.
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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 54 def self.mapper() { client_side_validation: true, required: false, serialized_name: '#Microsoft.Media.H264Layer', type: { name: 'Composite', class_name: 'H264Layer', model_properties: { width: { client_side_validation: true, required: false, serialized_name: 'width', type: { name: 'String' } }, height: { client_side_validation: true, required: false, serialized_name: 'height', type: { name: 'String' } }, label: { client_side_validation: true, required: false, serialized_name: 'label', type: { name: 'String' } }, odatatype: { client_side_validation: true, required: true, serialized_name: '@odata\\.type', type: { name: 'String' } }, bitrate: { client_side_validation: true, required: true, serialized_name: 'bitrate', type: { name: 'Number' } }, max_bitrate: { client_side_validation: true, required: false, serialized_name: 'maxBitrate', type: { name: 'Number' } }, b_frames: { client_side_validation: true, required: false, serialized_name: 'bFrames', type: { name: 'Number' } }, frame_rate: { client_side_validation: true, required: false, serialized_name: 'frameRate', type: { name: 'String' } }, slices: { client_side_validation: true, required: false, serialized_name: 'slices', type: { name: 'Number' } }, adaptive_bframe: { client_side_validation: true, required: false, serialized_name: 'adaptiveBFrame', type: { name: 'Boolean' } }, profile: { client_side_validation: true, required: false, serialized_name: 'profile', type: { name: 'String' } }, level: { client_side_validation: true, required: false, serialized_name: 'level', type: { name: 'String' } }, buffer_window: { client_side_validation: true, required: false, serialized_name: 'bufferWindow', type: { name: 'TimeSpan' } }, reference_frames: { client_side_validation: true, required: false, serialized_name: 'referenceFrames', type: { name: 'Number' } }, entropy_mode: { client_side_validation: true, required: false, serialized_name: 'entropyMode', type: { name: 'String' } } } } } end |