Make MediaElement More Video Codecs

Is there a way to make MediaElement support more video codecs like mkv , flv , mov , etc.? If not, is there any other control that supports more video codecs?

+8
c # windows-runtime mediaelement
source share
3 answers

Have you seen Player Framework ? It is an open source component that supports Windows 8, part of the Microsoft Media Platform, and was developed by Microsoft. It is an alternative to standard MediaElement controls and provides a plug-in mechanism. I'm not sure if you can support additional codecs through this mechanism.

Other than this, you can also expand the media platform (the extension must be written in C ++), as shown in these examples provided by Microsoft:

The second example is very interesting, since this is an example media extension that adds the MediaStreamSource mechanism, as in Silverlight. With this extension, you can implement your own MediaStreamSource in C # / VB.NET by providing MediaElement content.

+5
source share

It seems impossible, since WinRT has a completely different set of APIs, and all existing win32-based codecs will not run unless codec owners rewrite them. One long way will be to port win32 code to winrt, which will require a deep knowledge of both and seem too long to do. Even if you somehow find a way to make an existing codec work, it will not work on tablets with 8-inch windows.

This means that there are no codecs for winrt other than those provided by Microsoft.

Your options to convert them to h.264 video, which has become the standard for h.264 games on all devices. Apple did an excellent job standardizing the video. Win 7 onwards, Microsoft has provided native support for h.264.

+2
source share

MediaElement plays everything that a Windows player can play. Therefore, if you have the right set of codecs installed on your PC, it can be a pretty versatile media player.

Personally, I installed the K-Lite codecs

Also like Media_player_codec_pack codecs

And now my Windows Media Player is no longer lagging behind when playing mp4 files. Just follow the installer’s instructions and restart your computer before starting the installation process. Also ... he is trying to trick you into dialogues for installing secondary software, so REVIEW!

After installation, just remember to experiment with the “preferred acceleration” setting in the application’s video settings to find out what’s best for your hardware. I installed it - CUVID.

I also installed this set of codecs to support the avi format

Hope this helps :)

0
source share

All Articles