StandardEncoderPreset Constructor
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.
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
Azure SDK for .NET