Writing a .wmv file using WMA sf filter

Posted by Manish on Stack Overflow See other posts from Stack Overflow or by Manish
Published on 2010-06-09T22:21:02Z Indexed on 2010/06/09 22:22 UTC
Read the original article Hit count: 323

Filed under:

Hi I am trying to create an output .wmv file using WM Asf writer filter.Here is my code .

IBaseFilter* pASFWriter; CoCreateInstance(CLSID_WMAsfWriter,NULL,CLSCTX_INPROC_SERVER,IID_IBaseFilter,(void**) (&pASFWriter));
pGraphBuilder->AddFilter(pASFWriter,L"FileWriter");
IFileSinkFilter *pSink2=NULL;
pASFWriter->QueryInterface(IID_IFileSinkFilter,(void**)&pSink2); pSink2->SetFileName(OUTFILENAME,NULL);

All of the above return S_OK however there is no file created .I am not able to understand why this is so?

© Stack Overflow or respective owner

Related posts about directshow