Class VideoWriter
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
AVI Video File Writer
public class VideoWriter : CvObject, IDisposable
- Inheritance
-
VideoWriter
- Implements
- Inherited Members
Remarks
On Windows, a destination path containing characters that can't be represented in the process's ANSI code page may fail to open even though the parent directory exists. Unlike VideoCapture, there is no stream-based constructor to work around this (the underlying cv::VideoWriter has no custom-stream write API); write to an ASCII-safe path instead.
Constructors
- VideoWriter(string, FourCC, double, Size, VideoWriterPara)
Creates video writer structure.
- VideoWriter(string, FourCC, double, Size, bool)
Creates video writer structure.
- VideoWriter(string, FourCC, double, Size, int[])
Creates video writer structure.
- VideoWriter(string, VideoCaptureAPIs, FourCC, double, Size, VideoWriterPara)
Creates video writer structure.
- VideoWriter(string, VideoCaptureAPIs, FourCC, double, Size, bool)
Creates video writer structure.
- VideoWriter(string, VideoCaptureAPIs, FourCC, double, Size, int[])
Creates video writer structure.
Properties
- FileName
Get output video file name
- Fps
Frames per second of the output video
- FrameSize
Get size of frame image
- IsColor
Get whether output frames is color or not
Methods
- FourCC(char, char, char, char)
Concatenates 4 chars to a fourcc code. This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.
- FourCC(string)
Concatenates 4 chars to a fourcc code. This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.
- Get(VideoWriterProperties)
Returns the specified VideoWriter property
- GetBackendName()
Returns used backend API name. Note that stream should be opened.
- IsOpened()
Returns true if video writer has been successfully initialized.
- Open(string, FourCC, double, Size, VideoWriterPara)
Creates video writer structure.
- Open(string, FourCC, double, Size, bool)
Creates video writer structure.
- Open(string, FourCC, double, Size, int[])
Creates video writer structure.
- Open(string, VideoCaptureAPIs, FourCC, double, Size, VideoWriterPara)
Creates video writer structure.
- Open(string, VideoCaptureAPIs, FourCC, double, Size, bool)
Creates video writer structure.
- Open(string, VideoCaptureAPIs, FourCC, double, Size, int[])
Creates video writer structure.
- Set(VideoWriterProperties, double)
Sets a property in the VideoWriter.
- Write(InputArray)
Writes/appends one frame to video file.