Class TranscoderFactory
Provides factory methods for creating transcoder pipelines consisting of a decoder and/or encoder.
public static class TranscoderFactory
- Inheritance
-
TranscoderFactory
- Inherited Members
Methods
Create(MediaType, ref MediaType, DecoderParameters, EncoderParameters, out IDecoder, out IEncoder)
Creates a transcoder pipeline for converting media from one format to another.
public static bool Create(MediaType inputMediaType, ref MediaType outputMediaType, DecoderParameters decoderParameters, EncoderParameters encoderParameters, out IDecoder decoder, out IEncoder encoder)
Parameters
inputMediaTypeMediaTypeThe media type of the input to transcode.
outputMediaTypeMediaTypeThe desired output media type. Updated to reflect the actual output type on success.
decoderParametersDecoderParametersConfiguration parameters for the decoder.
encoderParametersEncoderParametersConfiguration parameters for the encoder.
decoderIDecoderWhen this method returns, contains the decoder instance if one is needed, or null.
encoderIEncoderWhen this method returns, contains the encoder instance if one is needed, or null.
Returns
- bool
True if the transcoder was successfully created or if no transcoding is needed; otherwise, false.