[FFmpeg-user] Stats

Tom Evans tevans.uk at googlemail.com
Mon Sep 7 17:54:00 CEST 2015


On Wed, Sep 2, 2015 at 7:34 AM, Marc Camacho Cateura
<camachocateura at gmail.com> wrote:
> Hi Paul,
>
> I want stats with bitrates, fps... All information that  ffmpeg shows while
> is running... But in a csv or similar file that let me do some statistical
> graphics.
>
> Thank you!

Please don't top post, it makes it impossible to follow an email thread.

I will get you 50% of the way there:

ffmpeg -y -i in.mkv -t 30 out.mov 2>&1 | tr '\r' '\n' |grep ^frame=

frame=   89 fps=0.0 q=28.0 size=      97kB time=00:00:03.94 bitrate=
202.0kbits/s
frame=  115 fps=110 q=28.0 size=     416kB time=00:00:04.97 bitrate=
684.8kbits/s
frame=  139 fps= 88 q=28.0 size=     699kB time=00:00:06.05 bitrate=
945.0kbits/s
frame=  161 fps= 77 q=28.0 size=    1003kB time=00:00:07.08
bitrate=1160.4kbits/s
frame=  184 fps= 71 q=28.0 size=    1393kB time=00:00:07.80
bitrate=1461.8kbits/s

Parse that in to CSV however you like.

Cheers

Tom


More information about the ffmpeg-user mailing list