Click or drag to resize
Accord.NET (logo)

AVIWriterOpen Method

Create new AVI file and open it for writing.

Namespace:  Accord.Video.VFW
Assembly:  Accord.Video.VFW (in Accord.Video.VFW.dll) Version: 3.8.0
Syntax
public void Open(
	string fileName,
	int width,
	int height
)
Request Example View Source

Parameters

fileName
Type: SystemString
AVI file name to create.
width
Type: SystemInt32
Video width.
height
Type: SystemInt32
Video height.
Exceptions
ExceptionCondition
IOExceptionFailed opening the specified file.
VideoExceptionA error occurred while creating new video file. See exception message.
OutOfMemoryExceptionInsufficient memory for internal buffer.
ArgumentExceptionVideo file resolution must be a multiple of two.
Remarks

The method opens (creates) a video files, configure video codec and prepares the stream for saving video frames with a help of AddFrame(Bitmap) method.

See Also