fixed frame rate issue in file capture