added script to get at most 1000 frames