locked
Is there a way to play flv & mkv file formats through media element in windows 8.1 app ?

    Question

  • i am trying to develop a video player so i just thought Is there a way to play flv & mkv file formats through media element in windows 8.1 app ? , coz when i tried media element it is supporting only mp4 & avi formats.
    Sunday, January 4, 2015 7:26 AM

Answers

  • Here is a list of Media Foundation codecs

    http://msdn.microsoft.com/en-us/library/windows/desktop/dd757927(v=vs.85).aspx

    For the rest of the formats you have you write your own MFT-based codec and ship the codec with your app. See also

    implementing a Codec MFT (http://msdn.microsoft.com/en-us/library/windows/desktop/dd757274(v=vs.85).aspx)

    Media extensions sample (https://code.msdn.microsoft.com/windowsapps/Media-extensions-sample-7b466096)

    MKV and FLV are just container formats, though, you need to survey some video files to see what video codecs are actually in streams and support them one by one. Supporting some proprietary video formats may involve licensing costs from patent holders.



    Visual C++ MVP







    Sunday, January 4, 2015 9:45 PM

All replies

  • To the best of my knowledge there is no built in support for playing flash (.flv) files in Windows 8.1.  You'll need a third party player.

    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Sunday, January 4, 2015 11:30 AM
  • Hi Kranthi88:

    Windows 8.1 up till now don't support .flv or .mkv formats. According to the apps I have developed up till now Windows only play .mp4 files. If an update came supporting the above formats I'm sure you would be told here.

    Sunday, January 4, 2015 1:22 PM
  • hey umar thanx for the info, but i have a small doubt regarding the support of flv & mkv files in windows 8.1, i have seen some media player apps in the windows store which claim to support not only mkv & flv files but also other file formats like vob & 3gp, can i know how they support those file formats? , do they implement their own decoding of file formats or do they use any third party libraries to get the task done?  
    Sunday, January 4, 2015 1:41 PM
  • Hi again Kranthi the apps you are talking about they claim to support .mkv or .flv files but if you see the review of the apps they really dont work. If you need to build the app using Windows build in api or decoding function it isnt possible. Well you can look upon a third party library could be helpful in making you app. but according to me they still arent helpful otherwise VLC player would have launched on Windows Phone long ago.
    Sunday, January 4, 2015 2:34 PM
  • Here is a list of Media Foundation codecs

    http://msdn.microsoft.com/en-us/library/windows/desktop/dd757927(v=vs.85).aspx

    For the rest of the formats you have you write your own MFT-based codec and ship the codec with your app. See also

    implementing a Codec MFT (http://msdn.microsoft.com/en-us/library/windows/desktop/dd757274(v=vs.85).aspx)

    Media extensions sample (https://code.msdn.microsoft.com/windowsapps/Media-extensions-sample-7b466096)

    MKV and FLV are just container formats, though, you need to survey some video files to see what video codecs are actually in streams and support them one by one. Supporting some proprietary video formats may involve licensing costs from patent holders.



    Visual C++ MVP







    Sunday, January 4, 2015 9:45 PM