0

试图将 a 转换.gif.mp4

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");
});

在 Windows 10 和 Ubuntu 14 上出现相同的错误:Error: Cannot find ffmpeg

代码有什么问题?请帮忙。

4

0 回答 0