FFMPEG: Limit the output to only the encoding stats for quieter scripting
FFMPEG is a great tool, but it is very chatty. If you want to encode a file you'll get about 40 lines of headers and track information, most of which you probably will not read. For scripting purposes you probably only want to see the statistics. If you start FFMPEG, hide the banner, and set the loglevel low you can output only the stats you need
ffmpeg -y -hide_banner -loglevel quiet -stats ...