共用方式為


StandardEncoderPreset Constructor

Definition

Initializes a new instance of StandardEncoderPreset.

public StandardEncoderPreset (System.Collections.Generic.IEnumerable<Azure.ResourceManager.Media.Models.MediaCodecBase> codecs, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Media.Models.MediaFormatBase> formats);
new Azure.ResourceManager.Media.Models.StandardEncoderPreset : seq<Azure.ResourceManager.Media.Models.MediaCodecBase> * seq<Azure.ResourceManager.Media.Models.MediaFormatBase> -> Azure.ResourceManager.Media.Models.StandardEncoderPreset
Public Sub New (codecs As IEnumerable(Of MediaCodecBase), formats As IEnumerable(Of MediaFormatBase))

Parameters

codecs
IEnumerable<MediaCodecBase>

The list of codecs to be used when encoding the input video. Please note MediaCodecBase 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 AacAudio, MediaAudioBase, CodecCopyAudio, CodecCopyVideo, DDAudio, H264Video, H265Video, MediaImageBase, JpgImage, PngImage and MediaVideoBase.

formats
IEnumerable<MediaFormatBase>

The list of outputs to be produced by the encoder. Please note MediaFormatBase 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 OutputImageFileFormat, JpgFormat, Mp4Format, MultiBitrateFormat, PngFormat and TransportStreamFormat.

Exceptions

codecs or formats is null.

Applies to