Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::H264Video

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

Overview

Describes all the properties for encoding a video with the H.264 codec.

Instance Attribute Summary collapse

Attributes inherited from Video

#key_frame_interval, #stretch_mode

Attributes inherited from Codec

#label

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeH264Video

Returns a new instance of H264Video.



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

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

Instance Attribute Details

#complexityH264Complexity

settings. The default value is Balanced. Possible values include: ‘Speed’, ‘Balanced’, ‘Quality’

Returns:



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

def complexity
  @complexity
end

#layersArray<H264Layer>

produced by the encoder.

Returns:

  • (Array<H264Layer>)

    The collection of output H.264 layers to be



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

def layers
  @layers
end

#odatatypeObject

Returns the value of attribute odatatype.



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

def odatatype
  @odatatype
end

#scene_change_detectionBoolean

at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video.

Returns:

  • (Boolean)

    Whether or not the encoder should insert key frames



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

def scene_change_detection
  @scene_change_detection
end

Class Method Details

.mapperObject

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



42
43
44
45
46
47
48
49
50
51
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/h264video.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: '#Microsoft.Media.H264Video',
    type: {
      name: 'Composite',
      class_name: 'H264Video',
      model_properties: {
        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'
          }
        },
        key_frame_interval: {
          client_side_validation: true,
          required: false,
          serialized_name: 'keyFrameInterval',
          type: {
            name: 'TimeSpan'
          }
        },
        stretch_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'stretchMode',
          type: {
            name: 'String'
          }
        },
        scene_change_detection: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sceneChangeDetection',
          type: {
            name: 'Boolean'
          }
        },
        complexity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'complexity',
          type: {
            name: 'String'
          }
        },
        layers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'layers',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'H264LayerElementType',
                type: {
                  name: 'Composite',
                  class_name: 'H264Layer'
                }
            }
          }
        }
      }
    }
  }
end