【问题标题】:ffmpeg overwrite output file if existsffmpeg 覆盖输出文件(如果存在)
【发布时间】:2017-02-08 21:09:25
【问题描述】:

我跑了:

ffmpeg -i input.flac output.mp3

这个提示:

文件“output.mp3”已经存在。覆盖? [是/否] 是

如何自动说“是”?

【问题讨论】:

    标签: ffmpeg


    【解决方案1】:

    使用-y 选项自动覆盖[docs]:

    ffmpeg -y -i input.flac output.mp3
    

    【讨论】:

    【解决方案2】:

    我需要在指定输出文件之前添加-y全局开关来完成这个

    ffmpeg -i /audio/191079007530_1_01.flac -t 51 -ss 69 -y /clips/44z274v23303t264y2z2s2s2746454t234_clip.mp3 2>&1 >> /ffmpegLogs.log
    

    或者,您可以使用 -n 选项拒绝覆盖 文件。

    【讨论】:

    猜你喜欢
    • 2016-11-19
    • 2018-08-02
    • 2014-10-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-29
    • 2019-01-17
    相关资源
    最近更新 更多