[英]merge multiple video files and stream by fluent-ffmpeg in nodejs
[英]Multiple files output in fluent-ffmpeg
是否可以將多個文件作為輸入添加到fluent-ffmpeg並獲取所有提供的文件的輸出。
編輯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()
添加多個輸入和輸出。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.