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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access