limit the maximum key frame interval to 2 seconds