ffmpeg-static-all-platforms
v1.0.1
Published
ffmpeg static binaries for Mac OSX and Linux and Windows
Downloads
124
Maintainers
Readme
ffmpeg-static-all-platforms
ffmpeg static binaries for Mac OSX and Linux and Windows (all in one package)
Forked with love from [email protected] + TS typing included
Installation
This module is installed via npm:
$ npm install ffmpeg-static-all-platforms
Example Usage
Returns the path of a statically linked ffmpeg binary on the local filesystem.
import ffmpegPath from "ffmpeg-static-all-platforms";
console.log(ffmpegPath);
// /Users/j/projects/sample-project/node_modules/ffmpeg-static/bin/darwin/x64/ffmpeg
Electron usage
release/app/package.json
- addffmpeg-static-all-platforms
as dependency- update
build.files
property ofpackage.json
in root of electron project
"files": [
...
"!**/node_modules/ffmpeg-static-all-platforms/**",
"**/node_modules/ffmpeg-static-all-platforms/bin/${platform}/${arch}/**",
"**/node_modules/ffmpeg-static-all-platforms/index.js",
"**/node_modules/ffmpeg-static-all-platforms/package.json",
...
],
Show your support
Building the project
The unzip
, tar
and 7zr
CLI executables need to be installed. On macOS, use brew install p7zip gnu-tar xz
.