added frame rate lock for video capture