I installed ffmpeg and following the example in the docs : https://www.npmjs.com/package/ffmpeg
var ffmpeg = require('ffmpeg');
try {
var process = new ffmpeg('myfile.gif');
process.then(function (video) {
video.save('newfile.mp4', function (error, file) {
if (!error)
console.log('Video file: ' + file);
});
}, function (err) {
console.log('Error: ' + err);
});
} catch (e) {
console.log(e.code);
console.log(e.msg);
}
myfile.gif is present in the folder. Im not getting any error logged in the console. No newfile is created. What am I doing wrong? Please help.
via Somename
No comments:
Post a Comment