none
FilterGraph.AddSourceFilters fails (0x80040266) for WMV and MP4 files on WES7. Help? RRS feed

  • Question

  • I have an app on Windows Embedded Standard 7 using Directshow to play back media files. Audio file types work fine but both WMV and MP4 files fail at:

    filterGraph.AddSourceFilter(fileSource, fileSource, out sourceFilter)  // Using DirectShowLib-2005

    with HResult = 80040266

    I've added the "premium Codecs", "Audio and Video Engines and Media Foundation", and "DirectX and Windows Device Experience" Feature Packs. Not sure how to resolve this. 

    Thanks.

    (Cross Posted to http://social.msdn.microsoft.com/Forums/en-US/windowsdirectshowdevelopment/thread/75a8b3b2-d65c-410c-9ca3-32077c1ba800)

     UPDATE: Adding the "Windows Media Player" feature pack resolves the error for WMV files but not for MP4 files. So I'm still trying to resolve this...


    • Edited by GCoder Sunday, July 10, 2011 10:05 AM New findings
    Sunday, July 10, 2011 6:04 AM

All replies

  • Does the application work on Windows 7?

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - ProGuide to WES 7, XP Embedded Advanced, WEPOS / POS for .NET Step-by-Step
    Sunday, July 10, 2011 4:03 PM
    Moderator