[FFmpeg-user] Human-readable size...
butting.mp at gmail.com
Wed Jul 27 06:10:54 CEST 2011
Fernando Cassia wrote:
> While encoding, FFMPEG shows something like
> frame=19474 fps= 76 q=2.6 size= 57370kB
> 57379kB is very difficult to read at first glance specially as the
> number gets higher.
> Wouldn´t it be easier to show it in more human-readable format like
> size= 57,370 KB
> (notice the space between the number and "KB", and also the thousands separator)
Well, for one thing it's not usually humans who are reading that output.
I have code that monitors the frame count, which would do doubtless
unexpected things if the way it's presented changed; there's bound to be
others who parse the size.
And then there's those who'd quite validly read "," as a decimal
separator, not a thousands one.
> Ideally, it should also change to "MB" and "GB"
Also not necessarily useful, especially if they're rounded to integers.
Code that's watching for changes in size to report on progress has
something to do when "57370kB" becomes "57380kB". When "56 MB" becomes,
well, "56 MB", there's no way of telling that anything's changed.
More information about the ffmpeg-user