image2video: Convert an image sequence to a video or animated gif

View source: R/Image2Video.R

image2videoR Documentation

Convert an image sequence to a video or animated gif

Description

requires ffmpeg for video conversion: https://www.ffmpeg.org/

Usage

image2video(
  folder = getwd(),
  i.format = "png",
  container = "mp4",
  fps = 8,
  last = 2,
  loop = 0
)

Arguments

folder

folder with image sequence

i.format

image format (png, jpeg, pdf only working for gif conversion)

container

movie container: mp4, mov, avi, gif

fps

frames per second used

last

length of last frame in seconds

loop

loop gif (0=True,1=False)

cex

text size

Examples

x<-sample(paste("group",LETTERS[1:5]),200,T)
ani.barplot(prop.table(table(x)),folder="ani.barplot",format="png")
image2video(folder="./ani.barplot",cont="mov",i.f="png")

ingmarboeschen/graphing documentation built on Jan. 14, 2025, 7:32 a.m.