Write an Image
object to an output video using a
VideoWriter
object.
Arguments
- x
A
VideoWriter
object.- frame
An
Image
object.
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)
} # }