[FFmpeg-devel] [PATCH] ffmpeg: add progress speed to status line and report

Moritz Barsnick barsnick at gmx.net
Wed Dec 16 15:26:10 CET 2015


On Fri, Dec 11, 2015 at 16:49:14 +0100, Moritz Barsnick wrote:
> This adds a computation of the progress speed versus realtime ("Nx")
> to the status line and to the report log. It uses the progress time
> as already calculated for total output time as a base.
> ---
>  ffmpeg.c | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)

Ping.

> +        snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf)," speed=N/A");
> +        av_bprintf(&buf_script, "speed=N/A\n");

BTW, these two are used quite often in this function and sort of beg
for macros, but I don't go around macro-ifying code just for the fun of
it. ;-)

Thanks,
Moritz


More information about the ffmpeg-devel mailing list