videoshow
videoshow copied to clipboard
Error: Cannot find ffmpeg
Here my package.json file
{
"name": "frames-to-video",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "me",
"license": "ISC",
"dependencies": {
"fluent-ffmpeg": "^2.1.2",
"videoshow": "^0.1.11"
}
}
I just copied the code which is in the readme.md file and I got this error.
Please, ensure you have ffmpeg
installed in your system, otherwise the binary cannot be found.
You can download it from: https://ffmpeg.org/download.html
Easiest way to do this is to use homebrew
.
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools
Hi! Anyone can help how to install ffmpeg inside the dokku container ?
In NodeJS I had to install these : @ffmpeg-installer/ffmpeg @ffprobe-installer/ffprobe
and then in videoshow/lib/index.js: const ffprobePath = require('@ffprobe-installer/ffprobe').path; const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path; var ffmpeg = require('fluent-ffmpeg') ffmpeg.setFfmpegPath(ffmpegPath); ffmpeg.setFfprobePath(ffprobePath);
In NodeJS I had to install these : @ffmpeg-installer/ffmpeg @ffprobe-installer/ffprobe
and then in videoshow/lib/index.js: const ffprobePath = require('@ffprobe-installer/ffprobe').path; const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path; var ffmpeg = require('fluent-ffmpeg') ffmpeg.setFfmpegPath(ffmpegPath); ffmpeg.setFfprobePath(ffprobePath);
this worked for me