Is it possible to add multiple files as input to fluent-ffmpeg and get output for all provided files..?
Edit 1:
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();
是的,如果您浏览fluent-ffmpeg
的文档,则指定可以使用.input()
和.output()
添加多个输入和输出。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.