Video capture to DV file
Products: Video Capture SDK .Net
DV is a digital video format used in camcorders. It's known for its high quality and small file size, making it ideal for consumer and semi-professional video production. DV streams are commonly saved in tape form or as AVI files.
To capture video to DV files you can use software compression or DV/HDV camcorder. DV codec is used for a video stream, PCM is used for an audio stream, and AVI is used as a container. Optionally, you can use the MKV (Matroska) container format.
First, you need to configure your video capture device. The DV camcorder is required to use DV output without re-compression.
Capture video to DV without recompression (DV camcorder)
Set DV without recompression as output formats.
VideoCapture1.Output_Format = new DirectCaptureDVOutput();
Set video capture mode and file name.
VideoCapture1.Mode = VideoCaptureMode.VideoCapture;
VideoCapture1.Output_Filename = "output.avi";
Start capture (sync or async).
await VideoCapture1.StartAsync();
Capture video to DV with recompression (any video source can be used)
Set DV parameters and apply output format.
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;
Set video capture mode and the file name.
VideoCapture1.Mode = VideoCaptureMode.VideoCapture;
VideoCapture1.Output_Filename = "output.avi";
Start capture (sync / async).
await VideoCapture1.StartAsync();
Required redists
Visit our GitHub page to get more code samples.