convert input frame range to int