Comparing version 0.0.26 to 0.0.27
{ | ||
"name": "js-ffmpeg", | ||
"description": "JS FFMpeg", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"author": "Ziggeo", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/jsonize/js-ffmpeg", |
@@ -123,2 +123,13 @@ Scoped.require([ | ||
paramsHighQualityGif: function (options) { | ||
var args = []; | ||
args.push("-filter_complex [0:v]"); | ||
if (options.framerate) | ||
args.push("fps=" + options.framerate + ","); | ||
if (options.width || options.height) | ||
args.push("scale=w=" + (options.width || -1) + ":h=" + (options.height || -1) + ":flags=lanczos,"); | ||
args.push("split[a][b];[a]palettegen[p];[b][p]paletteuse"); | ||
return args.join(""); | ||
}, | ||
parseProgress: function (progress, duration) { | ||
@@ -125,0 +136,0 @@ var raw = {}; |
@@ -379,3 +379,3 @@ Scoped.require([ | ||
// Video Filters | ||
if (vfilters) { | ||
if (vfilters && options.output_type !== "gif") { | ||
args.push("-vf"); | ||
@@ -427,2 +427,9 @@ args.push(vfilters); | ||
} | ||
if (options.output_type === "gif") { | ||
args.push(helpers.paramsHighQualityGif({ | ||
"width": options.width, | ||
"height": options.height, | ||
"framerate": options.framerate | ||
})); | ||
} | ||
@@ -429,0 +436,0 @@ |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
846516
41
2046
48