I followed the official instructions to transcode media files, so let me avoid copying all the code here. If I use the following:
MediaEncodingProfile profile = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.Auto);
Everything works flawlessly - the app can transcode both any H.264 and H.265 file to an MP4 file with H.264 encoding.
However, if I use the following:
MediaEncodingProfile profile = MediaEncodingProfile.CreateHevc(VideoEncodingQuality.Auto); ... PrepareTranscodeResult prepareOp = await transcoder.PrepareFileTranscodeAsync(sourcefile, destinationfile, profile);
prepareOp.CanTranscode is false and prepareOp. FailureReason is "Unknown".
Could anyone offer a tip on how to diagnose this?