How to force ffmpeg into non-interactive mode?

偶尔善良 提交于 2019-11-30 00:45:08

问题


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 a pipe is detected.

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

-y - To overwrite the output file



来源:https://stackoverflow.com/questions/28372647/how-to-force-ffmpeg-into-non-interactive-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!