There is filter Dump with sources in Windows SDK Samples.
Im compile that, registered with regsvr32. But I will not understand as to him to connect for example any Mux that would weigh a stream he wrote down in a file. Though I can isn't correct I understand as he works.
CoCreateInstance(CLSID_DUMP, NULL, CLSCTX_INPROC_SERVER, IID_IBaseFilter, (void**)&pDump);
pGraph->AddFilter(pDump, L"DUMP");
pDump->QueryInterface(IID_IFileSinkFilter, (void**)&pSink);
pSink->SetFileName(m_FileName, NULL);
IPin* MuxOut;
IPin* WriterIn;
MuxOut = GetPin(pMux, PINDIR_OUTPUT);
WriterIn = GetPin(pDump, PINDIR_INPUT);
hr = pGraph->Connect(MuxOut, WriterIn);
After last line hr becomes equal -2147220969.
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
Power Suppy 20 Pin and 24 Pin
By jollyjohn in forum ComputerReplies: 16Last Post: 3rd Jan 2011, 20:06 -
Virtual webcam DirectShow filter with video input pin
By sk89q in forum Video ConversionReplies: 0Last Post: 26th May 2009, 05:06 -
Hi can anyone tell how to play a mp4(h.264 + AAC) file using dshow filter?
By kalpanaanb in forum Newbie / General discussionsReplies: 1Last Post: 31st Mar 2009, 08:58 -
24 pin PSU for a 20 Pin motherboard; Doh!
By Will Hay in forum ComputerReplies: 7Last Post: 5th Mar 2008, 11:02 -
using videos starts dshow over and over
By radman202 in forum Newbie / General discussionsReplies: 5Last Post: 29th Jan 2008, 10:49