Hello!
We are trying to change the "amcap" example from msdn-DirectShow so that it saves the file as .wmv instead of .avi. According to the msdn it shouldnt be much difference between capture to .avi and .wmv. But when we have tried to run the graph with .wmv we get this strange error message (0x80004005).
Here is the code to capture asf:
Any help is appreciated.Code:hr = gcap.pBuilder->SetOutputFileName(&MEDIASUBTYPE_Asf, L"C:\\capture.wmv", &gcap.pRender, NULL); if(hr != NOERROR) { ErrMsg(TEXT("Cannot set output file")); goto SetupCaptureFail; } hr = gcap.pRender->QueryInterface(IID_IConfigAsfWriter,(void**)&pConfig); if(hr == NOERROR && pConfig) { pConfig->Release(); }
/K & K
Code tags added by kermi3



LinkBack URL
About LinkBacks



