MediaTranscoder MediaTranscoder MediaTranscoder MediaTranscoder MediaTranscoder Class

Definition

Transcodes audio and video files.

public : sealed class MediaTranscoder : IMediaTranscoder, IMediaTranscoder2
struct winrt::Windows::Media::Transcoding::MediaTranscoder : IMediaTranscoder, IMediaTranscoder2
public sealed class MediaTranscoder : IMediaTranscoder, IMediaTranscoder2
Public NotInheritable Class MediaTranscoder Implements IMediaTranscoder, IMediaTranscoder2
var mediaTranscoder = new mediaTranscoder();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

For how-to guidance on transcoding media files, see Transcode media files.

Constructors

MediaTranscoder() MediaTranscoder() MediaTranscoder() MediaTranscoder() MediaTranscoder()

Creates a new instance of the MediaTranscoder class.

Properties

AlwaysReencode AlwaysReencode AlwaysReencode AlwaysReencode AlwaysReencode

Specifies whether the media transcoder always re-encodes the source.

HardwareAccelerationEnabled HardwareAccelerationEnabled HardwareAccelerationEnabled HardwareAccelerationEnabled HardwareAccelerationEnabled

Specifies whether hardware acceleration is enabled.

TrimStartTime TrimStartTime TrimStartTime TrimStartTime TrimStartTime

Gets or sets the time interval to trim from the start of the output.

TrimStopTime TrimStopTime TrimStopTime TrimStopTime TrimStopTime

Gets or sets the time interval to trim from the end of the output.

VideoProcessingAlgorithm VideoProcessingAlgorithm VideoProcessingAlgorithm VideoProcessingAlgorithm VideoProcessingAlgorithm

Gets or sets the video processing algorithm which will be used for transcoding.

Methods

AddAudioEffect(String) AddAudioEffect(String) AddAudioEffect(String) AddAudioEffect(String) AddAudioEffect(String)

Adds the specified audio effect.

AddAudioEffect(String, Boolean, IPropertySet) AddAudioEffect(String, Boolean, IPropertySet) AddAudioEffect(String, Boolean, IPropertySet) AddAudioEffect(String, Boolean, IPropertySet) AddAudioEffect(String, Boolean, IPropertySet)

Adds the specified audio effect with configuration properties, and indicates whether the effect is required.

AddVideoEffect(String) AddVideoEffect(String) AddVideoEffect(String) AddVideoEffect(String) AddVideoEffect(String)

Adds the specified video effect.

AddVideoEffect(String, Boolean, IPropertySet) AddVideoEffect(String, Boolean, IPropertySet) AddVideoEffect(String, Boolean, IPropertySet) AddVideoEffect(String, Boolean, IPropertySet) AddVideoEffect(String, Boolean, IPropertySet)

Adds the specified video effect with configuration properties and indicates whether the effect is required.

ClearEffects() ClearEffects() ClearEffects() ClearEffects() ClearEffects()

Removes all audio and video effects from the transcode session.

PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile) PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile) PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile) PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile) PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile)

Asynchronously initializes the trancode operation on the specified file and returns a PrepareTranscodeResult object which can be used to start the transcode operation.

PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile) PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile) PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile) PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile) PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile)

Asynchronously initializes the trancode operation on the specified media source and returns a PrepareTranscodeResult object which can be used to start the transcode operation.

PrepareStreamTranscodeAsync(IRandomAccessStream, IRandomAccessStream, MediaEncodingProfile) PrepareStreamTranscodeAsync(IRandomAccessStream, IRandomAccessStream, MediaEncodingProfile) PrepareStreamTranscodeAsync(IRandomAccessStream, IRandomAccessStream, MediaEncodingProfile) PrepareStreamTranscodeAsync(IRandomAccessStream, IRandomAccessStream, MediaEncodingProfile) PrepareStreamTranscodeAsync(IRandomAccessStream, IRandomAccessStream, MediaEncodingProfile)

Asynchronously initializes the trancode operation on the specified stream and returns a PrepareTranscodeResult object which can be used to start the transcode operation.

See Also