Bitrate calacation based on uofw implementation.