Delen via


MediaVideoBase Class

Definition

Describes the basic properties for encoding the input video. Please note MediaVideoBase is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include H264Video, H265Video, MediaImageBase, JpgImage and PngImage.

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

Constructors

MediaVideoBase()

Initializes a new instance of MediaVideoBase.

Properties

KeyFrameInterval

The distance between two key frames. The value should be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is ignored if VideoSyncMode.Passthrough is set, where the KeyFrameInterval value will follow the input source setting.

Label

An optional label for the codec. The label can be used to control muxing behavior.

(Inherited from MediaCodecBase)
StretchMode

The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize.

SyncMode

The Video Sync Mode.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MediaCodecBase>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from MediaCodecBase)
IJsonModel<MediaCodecBase>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from MediaCodecBase)
IJsonModel<MediaVideoBase>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MediaVideoBase>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MediaCodecBase>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from MediaCodecBase)
IPersistableModel<MediaCodecBase>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from MediaCodecBase)
IPersistableModel<MediaCodecBase>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from MediaCodecBase)
IPersistableModel<MediaVideoBase>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MediaVideoBase>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MediaVideoBase>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to