Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::VideoLayer

Inherits:
Layer
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01/generated/azure_mgmt_media_services/models/video_layer.rb

Overview

Describes the settings to be used when encoding the input video into a desired output bitrate layer.

Direct Known Subclasses

H264Layer

Instance Attribute Summary collapse

Attributes inherited from Layer

#height, #label, #width

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVideoLayer

Returns a new instance of VideoLayer.



17
18
19
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_layer.rb', line 17

def initialize
  @odatatype = "#Microsoft.Media.VideoLayer"
end

Instance Attribute Details

#adaptive_bframeBoolean

encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use.

Returns:

  • (Boolean)

    Whether or not adaptive B-frames are to be used when



54
55
56
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_layer.rb', line 54

def adaptive_bframe
  @adaptive_bframe
end

#b_framesInteger

layer. If not specified, the encoder chooses an appropriate number based on the video profile and level.

Returns:

  • (Integer)

    The number of B-frames to be used when encoding this



36
37
38
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_layer.rb', line 36

def b_frames
  @b_frames
end

#bitrateInteger

encode the input video when generating this layer. This is a required field.

Returns:

  • (Integer)

    The average bitrate in bits per second at which to



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

def bitrate
  @bitrate
end

#frame_rateString

encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.

Returns:

  • (String)

    The frame rate (in frames per second) at which to



44
45
46
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_layer.rb', line 44

def frame_rate
  @frame_rate
end

#max_bitrateInteger

the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.

Returns:

  • (Integer)

    The maximum bitrate (in bits per second), at which



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

def max_bitrate
  @max_bitrate
end

#odatatypeObject

Returns the value of attribute odatatype.



21
22
23
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_layer.rb', line 21

def odatatype
  @odatatype
end

#slicesInteger

layer. If not specified, default is zero, which means that encoder will use a single slice for each frame.

Returns:

  • (Integer)

    The number of slices to be used when encoding this



49
50
51
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_layer.rb', line 49

def slices
  @slices
end

Class Method Details

.mapperObject

Mapper for VideoLayer class as Ruby Hash. This will be used for serialization/deserialization.



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
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video_layer.rb', line 61

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.VideoLayer',
    type: {
      name: 'Composite',
      class_name: 'VideoLayer',
      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'
          }
        }
      }
    }
  }
end