Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Layer

Inherits:
VideoLayer
  • Object
show all
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

Attributes inherited from VideoLayer

#adaptive_bframe, #b_frames, #bitrate, #frame_rate, #max_bitrate, #slices

Attributes inherited from Layer

#height, #label, #width

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeH264Layer

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_windowDuration

ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S).

Returns:

  • (Duration)

    The VBV buffer window length. The value should be in



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_modeEntropyMode

not specified, the encoder chooses the mode that is appropriate for the profile and level. Possible values include: ‘Cabac’, ‘Cavlc’

Returns:

  • (EntropyMode)

    The entropy mode to be used for this layer. If



47
48
49
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 47

def entropy_mode
  @entropy_mode
end

#levelString

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.

Returns:

  • (String)

    We currently support Level up to 6.2. The value can be



32
33
34
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 32

def level
  @level
end

#odatatypeObject

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

#profileH264VideoProfile

High422, High444. Default is Auto. Possible values include: ‘Auto’, ‘Baseline’, ‘Main’, ‘High’, ‘High422’, ‘High444’

Returns:



26
27
28
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264layer.rb', line 26

def profile
  @profile
end

#reference_framesInteger

encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting.

Returns:

  • (Integer)

    The number of reference frames to be used when



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

.mapperObject

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