MATLAB File Help: cv.VideoWriter Index
cv.VideoWriter

Video Writer class

When querying a property that is not supported by the backend used by the cv.VideoWriter class, value 0 is returned.

Example

Here is how to write to a video file:

vid = cv.VideoWriter('myvideo.mpg', [640,480]);
vid.write(im);         % add a frame
clear vid;             % finish
See also
Class Details
Superclasses handle
Sealed false
Construct on load false
Constructor Summary
VideoWriter VideoWriter constructor 
Property Summary
FrameBytes Size of just encoded video frame; note that the encoding order may 
NStripes Number of stripes for parallel encoding. -1 for auto detection 
Quality Current quality (0..100%) of the encoded videostream. Can be 
id Object ID 
Method Summary
  addlistener Add listener for event. 
  delete VideoWriter destructor 
  eq == (EQ) Test handle equality. 
  findobj Find objects matching specified conditions. 
  findprop Find property of MATLAB handle object. 
  ge >= (GE) Greater than or equal relation for handles. 
  gt > (GT) Greater than relation for handles. 
  isOpened Returns true if video writer has been successfully initialized 
Sealed   isvalid Test handle validity. 
  le <= (LE) Less than or equal relation for handles. 
  lt < (LT) Less than relation for handles. 
  ne ~= (NE) Not equal relation for handles. 
  notify Notify listeners of event. 
  open Initializes or reinitializes video writer 
  release Closes the video writer 
  write Writes the next video frame