fluent-ffmpeg
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -1,1 +0,1 @@ | ||
module.exports = process.env.FLUENTFFMPEG_COV ? require('./lib-cov/fluent-ffmpeg') : require('./lib/fluent-ffmpeg'); | ||
module.exports = require('./lib/fluent-ffmpeg'); |
@@ -18,3 +18,3 @@ /*jshint node:true*/ | ||
var encodersRegexp = /^\s*([VAS\.])([F\.])([S\.])([X\.])([B\.])([D\.]) ([^ ]+) +(.*)$/; | ||
var formatRegexp = /^\s*([D ])([E ]) ([^ ]+) +(.*)$/; | ||
var formatRegexp = /^\s*([D ])([E ])\s+([^ ]+)\s+(.*)$/; | ||
var lineBreakRegexp = /\r\n|\r|\n/; | ||
@@ -21,0 +21,0 @@ var filterRegexp = /^(?: [T\.][S\.][C\.] )?([^ ]+) +(AA?|VV?|\|)->(AA?|VV?|\|) +(.*)$/; |
@@ -155,3 +155,3 @@ /*jshint node:true, laxcomma:true*/ | ||
var src = input.isStream ? 'pipe:0' : input.source; | ||
var ffprobe = spawn(path, ['-show_streams', '-show_format'].concat(options, src)); | ||
var ffprobe = spawn(path, ['-show_streams', '-show_format'].concat(options, src), {windowsHide: true}); | ||
@@ -162,3 +162,3 @@ if (input.isStream) { | ||
ffprobe.stdin.on('error', function(err) { | ||
if (['ECONNRESET', 'EPIPE'].indexOf(err.code) >= 0) { return; } | ||
if (['ECONNRESET', 'EPIPE', 'EOF'].indexOf(err.code) >= 0) { return; } | ||
handleCallback(err); | ||
@@ -165,0 +165,0 @@ }); |
@@ -10,4 +10,2 @@ /*jshint node:true*/ | ||
var nlRegexp = /\r\n|\r|\n/g; | ||
/* | ||
@@ -443,4 +441,5 @@ *! Processor methods | ||
niceness: self.options.niceness, | ||
cwd: self.options.cwd | ||
}, | ||
cwd: self.options.cwd, | ||
windowsHide: true | ||
}, | ||
@@ -469,5 +468,4 @@ function processCB(ffmpegProc, stdoutRing, stderrRing) { | ||
// Setup timeout if requested | ||
var processTimer; | ||
if (self.options.timeout) { | ||
processTimer = setTimeout(function() { | ||
self.processTimer = setTimeout(function() { | ||
var msg = 'process ran into a timeout (' + self.options.timeout + 's)'; | ||
@@ -539,2 +537,3 @@ | ||
function endCB(err, stdoutRing, stderrRing) { | ||
clearTimeout(self.processTimer); | ||
delete self.ffmpegProc; | ||
@@ -564,3 +563,3 @@ | ||
function(output, cb) { | ||
spawn(flvtool, ['-U', output.target]) | ||
spawn(flvtool, ['-U', output.target], {windowsHide: true}) | ||
.on('error', function(err) { | ||
@@ -598,2 +597,4 @@ cb(new Error('Error running ' + flvtool + ' on ' + output.target + ': ' + err.message)); | ||
}); | ||
return this; | ||
}; | ||
@@ -627,3 +628,3 @@ | ||
var pid = this.ffmpegProc.pid; | ||
var renice = spawn('renice', [niceness, '-p', pid]); | ||
var renice = spawn('renice', [niceness, '-p', pid], {windowsHide: true}); | ||
@@ -630,0 +631,0 @@ renice.on('error', function(err) { |
@@ -377,3 +377,3 @@ /*jshint node:true*/ | ||
* | ||
* @param {Numebr} maxLines maximum number of lines to store (<= 0 for unlimited) | ||
* @param {Number} maxLines maximum number of lines to store (<= 0 for unlimited) | ||
*/ | ||
@@ -380,0 +380,0 @@ linesRing: function(maxLines) { |
{ | ||
"name": "fluent-ffmpeg", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "A fluent API to FFMPEG (http://www.ffmpeg.org)", | ||
@@ -22,17 +22,19 @@ "keywords": [ | ||
"devDependencies": { | ||
"mocha": "latest", | ||
"should": "latest", | ||
"jsdoc": "latest" | ||
"jsdoc": "^4.0.0", | ||
"mocha": "^10.0.0", | ||
"nyc": "^15.1.0", | ||
"should": "^13.0.0" | ||
}, | ||
"dependencies": { | ||
"async": ">=0.2.9", | ||
"async": "^0.2.9", | ||
"which": "^1.1.1" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
"node": ">=18" | ||
}, | ||
"main": "index", | ||
"scripts": { | ||
"test": "make test" | ||
"test": "NODE_ENV=test nyc mocha --require should --reporter spec", | ||
"coverage": "nyc report --reporter=lcov" | ||
} | ||
} |
@@ -1,3 +0,9 @@ | ||
# Fluent ffmpeg-API for node.js [![Build Status](https://secure.travis-ci.org/fluent-ffmpeg/node-fluent-ffmpeg.svg?branch=master)](http://travis-ci.org/fluent-ffmpeg/node-fluent-ffmpeg) | ||
# Fluent ffmpeg-API for node.js | ||
[![Coverage Status](https://coveralls.io/repos/github/fluent-ffmpeg/node-fluent-ffmpeg/badge.svg?branch=master)](https://coveralls.io/github/fluent-ffmpeg/node-fluent-ffmpeg?branch=master) | ||
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffluent-ffmpeg%2Fnode-fluent-ffmpeg.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffluent-ffmpeg%2Fnode-fluent-ffmpeg?ref=badge_shield) | ||
> **Fluent-ffmpeg is looking for new maintainers** | ||
> More details [on the wiki](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/wiki/Looking-for-a-new-maintainer) | ||
This library abstracts the complex command-line usage of ffmpeg into a fluent, easy to use node.js module. In order to be able to use this module, make sure you have [ffmpeg](http://www.ffmpeg.org) installed on your system (including all necessary encoding libraries like libmp3lame or libx264). | ||
@@ -179,3 +185,3 @@ | ||
This method allows passing any input-related option to ffmpeg. You can call it with a single argument to pass a single option, optionnaly with a space-separated parameter: | ||
This method allows passing any input-related option to ffmpeg. You can call it with a single argument to pass a single option, optionally with a space-separated parameter: | ||
@@ -633,3 +639,3 @@ ```js | ||
This method allows passing any output-related option to ffmpeg. You can call it with a single argument to pass a single option, optionnaly with a space-separated parameter: | ||
This method allows passing any output-related option to ffmpeg. You can call it with a single argument to pass a single option, optionally with a space-separated parameter: | ||
@@ -1459,8 +1465,2 @@ ```js | ||
If you want to re-generate the test coverage report (filed under test/coverage.html), run | ||
```sh | ||
$ make test-cov | ||
``` | ||
Make sure your ffmpeg installation is up-to-date to prevent strange assertion errors because of missing codecs/bugfixes. | ||
@@ -1490,1 +1490,4 @@ | ||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffluent-ffmpeg%2Fnode-fluent-ffmpeg.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffluent-ffmpeg%2Fnode-fluent-ffmpeg?ref=badge_large) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
12369124
128
5730
1489
18
4
+ Addedasync@0.2.10(transitive)
- Removedasync@3.2.6(transitive)
Updatedasync@^0.2.9