Page 1 of 1

Encoding fps for x264

Posted: Fri Mar 01, 2019 10:07 am
by Jisagi

I'm trying to get the average fps & time with the libx264 encoder for the whole encoding period. libx265 outputs a nice average a the end like this:

Code: Select all

encoded 125 frames in 5.46s (22.89 fps), 1472.61 kb/s, Avg QP:26.42
Is there apossibility to get this with libx264 as well? I only need the fps. The last line in the libx264 output at least shows the time, but the fps are (obviously) incorrect (125/4.88=~25.61). Is there an easier way, than manually calculating fps = frames / time every single time? It's easier to filter that single single from the libx265 output than to filter multiple numbers and calculating everything.

Code: Select all

frame=  125 fps= 38 q=-1.0 Lsize=    1559kB time=00:00:04.88 bitrate=2617.7kbits/s speed= 1.5x
Both encodes are from the same 5 second clip, only the encoder is different.