locked
MFCreateVideoSampleFromSurface cannot use in Windows App

Answers

  • Hello,

    The article you refer to requires that the EVR be the downstream renderer. The media stack in Windows Store apps do not use the EVR. Because of this the methodology referred to in the article cannot be used.

    Unfortunately at this time we have not published any guidance on how to write DXVA accelerated codecs on the Windows Store app platform. While it may be possible to write a DXVA accelerated MFT and have it run properly in the context of a Windows Store app, it is not recommended and not currently documented.

    If you are a video hardware OEM you can write a Hardware MFT that can join Media Foundation topologies in Windows Store apps. Typically it is not possible for ISVs to write Hardware MFTs due to WHQL signing restrictions.

    Reference:

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

    Thanks,

    James


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

    Friday, May 02, 2014 6:11 PM
    Moderator

All replies

  • I'll ask the 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.

    Thursday, May 01, 2014 2:40 PM
    Moderator
  • Hello,

    The article you refer to requires that the EVR be the downstream renderer. The media stack in Windows Store apps do not use the EVR. Because of this the methodology referred to in the article cannot be used.

    Unfortunately at this time we have not published any guidance on how to write DXVA accelerated codecs on the Windows Store app platform. While it may be possible to write a DXVA accelerated MFT and have it run properly in the context of a Windows Store app, it is not recommended and not currently documented.

    If you are a video hardware OEM you can write a Hardware MFT that can join Media Foundation topologies in Windows Store apps. Typically it is not possible for ISVs to write Hardware MFTs due to WHQL signing restrictions.

    Reference:

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

    Thanks,

    James


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

    Friday, May 02, 2014 6:11 PM
    Moderator
  • Hi James,

    Do you mean we could not use DXVA decoding in Windows App?

    Even if we write a custom DXVA decoder MFT and this MFT is only used in our application. 

    Wednesday, May 07, 2014 9:51 AM
  • Hello,

    Here is the answer to your question:

    Q. Do you mean we could not use DXVA decoding in Windows App?

    A. No that is not what I meant. It may be possible to write an MFT that uses DXVA within the context of an ISV app. However we do not have any guidance (i.e. documentation) around how to do this. If you wish to pursue this solution you will need to do so on your own. We will not be able to help you with the implementation.

    Thanks,

    James


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

    Wednesday, May 07, 2014 10:10 PM
    Moderator
  • OK, got it.

    Thank you so much.

    • Edited by NeilCheng Thursday, May 08, 2014 6:56 AM
    Thursday, May 08, 2014 6:55 AM