View source: R/VideoWriterClass.R
writeFrame | R Documentation |
Write an Image
object to an output video using a
VideoWriter
object.
writeFrame(x, frame)
x |
A |
frame |
An |
This function does not return anything.
Simon Garnier, garnier@njit.edu
VideoWriter
, Image
## Not run:
live <- stream(0)
writer <- videoWriter("test.mp4", "H264", 25, 1080, 1920)
for (i in 1:250) {
writeFrame(writer, readNext(live))
}
release(writer)
release(live)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.