How in Ubuntu to view the coding status of the ffmpeg stream if the process itself was running in the background?

You need to output something like this:

frame= 4870 fps= 26 q=31.0 q=36.0 size= 6111kB time=00:03:15.16 bitrate= 256.5kbits/s speed=1.05x 

PS use screen not an option. Thank!

    1 answer 1

    Anyone interested, found a solution:

     FFREPORT=file=ffreport.log:level=32 ffmpeg 

    and then output the last line to the terminal:

     cat ffreport.log | tail -n 1