【问题标题】:ffmpeg concat with safe 0 don't work if another list is included如果包含另一个列表,则带有安全 0 的 ffmpeg concat 将不起作用
【发布时间】:2022-10-17 13:14:15
【问题描述】:

我有两个文件,例如,

file1.txt

ffconcat version 1.0
file 'video1.mp4'
file 'file2.txt'

和file2.txt

ffconcat version 1.0
file 'video2.mp4'
file 'file1.txt'

我正在使用ffmpeg -nostdin -re -f concat -safe 0 -i ./file1.txt -c copy ...。

它适用于第一个文件file1.txt 然后当循环到file2.txt 时,它会给出类似的错误

不安全的文件名 video2.mp4 ...

【问题讨论】:

    标签: ffmpeg


    【解决方案1】:

    最后我有办法弄清楚:只需将 txt 文件生成到视频/剪辑文件之间的路径,如下所示:

    txt file

    txt detail

    并使用文件路径运行 ffmpeg 脚本:

    ffmpeg -nostdin -re -f concat -safe 0 -i C:UsersAdministratorDesktop estile1.txt -c copy ....

    有效~

    【讨论】:

      猜你喜欢
      • 2021-09-28
      • 1970-01-01
      • 2016-12-24
      • 2011-08-13
      • 2013-12-08
      • 1970-01-01
      • 2019-11-21
      • 2020-07-19
      • 1970-01-01
      相关资源
      最近更新 更多