Is there a way to disable or hide output thrown by FFmpeg? [duplicate]
Sebastian Wright
I went through the documentation but couldn't find a solution. I'm hoping there is some kind of argument that will tell FFmpeg to not show the output in the console.
The output that I'm referring to is in the screenshot given below
2 Answers
There are two possibilities to either vastly reduce the amount of output, or redirect it to somewhere else.
From ffmpeg manual: Run
ffmpegwith the-loglevel quietoption.Do what @martineau said and redirect it to a null file descriptor. FFmpeg outputs to stderr by default, so in Windows you'd do
ffmpeg ... 2>NUL; on Cygwin or Linux/OS X/BSD, you'd doffmpeg ... 2> /dev/null.
As per the other answer, -loglevel quiet supresses everything. But, sometimes it's useful to retain some output. Here are some other options:
You can suppress report printing (the lines beginning with frame= that are output every few frames) by adding the
-nostatsoption to your command line.You can suppress the banner (copyright notice, libraries, etc) by adding the
-hide_banneroption to your command line.
There are other options, see the documentation for details.
1