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

2015-12-16 Thread Michael Niedermayer
On Fri, Dec 11, 2015 at 04:49:14PM +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 +

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

2015-12-16 Thread Moritz Barsnick
On Wed, Dec 16, 2015 at 15:28:31 +0100, Nicolas George wrote: > > 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. ;-) > > No need for macros, there is the av_bprint() API for that. *shrug* OT

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

2015-12-16 Thread Nicolas George
Le sextidi 26 frimaire, an CCXXIV, Moritz Barsnick a écrit : > 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. ;-) No need for macros, there is the av_bprint() API for that. Regards, -- Nicola

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

2015-12-16 Thread Moritz Barsnick
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 ++-

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

2015-12-11 Thread Moritz Barsnick
ffmpeg.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) While this is still not a benchmark, the display of a factor "Nx" gives a much better and easier to parse feeling for the processing speed than looking at "fps", at the processed file time, or applying the Unix "time"

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

2015-12-11 Thread Moritz Barsnick
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(-) diff --git a/ffmpeg.c