By using DirectShowLib i can able to record the video by using ASF writter here is the code to start recording
try { IBaseFilter capFilter
I'm doing it in my software in a way that SampleGrabber filter is inserted into a graph, and upon arrival of a picture, I convert it to Bitmap object, then draw on it with Graphics.
SampleGrabber
Bitmap
Graphics