VideoWriterOpen Method (String, String, Double, Size, Boolean)
|
Creates video writer structure.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic void Open(
string fileName,
string fourcc,
double fps,
Size frameSize,
bool isColor = true
)
Public Sub Open (
fileName As String,
fourcc As String,
fps As Double,
frameSize As Size,
Optional isColor As Boolean = true
)
public:
void Open(
String^ fileName,
String^ fourcc,
double fps,
Size frameSize,
bool isColor = true
)
member Open :
fileName : string *
fourcc : string *
fps : float *
frameSize : Size *
?isColor : bool
(* Defaults:
let _isColor = defaultArg isColor true
*)
-> unit
function Open(fileName, fourcc, fps, frameSize, isColor);
Parameters
- fileName
- Type: SystemString
Name of the output video file. - fourcc
- Type: SystemString
4-character code of codec used to compress the frames. For example, "PIM1" is MPEG-1 codec, "MJPG" is motion-jpeg codec etc.
Under Win32 it is possible to pass null in order to choose compression method and additional compression parameters from dialog. - fps
- Type: SystemDouble
Framerate of the created video stream. - frameSize
- Type: OpenCvSharpSize
Size of video frames. - isColor (Optional)
- Type: SystemBoolean
If it is true, the encoder will expect and encode color frames, otherwise it will work with grayscale frames (the flag is currently supported on Windows only).
Return Value
Type:
See Also