Recording raw video to a file RRS feed

  • Question

  • Hi MS gurus,

    One of my customers request our camera app support capturing MJPG video to a file.

    I know currently the supported video formats are only H264 for MP4 and WVC1 for WMV, so

    my first try is write a custom encoder MFT that makes no changes to the input and directly ouput the data.

    And then setup MediaEncodingProfile with MP4 or ASF as container and video encoded using our encoder.

    That way, if the video output by camera is already MJPG, we can fulfill the request.

    Could you provide some guidelines on this, especially setting MediaEncodingProfile to use our encoder.

    If my solution is infeasible, could you kindly suggest a better way for accomplishing this?

    A hundred thanks!

    • Edited by noobrocks Tuesday, November 20, 2012 1:39 AM
    Monday, November 19, 2012 7:52 AM


  • Hello,

    This is a very good question. Unfortunately we really haven't given any guidance around using the MediaEncodingProfile with 3rd party codecs. Your approach however is sound and it appears that you have a good understanding of how the MediaCapture element works. I *think* we can get this working for you but unfortunately it is way outside the scope of a forum reply.

    I would like to work directly with you on this issue. With your Windows Store account you get two free solution incidents. Please open a new incident and reference my name in the title. I will grab the issue and work directly with you to figure out how to get the MediaEncodingProfile working with your custom codec. Again no guarantees that we can get this working but we can give it a shot.

    You can go here to open the incident:


    I hope this helps,


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, November 22, 2012 12:24 AM