From 81d3fd522a26890f022a833dab3cadd1e1f0994d Mon Sep 17 00:00:00 2001 From: rfaelens Date: Wed, 11 Sep 2019 11:55:48 +0200 Subject: [PATCH] Use the specified ffmpeg path when detecting format --- R/renderers.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/renderers.R b/R/renderers.R index ca4ee76..eef5b41 100644 --- a/R/renderers.R +++ b/R/renderers.R @@ -165,7 +165,7 @@ ffmpeg_renderer <- function(format = 'auto', ffmpeg = NULL, options = list(pix_f if (!has_ffmpeg(ffmpeg)) stop('The ffmpeg library is not available at the specified location', call. = FALSE) if (format == 'auto') { format <- if (.Platform$GUI == "RStudio" && - any(grepl('--enable-libvpx', system2('ffmpeg', '-version', stdout = TRUE)))) { + any(grepl('--enable-libvpx', system2(ffmpeg, '-version', stdout = TRUE)))) { "webm" } else { "mp4"