mp4-convert

1.0.2 • Public • Published

mp4-convert

Requirements

  • ffmpeg (includes ffprobe)

How to run the CLI

  • npm install mp4-convert
  • node_modules/.bin/mp4-convert somevideo.mkv output.mp4

How to use programmatically

var convert = new Mp4Convert(input, output);
convert.on('ffprobeCommand', function(cmd) {
    console.log('Command', cmd);
});
convert.on('ffprobeOutput', function(json) {
    console.log('ffprobe output');
});
convert.on('progress', function(p) {
    console.log('Progress', p);
});
convert.on('done', function() {
    console.log('Done');
});
convert.start();

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i mp4-convert

      Weekly Downloads

      7

      Version

      1.0.2

      License

      MIT

      Last publish

      Collaborators

      • julien-c