1.0.1 • Published 2 years ago

ffmpeg-static-all-platforms v1.0.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
2 years ago

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-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 - add ffmpeg-static-all-platforms as dependency
  • update build.files property of package.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

ffmpeg-static

Building the project

The unzip, tar and 7zr CLI executables need to be installed. On macOS, use brew install p7zip gnu-tar xz.