http://www.emgu.com
Create a video writer using the specific information

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public VideoWriter(
	string fileName,
	int compressionCode,
	int fps,
	int width,
	int height,
	bool isColor
)
Visual Basic
Public Sub New ( 
	fileName As String,
	compressionCode As Integer,
	fps As Integer,
	width As Integer,
	height As Integer,
	isColor As Boolean
)
Visual C++
public:
VideoWriter(
	String^ fileName, 
	int compressionCode, 
	int fps, 
	int width, 
	int height, 
	bool isColor
)
F#
new : 
        fileName : string * 
        compressionCode : int * 
        fps : int * 
        width : int * 
        height : int * 
        isColor : bool -> VideoWriter

Parameters

fileName
Type: System..::..String
The name of the video file to be written to
compressionCode
Type: System..::..Int32
Compression code. Usually computed using CvInvoke.CV_FOURCC. On windows use -1 to open a codec selection dialog. On Linux, use CvInvoke.CV_FOURCC('I', 'Y', 'U', 'V') for default codec for the specific file name.
fps
Type: System..::..Int32
frame rate per second
width
Type: System..::..Int32
the width of the frame
height
Type: System..::..Int32
the height of the frame
isColor
Type: System..::..Boolean
true if this is a color video, false otherwise

See Also