Answer the question
In order to leave comments, you need to log in
How to print the ffmpeg encoding status to the terminal if the process is running in the background?
How can I see the encoding status of an ffmpeg stream in Ubuntu 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
screen
is not an option. Answer the question
In order to leave comments, you need to log in
When a program "outputs something to the terminal", it technically means that it writes to the appropriate tty files. FFmpeg prints its state to stderr. The stdout and stderr descriptor numbers are 1 and 2, respectively.
You can redirect its stderr output to a file:
in the above example, the file will be overwritten with each new call.
Print status to current terminal = read last line of log
If you're concerned about hard disk usage: /tmp is usually mounted in RAM.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question