I am developing an video recording application using DirectShow.NET in C# windows application. Till now I am able to build graph and recording is done using asf
writer. While recording I have to show preview window with overlay text on it, For overlay text I have implemented SampleGrabber
and it is working fine.
What issue I am facing is, all is working fine on my machine but as I deploy test application to other machine (OS : Windows 7) recording is not started but camera has been found.
Later going through exception log I have found following entry in log
Creating an instance of the COM component with CLSID {51B4ABF3-748F-4E3B-A276-C828330E926A} from the IClassFactory failed due to the following error: 80040273 Exception from HRESULT: 0x80040273.
After some Google on this issue I got to that this exception is caused due to graphics driver is not installed on system. After installing respected graphics driver all is working fine.
Before installing graphics drivers I have checked camera is working in Skype and Google hangout video chat application.
This exception is occurred at line:
IBaseFilter vmr9preview = null;
vmr9preview = (IBaseFilter)new VideoMixingRenderer9(); //THIS LINE CAUSING THE EXCEPTION
hr = Graph.AddFilter(vmr9preview, "VMR9");
Mostly OS works without graphics drivers, so it may happen that client machine won't have graphics drivers install. So is there any alternative to VideoMixingRenderer9
, which will work without graphics driver?