summaryrefslogtreecommitdiff
path: root/node_modules/ffmpeg-static
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-03 02:48:28 -0700
committer8cy <[email protected]>2020-04-03 02:48:28 -0700
commitf9159ea2d994e14180fb02ab562f0119513e67cf (patch)
tree09d14cdf05456567156738b681379d4bccd64e5c /node_modules/ffmpeg-static
parent2020/04/03, 02:42, V1.2.1 (diff)
downloads5nical-f9159ea2d994e14180fb02ab562f0119513e67cf.tar.xz
s5nical-f9159ea2d994e14180fb02ab562f0119513e67cf.zip
2020/04/03, 02:47, V1.2.2
Diffstat (limited to 'node_modules/ffmpeg-static')
-rw-r--r--node_modules/ffmpeg-static/LICENSE25
-rw-r--r--node_modules/ffmpeg-static/README.md58
-rw-r--r--node_modules/ffmpeg-static/example.js36
-rw-r--r--node_modules/ffmpeg-static/ffmpeg.exebin65174016 -> 0 bytes
-rw-r--r--node_modules/ffmpeg-static/index.js22
-rw-r--r--node_modules/ffmpeg-static/install.js93
-rw-r--r--node_modules/ffmpeg-static/package.json85
7 files changed, 0 insertions, 319 deletions
diff --git a/node_modules/ffmpeg-static/LICENSE b/node_modules/ffmpeg-static/LICENSE
deleted file mode 100644
index ca61dd8..0000000
--- a/node_modules/ffmpeg-static/LICENSE
+++ /dev/null
@@ -1,25 +0,0 @@
-Copyright (c) 2020, Eugene Ware and contributors
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-3. Neither the name of Eugene Ware nor the names of its contributors
- may be used to endorse or promote products derived from this software
- without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY EUGENE WARE ''AS IS'' AND ANY
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL EUGENE WARE BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/ffmpeg-static/README.md b/node_modules/ffmpeg-static/README.md
deleted file mode 100644
index 564b245..0000000
--- a/node_modules/ffmpeg-static/README.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# ffmpeg-static
-
-**[ffmpeg](https://ffmpeg.org) static binaries for Mac OSX and Linux and Windows.**
-
-Supports macOS (64-bit), Linux (32 and 64-bit, armhf, arm64) and Windows (32 and 64-bit). [The ffmpeg version currently used is `4.2.2`.](https://github.com/eugeneware/ffmpeg-static/releases/tag/b4.2.2)
-
-*Note:* The version of `ffmpeg-static` follows [SemVer](http://semver.org). When releasing new versions, **we do *not* consider breaking changes in `ffmpeg` itself**, but only the JS interface (see below). To stop `ffmpeg-static` from breaking your code by getting updated, [lock the version down](https://docs.npmjs.com/files/package.json#dependencies) or use a [lockfile](https://docs.npmjs.com/files/package-lock.json).
-
-[![npm version](https://img.shields.io/npm/v/ffmpeg-static.svg)](https://www.npmjs.com/package/ffmpeg-static)
-[![build status](https://travis-ci.org/eugeneware/ffmpeg-static.svg?branch=master)](http://travis-ci.org/eugeneware/ffmpeg-static)
-![minimum Node.js version](https://img.shields.io/node/v/ffmpeg-static.svg)
-
-## Installation
-
-This module is installed via npm:
-
-``` bash
-$ npm install ffmpeg-static
-```
-
-*Note:* During installation, it will download the appropriate `ffmpeg` binary from the [`b4.2.2` GitHub release](https://github.com/eugeneware/ffmpeg-static/releases/tag/b4.2.2). Use and distribution of the binary releases of FFmpeg are covered by their respective license.
-
-## Example Usage
-
-Returns the path of a statically linked ffmpeg binary on the local filesystem.
-
-``` js
-var pathToFfmpeg = require('ffmpeg-static');
-console.log(pathToFfmpeg);
-```
-
-```
-/Users/j/playground/node_modules/ffmpeg-static/ffmpeg
-```
-
-Check the [example script](example.js) for a more thorough example.
-
-## Sources of the binaries
-
-[The build script](build/index.sh) downloads binaries from these locations:
-
-- [Windows builds](https://ffmpeg.zeranoe.com/builds/win64/static/)
-- [Linux builds](https://johnvansickle.com/ffmpeg/)
-- [macOS builds](https://evermeet.cx/pub/ffmpeg/)
-
-The build script extracts build information and (when possible) the license file from the downloaded package or the distribution server. Please consult the individual build's project site for exact source versions, which you can locate based on the version information included in the README file.
-
-## Show your support
-
-This npm package includes statically linked binaries that are produced by the following individuals. Please consider supporting and donating to them who have been providing quality binary builds for many years:
-
-- **Windows builds**: [Kyle Schwarz](https://ffmpeg.zeranoe.com/builds/)
-- **Linux builds**: [John Van Sickle](https://www.johnvansickle.com/ffmpeg/)
-- **macOS builds**: [Helmut K. C. Tessarek](https://evermeet.cx/ffmpeg/#donations)
-
-## Building the project
-
-The `unzip`, `tar` and `7zr` CLI executables need to be installed. On macOS, use `brew install p7zip gnu-tar xz`.
diff --git a/node_modules/ffmpeg-static/example.js b/node_modules/ffmpeg-static/example.js
deleted file mode 100644
index b26a51a..0000000
--- a/node_modules/ffmpeg-static/example.js
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env node
-'use strict'
-
-const {join} = require('path')
-const shell = require('any-shell-escape')
-const {exec} = require('child_process')
-
-const argv = process.argv.slice(2)
-if (argv.includes('-h') || argv.includes('--help')) {
- console.info(`
-This is just a simple CLI wrapper around the powerful ffmpeg CLI tool.
-This script just showcases how to use ffmpeg-static; It wouldn't make
-sense to hide a flexible tool behind a limited wrapper script.
-Usage:
- ./example.js src-audio-file.m4a dest-audio-file.mp3
-`)
- process.exit(0)
-}
-
-const [src, dest] = argv
-const makeMp3 = shell([
- 'ffmpeg', '-y', '-v', 'error',
- '-i', join(process.cwd(), src),
- '-acodec', 'mp3',
- '-format', 'mp3',
- join(process.cwd(), dest)
-])
-
-exec(makeMp3, (err) => {
- if (err) {
- console.error(err)
- process.exit(1)
- } else {
- console.info('done!')
- }
-})
diff --git a/node_modules/ffmpeg-static/ffmpeg.exe b/node_modules/ffmpeg-static/ffmpeg.exe
deleted file mode 100644
index edaef75..0000000
--- a/node_modules/ffmpeg-static/ffmpeg.exe
+++ /dev/null
Binary files differ
diff --git a/node_modules/ffmpeg-static/index.js b/node_modules/ffmpeg-static/index.js
deleted file mode 100644
index acaf018..0000000
--- a/node_modules/ffmpeg-static/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var os = require('os')
-var path = require('path')
-
-var binaries = Object.assign(Object.create(null), {
- darwin: ['x64'],
- linux: ['x64', 'ia32', 'arm64', 'arm'],
- win32: ['x64', 'ia32']
-})
-
-var platform = os.platform()
-var arch = os.arch()
-
-var ffmpegPath = path.join(
- __dirname,
- platform === 'win32' ? 'ffmpeg.exe' : 'ffmpeg'
-)
-
-if (!binaries[platform] || binaries[platform].indexOf(arch) === -1) {
- ffmpegPath = null
-}
-
-module.exports = ffmpegPath
diff --git a/node_modules/ffmpeg-static/install.js b/node_modules/ffmpeg-static/install.js
deleted file mode 100644
index d65ed6e..0000000
--- a/node_modules/ffmpeg-static/install.js
+++ /dev/null
@@ -1,93 +0,0 @@
-'use strict'
-
-var fs = require("fs");
-var os = require("os");
-var ProgressBar = require("progress");
-var get = require("simple-get");
-var ffmpegPath = require(".");
-var pkg = require("./package");
-
-const exitOnError = (err) => {
- console.error(err)
- process.exit(1)
-}
-const exitOnErrorOrWarnWith = (msg) => (err) => {
- if (err.statusCode === 404) console.warn(msg)
- else exitOnError(err)
-}
-
-if (!ffmpegPath) {
- exitOnError('ffmpeg-static install failed: No binary found for architecture')
-}
-
-const noop = () => {}
-function downloadFile(url, destinationPath, progressCallback = noop) {
- let fulfill, reject;
- let totalBytes = 0;
-
- const promise = new Promise((x, y) => {
- fulfill = x;
- reject = y;
- });
-
- get(url, function(err, response) {
- if (err || response.statusCode !== 200) {
- err = err || new Error('Download failed.')
- if (response) {
- err.url = url
- err.statusCode = response.statusCode
- }
- reject(err)
- return;
- }
-
- const file = fs.createWriteStream(destinationPath);
- file.on("finish", () => fulfill());
- file.on("error", error => reject(error));
- response.pipe(file);
-
- totalBytes = parseInt(response.headers["content-length"], 10);
-
- if (progressCallback) {
- response.on("data", function(chunk) {
- progressCallback(chunk.length, totalBytes);
- });
- }
- });
-
- return promise;
-}
-
-let progressBar = null;
-function onProgress(deltaBytes, totalBytes) {
- if (!progressBar) {
- progressBar = new ProgressBar(`Downloading ffmpeg [:bar] :percent :etas `, {
- complete: "|",
- incomplete: " ",
- width: 20,
- total: totalBytes
- });
- }
-
- progressBar.tick(deltaBytes);
-}
-
-const release = (
- process.env.FFMPEG_BINARY_RELEASE ||
- pkg['ffmpeg-static'].binary_release
-)
-const downloadUrl = `https://github.com/eugeneware/ffmpeg-static/releases/download/${release}/${os.platform()}-${os.arch()}`
-const readmeUrl = `${downloadUrl}.README`
-const licenseUrl = `${downloadUrl}.LICENSE`
-
-downloadFile(downloadUrl, ffmpegPath, onProgress)
-.then(() => {
- fs.chmodSync(ffmpegPath, 0o755) // make executable
-})
-.catch(exitOnError)
-
-.then(() => downloadFile(readmeUrl, `${ffmpegPath}.README`))
-.catch(exitOnErrorOrWarnWith('Failed to download the ffmpeg README.'))
-
-.then(() => downloadFile(licenseUrl, `${ffmpegPath}.LICENSE`))
-.catch(exitOnErrorOrWarnWith('Failed to download the ffmpeg LICENSE.'))
diff --git a/node_modules/ffmpeg-static/package.json b/node_modules/ffmpeg-static/package.json
deleted file mode 100644
index 9867b1c..0000000
--- a/node_modules/ffmpeg-static/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "_from": "ffmpeg-static@^4.0.1",
- "_id": "[email protected]",
- "_inBundle": false,
- "_integrity": "sha512-tUGBiessDvslK6jfVpfrhm6NvXPrIOclSVsqI8FGx4uDPN6xvdH8mGghcZDOjXky65FjaRPcTu3y/8Ne6VXRtQ==",
- "_location": "/ffmpeg-static",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "ffmpeg-static@^4.0.1",
- "name": "ffmpeg-static",
- "escapedName": "ffmpeg-static",
- "rawSpec": "^4.0.1",
- "saveSpec": null,
- "fetchSpec": "^4.0.1"
- },
- "_requiredBy": [
- "#USER",
- "/"
- ],
- "_resolved": "https://registry.npmjs.org/ffmpeg-static/-/ffmpeg-static-4.0.1.tgz",
- "_shasum": "0833e010ef96251e1d4c1ca67ebcf0d036be9662",
- "_spec": "ffmpeg-static@^4.0.1",
- "_where": "E:\\Documents\\GitHub\\s5nical",
- "authors": [
- "Eugene Ware <[email protected]>",
- "contributors"
- ],
- "bugs": {
- "url": "https://github.com/eugeneware/ffmpeg-static/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Jannis R",
- "email": "[email protected]"
- }
- ],
- "dependencies": {
- "progress": "^2.0.3",
- "simple-get": "^3.1.0"
- },
- "deprecated": false,
- "description": "ffmpeg static binaries for Mac OSX and Linux and Windows",
- "devDependencies": {
- "any-shell-escape": "^0.1.1",
- "tape": "^4.11.0"
- },
- "engines": {
- "node": ">=10"
- },
- "ffmpeg-static": {
- "binary_release": "b4.2.2"
- },
- "files": [
- "index.js",
- "install.js",
- "example.js"
- ],
- "homepage": "https://github.com/eugeneware/ffmpeg-static#readme",
- "keywords": [
- "ffmpeg",
- "static",
- "library",
- "binary",
- "binaries",
- "mac",
- "linux",
- "windows"
- ],
- "license": "GPL-3.0-or-later",
- "main": "index.js",
- "name": "ffmpeg-static",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/eugeneware/ffmpeg-static.git"
- },
- "scripts": {
- "install": "node install.js",
- "prepublishOnly": "npm test",
- "test": "tape test/*.js"
- },
- "version": "4.0.1"
-}