Selects frames with positions after and before that are fairly consistent, with the goal to select frames with little motion blur. lowfrac is the fraction of frames to keep.
check_motion()