video-format-converter

1.1.0 • Public • Published

Video/Audio format converter

Video/Audio format converter that uses ffmpeg and fluent-ffmpeg

Build Status

installation

npm install video-converter

you should also have ffmpeg installed on your machine

usage

 
var converter = require('format-converter');
 
converter.setFfmpegPath("path/to/ffmpeg", function(err) {
    if (err) throw err;
});
 
// convert mp4 to mp3
converter.convert("sample.mp4", "sample.mp3", function(err) {
    if (err) throw err;
    console.log("done");
});
 
// get the percentage
converter.on("progress", function(percentage) {
    console.log(percentage);
});
 
 

Package Sidebar

Install

npm i video-format-converter

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • thacoderr