locked
link wmvideo decoder dmo, but error RRS feed

  • Question

  • my codes to build a filtergraph, I need to use wmvideo decoder dmo, but error.
    Maybe link the dmo files error,
    should I link which dll for the dmo?

    #include <wmcodecdsp.h>

    // Create the video encoder   
         pVideoEncoder.CoCreateInstance( CLSID_DMOWrapperFilter );
         pVideoEncoder.QueryInterface( &pWrapperFilter );

        // Load the WMV9 DMO
        pWrapperFilter->Init(CLSID_CWMVDecMediaObject, DMOCATEGORY_VIDEO_DECODER);

        // Everything succeeded, let's add the encoder to the graph
        pGraphBuilder->AddFilter( pVideoEncoder, L"WMV9 DMO Encoder" );

    error LNK2001: unknown _CLSID_CWMVDecMediaObject myplayerDlg.obj

    Thank you very much.

    Thursday, December 31, 2009 7:32 AM

Answers

All replies

  • Add to your source code:

    #include <wmcodecdsp.h> 
    #pragma comment(lib, "wmcodecdspuuid.lib") // Add this one

    http://alax.info/blog/tag/directshow
    • Marked as answer by VCResearch Saturday, January 2, 2010 7:24 AM
    Thursday, December 31, 2009 8:51 AM
  • Roman
        Thank you.
        I have pass building.
        I use vista, and have install windows sdk.
        But I do not find the file - wmcodecdspuuid.lib at sdk folder.
        Where to find the file?
        Thanks.
    Saturday, January 2, 2010 7:25 AM
  •     I use vista, and have install windows sdk.
        But I do not find the file - wmcodecdspuuid.lib at sdk folder.
        Where to find the file?


    The path may vary depending on SDK version:

    C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib\wmcodecdspuuid.lib
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\wmcodecdspuuid.lib

    http://alax.info/blog/tag/directshow
    Saturday, January 2, 2010 11:20 AM