ffmpeg未知关键字处理输入时发现无效数据 [英] ffmpeg unknown keyword invalid data found when processing input
问题描述
我有一个包含内容的文件 ffmpeg_list_of_files.txt
I have a file ffmpeg_list_of_files.txt
with the content
file '.\Output_0\forces_vs_radii.pdf'
file '.\Output_1\forces_vs_radii.pdf'
file '.\Output_2\forces_vs_radii.pdf'
file '.\Output_3\forces_vs_radii.pdf'
file '.\Output_4\forces_vs_radii.pdf'
and so on...
然后按照
http://trac.ffmpeg.org/wiki/Concatenate
不幸的是,我得到了错误
I, unfortunately, get the error
Line 1: unknown keyword ' ■f'
.\ffmpeg_list_of_files.txt: Invalid data found when processing input
在Windows 10中的Windows PowerShell中.
in Windows PowerShell in Windows 10.
我在做什么错了?
推荐答案
这也是一个编码问题,我也解决了更改文件编码的问题.解决步骤:
It's an encoding problem I also got that I solved changing the file encoding. Steps to solve it:
- 使用记事本,notepad ++或类似工具打开ffmpeg_list_of_files.txt
- 将编码更改为不带BOM的UTF-8.为此,请执行以下步骤之一:
- 对于Windows记事本,这是使用另存为..."完成的.选项,并在底部将编码更改为"UTF-8".然后按保存"
- 使用记事本++选择编码"在主菜单中选择使用无BOM的UTF-8编码".然后保存文件
名称可能会因版本而有所变化,但是按照步骤操作非常简单.
Names could change a little bit depending on the version, but following the steps it's pretty straight forward.
注意:就我而言,将ls或dir重定向到Powershell中的文件时,该文件的默认编码为USC-2
Note: In my case, when redirecting ls or dir to a file in powershell, the default encoding of the file is USC-2
这篇关于ffmpeg未知关键字处理输入时发现无效数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!