To capture video to DV files, you can use software compression or DV/HDV camcorder. DV codec used for a video stream, PCM used for an audio stream, AVI used as a container. Optionally you can use MKV (Matroska) container format.
First, you need to configure your video capture device. DV camcorder required to use DV output without recompression.
VideoCapture1.Output_Format = new DirectCaptureDVOutput();
VideoCapture1.Mode = VideoCaptureMode.VideoCapture; VideoCapture1.Output_Filename = "output.avi";
await VideoCapture1.StartAsync();
var dvOutput = new DVOutput(); dvOutput.Audio_Channels = 2; dvOutput.Audio_SampleRate = 44100; // set PAL or NTSC dvOutput.Video_Format = DVVideoFormat.PAL; // Set DV file type dvOutput.Type2 = true; VideoCapture1.Output_Format = dvOutput;
VideoCapture1.Mode = VideoCaptureMode.VideoCapture; VideoCapture1.Output_Filename = "123.avi";
await VideoCapture1.StartAsync();