如何强制 ffmpeg 进入非交互模式? [英] How to force ffmpeg into non-interactive mode?

查看:34
本文介绍了如何强制 ffmpeg 进入非交互模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时您希望 ffmpeg 询问您是否应该覆盖文件.有时它只是一个脚本,如果出现问题,您希望它会失败.IE.如果你有问题,不要依赖标准输入来回答.

Sometimes you want ffmpeg to ask you whether it should overwrite a file. Sometimes it's just a script that you prefer would fail if something is amiss. I.e. don't rely on stdin to answer if you have a question.

推荐答案

参见 https://ffmpeg.org/ffmpeg.html#Main-options

-stdin -在标准输入上启用交互.除非检测到管道,否则默认开启.

-stdin - Enable interaction on standard input. On by default unless a pipe is detected.

-nostdin - 显式禁用控制台交互.如果没有 -y,如果目标文件存在,这将导致 ffmpeg 出错.

-nostdin - To explicitly disable console interactions. Without -y this will cause ffmpeg to error out if the target file exists.

-y - 覆盖输出文件

这篇关于如何强制 ffmpeg 进入非交互模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆