How to set a codec when transcoding to an AVI file RRS feed

  • Question

  • When using the MediaTranscoder class in the RT, is it possible to set the codec used when transcoding to an AVI file, such as RLE, Cinepak, iYUV, uncompressed, Xvid, Lagareth, etc?  Any examples anywhere?

    Sunday, June 8, 2014 8:34 PM

All replies

  • I'll ask our media guru to check this out.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, June 9, 2014 1:29 PM
  • Hello,

    Theroetically you can create a custom encoding setup by customizing the "MediaEncodingProfile" and "ContainerEncodingProperties". Unfortunately at this time we don't have any official guidance on how to do this. It is recommended that you use one of the media profile creation APIs. Also keep in mind that Windows Store apps only support a small subset of the codecs that are available on the desktop. In this case you will not be able to use RLE, Cinepak, or Lagareth when using the AVI container. You will only be able to use h.264 or WMV out of the box. It is possible to include a codec in your app and have the Transcoder APIs load it at runtime.





    I hope this helps,


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

    Monday, June 9, 2014 5:40 PM