imager icon indicating copy to clipboard operation
imager copied to clipboard

Error in load.video.internal(f, skip.to = skip.to, maxSize = maxSize, : Can't find ffmpeg. Please install.

Open englianhu opened this issue 5 years ago • 1 comments

> library('magick')
> library('imager')
> library('googleLanguageR')
> 
> lnk <- 'https://scontent-yyz1-1.xx.fbcdn.net/v/t66.18014-6/42832823_1854945517918295_8803608342512894293_n.mp4?_nc_cat=110&efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&oh=08e0a1bce580184048cd33489d3c254c&oe=5C3DAE2F'
> vfile <- tempfile()
> 
> if (file.exists(vfile)) {
+   vday <- load.video(vfile)
+   play(vday)
+ } else {
+   download.file(lnk, vfile, mode = 'wb')
+   vday <- load.video(vfile)
+   play(vday)
+ }
trying URL 'https://scontent-yyz1-1.xx.fbcdn.net/v/t66.18014-6/42832823_1854945517918295_8803608342512894293_n.mp4?_nc_cat=110&efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&oh=08e0a1bce580184048cd33489d3c254c&oe=5C3DAE2F'
Content type 'video/mp4' length 5844502 bytes (5.6 MB)
downloaded 5.6 MB

Error in load.video.internal(f, skip.to = skip.to, maxSize = maxSize,  : 
  Can't find ffmpeg. Please install.

When I downloaded the ffmpeg and extract it, it is a portable folder which includes a bin folder.

englianhu avatar Oct 18 '18 14:10 englianhu

You have to set the environmental variable "PATH" correctly. You should check how to install ffmpeg.

ShotaOchi avatar Oct 18 '18 17:10 ShotaOchi