Menu

WMVideo9 Encoder DMO

Help
2009-05-03
2013-02-21
  • Monte Owens

    Monte Owens - 2009-05-03

    Running on Windows XP, Matlab 7.1

    Should I be able to use WMVideo9 Encoder DMO? It is listed when I run 

    codecs = videoWriter([], 'codecs');

    When I try to use it to write a file, I get the following error:

    ??? Could not connect the source, compressor, and file writer objects.

        Failed assertion : SUCCEEDED(retHresultAssert = builder->RenderStream( 0, &MEDIATYPE_Video, (IPin*)source->getPin(), compressor, renderer))
    Failed test: builder->RenderStream( NULL, &MEDIATYPE_Video, (IPin*)source->getPin(), compressor, renderer)
    HRESULT = 0x80040217. No combination of intermediate filters could be found to make the connection. Function : void __thiscall VideoIO::DirectShowOVideo::connectFiltergraphIfNeeded(void)
          File : DirectShowOVideo.cpp
          Line : 1096

    Error in ==> videoWriter.addframe>addSingleDataFrame at 185
    feval(vw.plugin, 'addframe', vw.handle, img);

    Error in ==> videoWriter.addframe at 144
        addSingleDataFrame(vw, frame);

     
    • Gerald Dalley

      Gerald Dalley - 2009-05-04

      Unfortunately, DMO compressors are not supported at this time.  They use a different API.

      Workaround:
      Go to
          http://www.microsoft.com/windows/windowsmedia/download/AllDownloads.aspx
      and select "Codec Installation Packages" in the "Select Download" listbox.  Download the "Codecs Installation Package for Windows Media Video 9 VCM".  Once you have installed that package, you can use the 'Microsoft Windows Media Video 9' or 'wmv3' codec with the videoIO 'DirectShow' plugin or 'wmv3' with the videoIO 'Vfw' plugin. 

      I'm adding an item to the to-do list to find a way to exclude DMO compressors from the 'codecs' list.  I'm also fixing the comment claiming DMO support from videoWriter_DirectShow.

      The long-term solution is to write a DMO plugin.  If you (or anyone else) is interested in doing so, let me know.

       
    • Monte Owens

      Monte Owens - 2009-05-04

      Thanks.  I've been using the VCM but was hoping to get away from it because it is difficult to get extra software installed on certain computers.  It works well though so I'll just keep going that route.

       
      • Gerald Dalley

        Gerald Dalley - 2009-05-04

        I'm glad the VCM solution works for you, at least for now.

         

Log in to post a comment.