Delen via


LiveEventEncoding Class

Definition

Specifies the live event type and optional encoding settings for encoding live events.

public class LiveEventEncoding : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.Models.LiveEventEncoding>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.Models.LiveEventEncoding>
public class LiveEventEncoding
type LiveEventEncoding = class
    interface IJsonModel<LiveEventEncoding>
    interface IPersistableModel<LiveEventEncoding>
type LiveEventEncoding = class
Public Class LiveEventEncoding
Implements IJsonModel(Of LiveEventEncoding), IPersistableModel(Of LiveEventEncoding)
Public Class LiveEventEncoding
Inheritance
LiveEventEncoding
Implements

Constructors

LiveEventEncoding()

Initializes a new instance of LiveEventEncoding.

Properties

EncodingType

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.

KeyFrameInterval

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.

PresetName

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

Specifies how the input video will be resized to fit the desired output resolution(s). Default is None.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<LiveEventEncoding>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<LiveEventEncoding>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LiveEventEncoding>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LiveEventEncoding>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<LiveEventEncoding>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to