Monday, 3 April 2017

Issues executing ffmpeg on windows

Installed ffmpeg. Added the PATH in system Environment Variables and can execute ffmpeg from anywhere in the cmd. Installed fluent-ffmpeg. Below is my script:

var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var ffmpeg = require('fluent-ffmpeg');  

var proc = new ffmpeg({ source: 'myfile.gif' })
  .withAspect('4:3')
  .withSize('640x480')
  .applyAutopadding(true, 'white')
  .saveToFile('myfile.avi', function(stdout, stderr) {
    console.log('file has been converted succesfully');
  });

app.listen(3000, function() {  
    console.log("Server Running on 3000");
});

Getting error : enter image description here

Please help.



via Somename

No comments:

Post a Comment