ffmpeg_convert: Convert Files using FFMPEG

View source: R/ffmpeg_convert.R

ffmpeg_convertR Documentation

Convert Files using FFMPEG

Description

Convert Files using FFMPEG

Usage

ffmpeg_convert(
  file,
  outfile = tempfile(fileext = paste0(".", tools::file_ext(file))),
  overwrite = TRUE,
  args = NULL
)

Arguments

file

Video/PNG file to convert

outfile

output file

overwrite

should output file be overwritten?

args

arguments to pass to system2 to pass to ffmpeg

Value

A character string of the output file with different attributes

Examples

pngfile <- tempfile(fileext = ".png")
png(pngfile)
plot(0, 0)
dev.off()
if (have_ffmpeg_exec()) {
  res <- ffmpeg_convert(pngfile)
}

seankross/ari documentation built on July 18, 2023, 4:35 p.m.