GithubHelp home page GithubHelp logo

pietrop / ffmpeg-static-electron Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eugeneware/ffmpeg-static

54.0 1.0 20.0 144.84 MB

ffmpeg static binaries for Mac OSX and Linux and Windows

License: GNU General Public License v3.0

JavaScript 100.00%

ffmpeg-static-electron's Introduction

ffmpeg-static-electron

The module returns a file path to the binary for the target operating system.

It is a modified version from the original ffmpeg-static to use electron-builder file macros in package.json, where OS name are maclinux or win

In ffmpeg-static, recognising the target OS is done with os.platform() where mac os x is recognised asdarwin rather then mac.

The need to tailor ffmpeg-static to use with electron-builder came from a use cases such as that of autoEdit.io.

See here for more info on How to package ffmpeg with the fluent-ffmpeg node library in electron, so that you only ship the binaries for the target operating system

There is also ffprobe-static-electron


ffmpeg static binaries for Mac OSX and Linux and Windows

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.

ffmpeg-static-electron's People

Contributors

eugeneware avatar pietrop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ffmpeg-static-electron's Issues

License Concerns

So this repo seems to be licensed under a custom BSD like license.

But you're clearly dependent on FFmpeg, which is GPLv2/GPLv3 and (or if properly compiled and documented, LGPLv2/LGPLv3).

I see you're re-distributing binaries for FFmpeg. Not only that, you're re-distributing binaries built by Zeranoe. All of the Zeranoe builds are expressly (L)GPLv3 (with nightly builds available only under GPLv3):
image

FFmpeg has some notes on license compliance, and I'm not convinced your project is compliant. Worse, by licensing your project under a BSD-like license without any mention that the FFmpeg binaries you're distributing are GPLv3, I think you mislead others who might use this project to include FFmpeg in projects that aren't compatible with GPLv3.

I would recommend you reach out to the FFmpeg project to see what changes they might recommend. The easiest paths are probably to re-license this project under GPLv3 or stop distributing FFmpeg binaries and instead automate the fetching of those binaries. Either way, I do think you need to be explicit about what license FFmpeg is using.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.