mp4-convert
v1.0.2
Published
Convert any video file into a MP4 file playable on the Web, using ffmpeg
Downloads
23
Readme
mp4-convert
Requirements
ffmpeg
(includesffprobe
)
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();