npm

Need private packages and team management tools?Check out npm Orgs. »

ffmpeg-static-electron

2.0.1 • Public • Published

ffmpeg-static-electron

-->Modified version<-- adding browser, as a platform option, for use case when module is bundled using browserify. and added to html using src.The module untimately it returns a file path to the binary. This is tailored for a use case such as that of autoEdit.io where it is an electron app where the front end is in backbone and bundled with browserify, while the backend, is a series of node modules, where the code to run ffmpeg ultimatly resides.

see alsomodified ffmpeg-static


ffmpeg static binaries for Mac OSX and Linux and Windows

build status

Installation

This module is installed via npm:

$ npm install ffmpeg-static-electron

Example Usage

Returns the path of a statically linked ffmpeg binary on the local filesystem.

var ffmpeg = require('ffmpeg-static-electron');
console.log(ffmpeg.path);
// /Users/eugeneware/Dropbox/work/ffmpeg-static/bin/darwin/x64/ffmpeg

Currently supports Mac OS X (64-bit), Linux (32 and 64-bit) and Windows (32 and 64-bit).

Currently version 3.1 is installed for Mac and Linux, and 3.0.1 for Windows.

I pulled the versions from the ffmpeg static build pages linked from the official ffmpeg site. Namely:

NB: Open to pull requests to update this module with the latest versions.

Ideally I'd like to dynamically pull the latest version down, but this requires access to 7-zip which and being able to untar xz files.

And I couldn't find a good js-only decoders for these files either.

So, for now it's just embedded binaries.

install

npm i ffmpeg-static-electron

Downloadsweekly downloads

36

version

2.0.1

license

BSD-3-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability