Open englianhu opened 5 years ago
> 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.
ffmpeg
bin
You have to set the environmental variable "PATH" correctly. You should check how to install ffmpeg.
When I downloaded the
ffmpeg
and extract it, it is a portable folder which includes abin
folder.