This is a modified module from here
ffmpeg static binaries for Mac OSX, Linux, and Windows.
Note: This version of ffmpeg-bin-electron
follows SemVer. When releasing new versions, we do not consider breaking changes in ffmpeg
itself, but only the JS interface (see below). To stop ffmpeg-bin-electron
from breaking your code by getting updated, lock the version down or use a lockfile.
In order to download and prep the binaries you may need to change permissions for the shell script:
chmod +x binaries.sh
To run the script either execute sudo ./binaries.sh
or sudo yarn run build-bin
npm install --save ffmpeg-bin-electron
# or
yarn add ffmpeg-bin-electron
// ES6
import ffmpegPath from 'ffmpeg-bin-electron';
// ES5
const ffmpegPath = require('ffmpeg-bin-electron').default;
console.log(ffmpegPath);
// /Users/craigoconnor/Projects/ffmpeg-test/ffmpeg-bin-electron/bin/darwin/x64/ffmpeg
All binaries came from here
Copyright 2019 Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC") Copyright (c) 1995-2003 by Internet Software Consortium
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.