Bug#884138: ffmpeg: scientific notation used for speed in progress bar

James Cowgill jcowgill at debian.org
Mon Dec 11 22:33:54 UTC 2017


Hi,

On 11/12/17 21:24, Thorsten Glaser wrote:
> Package: ffmpeg
> Version: 7:3.4-4+b2
> Severity: wishlist
> 
> size=   71457kB time=01:10:25.91 bitrate= 138.5kbits/s speed=1.4e+03x     
> 
> I guess my computer is just too fast for that task ☺ Command was:
> for x in *.mp4; do ffmpeg -i "$x" -vn -sn -c:a copy ./"${x%.mp4}.wma"; done
> So basically just switching containers (WMA is the only one that is
> streamable by “ssh otherbox cat foo | mplayer -”, neither M4A nor
> MPEG-TS are) and ditching all but the audio track.

I can also get this by piping silence into the null sink. It goes really
fast if you sent the sample rate stupidly low :)
$ ffmpeg -f lavfi -i anullsrc -f null -
size=N/A time=00:32:47.49 bitrate=N/A speed=1.34e+03x
$ ffmpeg -f lavfi -i anullsrc=r=1 -f null -
size=N/A time=18250:48:32.00 bitrate=N/A speed=5.45e+07x

The speed output is controlled by a printf format specifier here:
https://anonscm.debian.org/cgit/pkg-multimedia/ffmpeg.git/tree/fftools/ffmpeg.c?h=debian/7%253.4.1-1#n1806

I guess you want to change it to "%5.4gx" or something else? The point
where we change from normal to scientific notation is fairly arbitrary.

James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20171211/349faa67/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list