__init__(self,
filename,
window=' Input ' ,
nextModule=None,
fourCC_str=' XVID ' ,
fps=15,
size=None,
bw=False,
no_annotations=False)
(Constructor)
| source code
|
Constructor
- Parameters:
filename - The full output filename. Include the extension, such as .avi.
window - The window name to use when displaying this VSP's output. Specify
None to suppress showing the output, but note that if you modify
the current image with annotations, those will be persisted
"downstream" to later processors.
nextModule - A Video Stream Processor object that should be invoked on every
frame after this processor has finished.
fourCC_str - The "Four CC" string that is used to specify the
encoder.
fps - Frames per second. Not all codecs allow you to specify arbitrary
frame rates, however.
size - A tuple (w,h) representing the size of the output frames.
bw - Specify true if you wish for a black-and-white only output.
no_annotations - set to True to output the original, non-annotated version of the
image
- Overrides:
AbstractVSP.__init__
|