javascript - Converting video to .mp4 with Node.js -
i want able this:
var converter = require('converter'); converter.convert({ from: 'avi', to: 'mp4', path: '/myvideo.avi', newpath: '/newvideo.mp4', error: function(err) {}, success: function() { console.log('success!'); } }); thanks!
well, 1 converter converts between xml, json, , yaml. so, won't able convert avi mp4 that.
however, have used node spawn child ffmpeg process thing. fyi, if choose use ffmpeg via child process , want watch log progress , debugging, need watch stderr. ffmpeg reserves stdout optionally stream output of conversion.
Comments
Post a Comment