Added true FPS estimation, so a more accurate value can be written to video clips when frame-rate isn't really 25.

Works by storing 5 most recent time differences (in ms) between successive frames; averages them to calculate current frame rate.