View source: R/ffmpeg_convert.R
ffmpeg_convert | R Documentation |
Convert Files using FFMPEG
ffmpeg_convert(
file,
outfile = tempfile(fileext = paste0(".", tools::file_ext(file))),
overwrite = TRUE,
args = NULL
)
file |
Video/PNG file to convert |
outfile |
output file |
overwrite |
should output file be overwritten? |
args |
arguments to pass to |
A character string of the output file with different attributes
pngfile <- tempfile(fileext = ".png")
png(pngfile)
plot(0, 0)
dev.off()
if (have_ffmpeg_exec()) {
res <- ffmpeg_convert(pngfile)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.