O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Changing the Quality

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.

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required