silicontrip / lavtools

mjpeg utils and avcodec frame based video editing tools and ffmpeg filters
15 stars 3 forks source link

libav-bitrate: stats to stderr #9

Closed Nikoli closed 12 years ago

Nikoli commented 12 years ago

I think printing stats to stderr in human readable format will be helpful. Adding option --nostat or --quiet too. Example of stats:

269.44 6.2864e+06 4.6074e+06 847000 832000 0 0 0 0 
269.48 1.0354e+06 1.0354e+06 0 0 0 0 0 0 
269.52 4.7518e+06 4.7518e+06 0 0 0 0 0 0
Stream name    Average bitrate    Maximum bitrate   Minimum bitrate
All streams       5 Mb/s                 7 Mb/s                  1 Mb/s
Stream #0.0      4 Mb/s                 6,5 Mb/s               100 Kb/s
Stream #0.1      512 Kb/s              512 Kb/s               64 Kb/s
Stream #0.2      512 Kb/s              512 Kb/s               64 Kb/s

Just mockup, not real data.

It is possible to parse output of current libav-bitrate and get same data after using other tools for analyzing, but using only libav-bitrate for bitrate analyze will be simpler :)

silicontrip commented 12 years ago

Misinterpreted this request. Commit 9f956f0 does not address this request.

silicontrip commented 12 years ago

It may need a bit of pretty-ing up. This has been implemented.

silicontrip commented 12 years ago
              Stream          Min Bitrate      Average bitrate          Max bitrate
               Total        429840.000000       1266949.473684      12839760.000000
                   0             0.000000        156126.315789       1036800.000000
                   1        429840.000000       1110823.157895      12839760.000000