cv.VideoWriter - MATLAB File Help Go to online doc for cv.VideoWriter
cv.VideoWriter

Video Writer class

The class provides API for writing video files or image sequences.

Note: When querying a property that is not supported by the backend used by the cv.VideoWriter instance, 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 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. 
  get Returns the specified VideoWriter property 
  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. 
  listener Add listener for event without binding the listener to the source object. 
  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 
  set Sets a property in the VideoWriter 
  write Writes the next video frame 
Event Summary
ObjectBeingDestroyed Notifies listeners that a particular object has been destroyed.