fluent-ffmpeg 合并文件不起作用 - 重新初始化过滤器时出错 版本信息重现代码预期结果观察结果注意

问题描述

版本信息

  • fluent-ffmpeg 版本:最新
  • ffmpeg 版本:最新,今天安装
  • 操作系统:Windows 10

重现代码

console.log("Starting to merge...")
a = new ffmpeg(files[0])
  files.forEach(file => {
    if(file !== files[0]){
      a.input(file)
    } 
  })

  a.on('error',function(err) {
      console.log('An error occurred: ' + err.message);
  })
  a.on('end',function() {
    console.log('Merging finished !');
  })
  a.mergetoFile(out);

(注意:如果问题仅发生在某些输入上,请包含指向此类输入文件链接) 不,伙计

预期结果

将“files”数组中的文件放入out.avi

观察结果

Starting to merge...
An error occurred: ffmpeg exited with code 1: Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #7:0
Conversion Failed!

注意

所有文件的大小和长度都不同。 它们都是 .avi,因为当我做 mp4 时我的内核死了

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...