| VideoWriterOpen Method (String, VideoCaptureAPIs, FourCC, Double, Size, Boolean) |
Creates video writer structure.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public bool Open(
string fileName,
VideoCaptureAPIs apiPreference,
FourCC fourcc,
double fps,
Size frameSize,
bool isColor = true
)
Public Function Open (
fileName As String,
apiPreference As VideoCaptureAPIs,
fourcc As FourCC,
fps As Double,
frameSize As Size,
Optional isColor As Boolean = true
) As Boolean
public:
bool Open(
String^ fileName,
VideoCaptureAPIs apiPreference,
FourCC fourcc,
double fps,
Size frameSize,
bool isColor = true
)
member Open :
fileName : string *
apiPreference : VideoCaptureAPIs *
fourcc : FourCC *
fps : float *
frameSize : Size *
?isColor : bool
(* Defaults:
let _isColor = defaultArg isColor true
*)
-> bool
Parameters
- fileName
- Type: SystemString
Name of the output video file. - apiPreference
- Type: OpenCvSharpVideoCaptureAPIs
allows to specify API backends to use. Can be used to enforce a specific reader implementation
if multiple are available: e.g. cv::CAP_FFMPEG or cv::CAP_GSTREAMER. - fourcc
- Type: OpenCvSharpFourCC
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
Frame rate 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:
Boolean[Missing <returns> documentation for "M:OpenCvSharp.VideoWriter.Open(System.String,OpenCvSharp.VideoCaptureAPIs,OpenCvSharp.FourCC,System.Double,OpenCvSharp.Size,System.Boolean)"]
See Also