Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-ffmpeg

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-ffmpeg - npm Package Compare versions

Comparing version 0.0.26 to 0.0.27

demos/video_to_gif.js

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc