web cam texture to video file

Hi All,

Is it possible to save the output of WebCam texture to a video file and save it on the system drive.

I know we can easily capture a screen shot from a webcam texture using the following piece of code

            wTexture.Pause();
		Texture2D snap = new Texture2D(wTexture.width,wTexture.height);
    	snap.SetPixels(wTexture.GetPixels());
    	snap.Apply();
		
		TextureScale.Point(snap,240,160);
		
						
		// to save to project folder
		ImageManager.SaveToProjectFolder(snap,Application.dataPath+"/Screenshots");

how can we do this for a video file.