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

js-ffmpeg

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-ffmpeg

JS FFMpeg

  • 0.0.38
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
187
decreased by-1.58%
Maintainers
2
Weekly downloads
 
Created
Source

js-ffmpeg

This is a simple wrapper for FFMPEG and FFPROBE.

Getting Started

	git clone https://github.com/jsonize/js-ffmpeg.git
	npm install
	grunt

Basic Usage

	ffmpeg = require('js-ffmpeg');
	
	// raw call of ffprobe
	ffmpeg.ffprobe('video.mp4').success(function (json) {
		console.log(json);
	}).error(function (error) {
		console.log(error);
	});
	
	// improved and simplified values and errors
	ffmpeg.ffprobe_simple('video.mp4').success(function (json) {
		console.log(json);
	}).error(function (error) {
		console.log(error);
	});
	
	// raw call of ffmpeg (source(s), arguments, target, progress callback)
	ffmpeg.ffmpeg('video.mp4', [...], 'output.mp4', function (progress) {
		console.log(progress);
	}).success(function (json) {
		console.log(json);
	}).error(function (error) {
		console.log(error);
	});
	
	// improved and simplified call of ffmpeg (source(s), arguments, target, progress callback)
	ffmpeg.ffmpeg_simple('video.mp4', {
		width: 640,
		height: 360,
		auto_rotate: true,
		ratio_strategy: "fixed",
		shrink_strategy: "crop",
		mixed_strategy: "crop-pad",
		stretch_strategy: "pad"
	}, 'output.mp4', function (progress) {
		console.log(progress);
	}).success(function (json) {
		console.log(json);
	}).error(function (error) {
		console.log(error);
	});

Contributors

  • Ziggeo
  • Oliver Friedmann

License

Apache-2.0

FAQs

Package last updated on 30 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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