Skip to contents

Does not require node or editly to be installed on your system, instead requires that Docker is running and that you have pulled a suitable editly docker image. By default this is scienceuntangled/editly, which uses a modified version of editly. Other editly docker images can be used, but will not support the logo_* parameters in er_header or er_spec.

Usage

er_exec_docker(
  spec,
  docker_image = "scienceuntangled/editly",
  fast = FALSE,
  extra_docker_args
)

Arguments

spec

er_spec: an er_spec object as returned by er_spec()

docker_image

string: name of the docker image to use

fast

logical: if TRUE, run editly in 'fast' (low quality/preview) mode

extra_docker_args

character: additional arguments to pass to the docker command, e.g. extra_docker_args = c("--cpu-shares", "512") will limit the docker containiner's CPU priority when CPU cycles are limited (see https://docs.docker.com/config/containers/resource_constraints/)

Value

0 for success (invisibly)

Examples

if (FALSE) {
  clips <- list(er_clip_title2(duration = 3, text = "Title slide"),
                er_clip_image(duration = 3, path = "https://jeroen.github.io/images/Rlogo.png"))
  outfile <- tempfile(fileext = ".mp4")
  my_spec <- er_spec(clips = clips , out_path = outfile, allow_remote_requests = TRUE)
  er_exec_docker(my_spec)
  if (interactive()) browseURL(outfile)
}