Class: Azure::MediaServices::Mgmt::V2018_07_01::Models::Video

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

Overview

Describes the basic properties for encoding the input video.

Direct Known Subclasses

H264Video, Image

Instance Attribute Summary collapse

Attributes inherited from Codec

#label

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVideo

Returns a new instance of Video.



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

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

Instance Attribute Details

#key_frame_intervalDuration

defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S).

Returns:

  • (Duration)

    The distance between two key frames, thereby



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

def key_frame_interval
  @key_frame_interval
end

#odatatypeObject

Returns the value of attribute odatatype.



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

def odatatype
  @odatatype
end

#stretch_modeStretchMode

resized to fit the desired output resolution(s). Default is AutoSize. Possible values include: ‘None’, ‘AutoSize’, ‘AutoFit’

Returns:

  • (StretchMode)

    The resizing mode - how the input video will be



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

def stretch_mode
  @stretch_mode
end

Class Method Details

.mapperObject

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



38
39
40
41
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
# File 'lib/2018-07-01/generated/azure_mgmt_media_services/models/video.rb', line 38

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