ov_images_to_video | R Documentation |
Requires that ffmpeg is available on your system path. Input files can either be specified as a list of image files, or alternatively as a directory name and image file mask. For the latter, the images must be numbered in sequential order.
ov_images_to_video(
input_dir,
image_file_mask = "image_%06d.jpg",
image_files,
outfile,
fps = 30,
extra = NULL,
debug = FALSE
)
input_dir |
string: path to the input directory |
image_file_mask |
string: the mask that specifies the image files, e.g. "image_%06d.jpg" for images named "image_000001.jpg", "image_000002.jpg" etc |
image_files |
character: vector of input image files, in order that they should appear in the video. Used if |
outfile |
string: the output file. If missing, a temporary file (with extension .mp4) will be used |
fps |
numeric: frames per second |
extra |
: additional parameters passed to ffmpeg, in the form c("param", "value", "param2", "value2"). For example, |
debug |
logical: if |
The path to the video file
av::av_encode_video()
as an alternative
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.