videoshow icon indicating copy to clipboard operation
videoshow copied to clipboard

Error: Cannot find ffmpeg

Open nailburak opened this issue 7 years ago • 5 comments

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.

nailburak avatar May 30 '17 19:05 nailburak

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

h2non avatar May 30 '17 22:05 h2non

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

phil-andrews avatar Mar 03 '18 19:03 phil-andrews

Hi! Anyone can help how to install ffmpeg inside the dokku container ?

qpbp avatar Sep 16 '18 13:09 qpbp

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);

MuhammadAbbasAkhtar avatar Dec 03 '20 18:12 MuhammadAbbasAkhtar

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

viol3 avatar Jan 29 '23 09:01 viol3