MediaFormatBase Class
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.
Base class for output. 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.
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Media.Models.UnknownFormat))]
public abstract class MediaFormatBase : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.Models.MediaFormatBase>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.Models.MediaFormatBase>
public abstract class MediaFormatBase
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.Media.Models.UnknownFormat))>]
type MediaFormatBase = class
interface IJsonModel<MediaFormatBase>
interface IPersistableModel<MediaFormatBase>
type MediaFormatBase = class
Public MustInherit Class MediaFormatBase
Implements IJsonModel(Of MediaFormatBase), IPersistableModel(Of MediaFormatBase)
Public MustInherit Class MediaFormatBase
- Inheritance
-
MediaFormatBase
- Derived
- Attributes
- Implements
Constructors
MediaFormatBase(String) |
Initializes a new instance of MediaFormatBase. |
Properties
FilenamePattern |
The file naming pattern used for the creation of output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<MediaFormatBase>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<MediaFormatBase>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<MediaFormatBase>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<MediaFormatBase>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<MediaFormatBase>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET