1.0.1 • Published 3 years ago
ffmpeg-static-all-platforms v1.0.1
ffmpeg-static-all-platforms
ffmpeg static binaries for Mac OSX and Linux and Windows (all in one package)
Forked with love from ffmpeg-static@5.0.2 + TS typing included
Installation
This module is installed via npm:
$ npm install ffmpeg-static-all-platformsExample 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/ffmpegElectron usage
release/app/package.json- addffmpeg-static-all-platformsas dependency- update
build.filesproperty ofpackage.jsonin 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.