added ratio calculation per video flow.