By using DirectShowLib i can able to record the video by using ASF writter here is the code to start recording
try { IBaseFilter capFilter
Look at the DMO and DxLogo examples in the DirectShow.Net samples to do what your looking for. what Daniel Mošmondor is explaining you can find in the DxSnap example...
http://directshownet.sourceforge.net/