if(grabber == null)
{
return;
}
recording = true;
int fps = Convert.ToInt32(grabber.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FPS));
int foucc = CvInvoke.CV_FOURCC('X', 'V', 'I', 'D');
int width = Convert.ToInt32(grabber.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_WIDTH));
int height = Convert.ToInt32(grabber.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT));
writer = new VideoWriter(path+".avi", foucc, 10, 364, 293, true);