首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >fluent-ffmpeg中的多个文件输出

fluent-ffmpeg中的多个文件输出
EN

Stack Overflow用户
提问于 2016-11-08 08:57:02
回答 1查看 2.3K关注 0票数 0

是否可以将多个文件作为输入添加到弗林格中,并为所有提供的文件获取输出..?

编辑1:

代码语言:javascript
复制
var commonPath = __dirname + '/path/to/file/'; 

ffmpeg() 
  .input(commonPath + 'file1.mp4')  
  .output(commonPath + 'newFile1.avi')
  .toFormat('avi')  
  .input(commonPath + 'file2.mp4')  
  .output(commonPath + 'newFile2.avi')
  .toFormat('avi')
  .on('error',function(err){
    console.log(err);
  })  
  .run();
EN

回答 1

Stack Overflow用户

发布于 2016-11-08 09:05:11

是的,如果您查看fluent-ffmpeg的文档,这里指定您可以使用.input().output()添加多个输入和输出。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40482653

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档