Skip to content

Commit

Permalink
Use the specified ffmpeg path when detecting format (thomasp85#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaelens authored and VolodiaPG committed May 26, 2023
1 parent f55a949 commit 933a5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/renderers.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,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"
Expand Down

0 comments on commit 933a5d9

Please sign in to comment.