ffmpeg-static-all-platforms
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i ffmpeg-static-all-platforms

Weekly Downloads

33

Version

1.0.1

License

GPL-3.0-or-later

Unpacked Size

469 MB

Total Files

38

Last publish

Collaborators

  • zwizu