输入文件列表,以便与Node.js模块fluent ffmpeg连接 版本信息 fluent ffmpeg版本:2.1.2 ffmpeg版本:3.4.2 操作系统:Windows 10 要复制的代码

输入文件列表,以便与Node.js模块fluent ffmpeg连接 版本信息 fluent ffmpeg版本:2.1.2 ffmpeg版本:3.4.2 操作系统:Windows 10 要复制的代码,ffmpeg,fluent-ffmpeg,Ffmpeg,Fluent Ffmpeg,list.txt: file 'C:/path/to/chunk01.ts' file 'C:/path/to/chunk02.ts' file 'C:/path/to/chunk03.ts' file 'C:/path/to/chunk04.ts' C:/path/to> ffmpeg -f concat -i list.txt -c copy out.ts 注意:我尝试了绝对路径和相对路径,得到了相同的结果 预期结果 位于C:/path/to/out.mp4的视频文件,与list.

list.txt:

file 'C:/path/to/chunk01.ts'
file 'C:/path/to/chunk02.ts'
file 'C:/path/to/chunk03.ts'
file 'C:/path/to/chunk04.ts'
C:/path/to> ffmpeg -f concat -i list.txt -c copy out.ts
注意:我尝试了绝对路径和相对路径,得到了相同的结果

预期结果 位于
C:/path/to/out.mp4
的视频文件,与list.txt中的4个文件匹配,端到端连接

观察结果 位于
C:/path/to/out.mp4
的空文件,持续时间为0,大小仅为15kB。没有抛出错误

这是我试图复制的命令(它按预期工作,相对路径在list.txt中):

标准与标准 stdout是空的。stderr复制到下面(修改文件名以匹配上面的文件名):


ffconcat版本1.0
添加到文本文件的开头,即

ffconcat version 1.0
file 'C:/path/to/chunk01.ts'
file 'C:/path/to/chunk02.ts'
...
或者,这是使用现有文本文件修改的cmd,但我不太熟悉fluent ffmpeg

ffmpeg('C:/path/to/list.txt').inputFormat('concat').mergeToFile('C:/path/to/out.mp4', 'C:/path/to/temp');

啊!!我试过
.inputFilter('concat')
。我现在就试试这个。
ffconcat version 1.0
file 'C:/path/to/chunk01.ts'
file 'C:/path/to/chunk02.ts'
...
ffmpeg('C:/path/to/list.txt').inputFormat('concat').mergeToFile('C:/path/to/out.mp4', 'C:/path/to/temp');