Leveraging the same
MediaEncodingProfile class used to encode video from
MediaCapture, you can transcode any supported media format to any other supported media format. Although you can save the output in a higher-quality encoding than the input, you obviously can’t improve the quality. The main scenario here is reducing the size of a media file by reducing its quality.
MediaTranscoder is a two-step process. First you prepare it with the source media, target media, and a profile, which gives you an instance of
PrepareTranscodeResult. If this result object tells you it can perform the transcoding (via its
CanTranscode property), then you can call its
TranscodeAsync method to do the work. Otherwise, you can check its ...