LiveEventEncoding Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LiveEventEncoding() |
Initializes a new instance of the LiveEventEncoding class. |
LiveEventEncoding(Nullable<LiveEventEncodingType>, String, Nullable<StretchMode>, Nullable<TimeSpan>) |
Initializes a new instance of the LiveEventEncoding class. |
LiveEventEncoding()
Initializes a new instance of the LiveEventEncoding class.
public LiveEventEncoding ();
Public Sub New ()
Applies to
LiveEventEncoding(Nullable<LiveEventEncodingType>, String, Nullable<StretchMode>, Nullable<TimeSpan>)
Initializes a new instance of the LiveEventEncoding class.
public LiveEventEncoding (Microsoft.Azure.Management.Media.Models.LiveEventEncodingType? encodingType = default, string presetName = default, Microsoft.Azure.Management.Media.Models.StretchMode? stretchMode = default, TimeSpan? keyFrameInterval = default);
new Microsoft.Azure.Management.Media.Models.LiveEventEncoding : Nullable<Microsoft.Azure.Management.Media.Models.LiveEventEncodingType> * string * Nullable<Microsoft.Azure.Management.Media.Models.StretchMode> * Nullable<TimeSpan> -> Microsoft.Azure.Management.Media.Models.LiveEventEncoding
Public Sub New (Optional encodingType As Nullable(Of LiveEventEncodingType) = Nothing, Optional presetName As String = Nothing, Optional stretchMode As Nullable(Of StretchMode) = Nothing, Optional keyFrameInterval As Nullable(Of TimeSpan) = Nothing)
Parameters
- encodingType
- Nullable<LiveEventEncodingType>
Live event type. When encodingType is set to PassthroughBasic or PassthroughStandard, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created. Possible values include: 'None', 'Standard', 'Premium1080p', 'PassthroughBasic', 'PassthroughStandard'
- presetName
- String
The optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’.
- stretchMode
- Nullable<StretchMode>
Specifies how the input video will be resized to fit the desired output resolution(s). Default is None. Possible values include: 'None', 'AutoSize', 'AutoFit'
Use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events.
Applies to
Azure SDK for .NET