#' ReVuePro: ffmpeg_dir
#'
#' A function used to write a directory key to ffmpeg.
#' @details The directory key written by this function is called upon by the following functions by defaults; vid2im, motion_sense, and motion_quant.
#' @param directory A path to ffmpeg.exe
#' @examples
#' source = "C:/ffmpeg.exe"
#' ffmpeg_dir(source)
#' @export
ffmpeg_dir = function(directory){
dir_save = paste(.libPaths()[1], "/ffmpeg", sep = "")
setwd(.libPaths()[1])
dir.create("ffmpeg")
setwd(dir_save)
write(directory, "FFMPEG_DIRECTORY.txt")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.