How to force ffmpeg into non-interactive mode?

2019-02-11 19:01发布

问题:

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.

回答1:

See https://ffmpeg.org/ffmpeg.html#Main-options

-stdin Enable interaction on standard input. On by default unless standard input is used as an input. To explicitly disable interaction you need to specify -nostdin.