Table of Contents

Class TranscoderFactory

Namespace
VAST.Media
Assembly
VAST.Common.dll

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

inputMediaType MediaType

The media type of the input to transcode.

outputMediaType MediaType

The desired output media type. Updated to reflect the actual output type on success.

decoderParameters DecoderParameters

Configuration parameters for the decoder.

encoderParameters EncoderParameters

Configuration parameters for the encoder.

decoder IDecoder

When this method returns, contains the decoder instance if one is needed, or null.

encoder IEncoder

When 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.