//Define variable as below: ICaptureGraphBuilder2 capGraph IBaseFilter fWriter IFileSinkFilter pTmpSink .... //I use below function to save Avi/Asf file successfully. int hr = capGraph.SetOutputFileName( MediaSubType.Avi, szOutputFileName, out asfWriter, out pTmpSink); ... //But it fail to save other video type such as Mpeg2Video with below error information: int hr = capGraph.SetOutputFileName( MediaSubType.Mpeg2Video, szOutputFileName, out asfWriter, out pTmpSink); ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)