Skip to contents

Write an Image object to an output video using a VideoWriter object.

Usage

writeFrame(x, frame)

Arguments

x

A VideoWriter object.

frame

An Image object.

Value

This function does not return anything.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

if (FALSE) { # \dontrun{
live <- stream(0)
writer <- videoWriter("test.mp4", "H264", 25, 1080, 1920)
for (i in 1:250) {
  writeFrame(writer, readNext(live))
}
release(writer)
release(live)
} # }