vuba.Writer.write

Writer.write(frame)[source]

Write a frame using the declared encoder.

Parameters

frame (ndarray) – Frame to export.

Warns

UserWarning – If the supplied frame is not of the correct resolution or colour space, and to notify the user that the frame has been correctly converted so encoding is successful.

Notes

For encoding to video, note that if the frames supplied for encoding are not at the same resolution as that set for the encoder upon initiation, the frames will be resized accordingly. Also note that frames will be converted to the colour space set at initiation if they are not the same. These features are built-in so that a complete movie is always created, rather than an empty container which is not of much use for debugging a failed component of a script.

Examples

For example usage of this method please see example scripts located at examples/writing.

Return type

Writer