Your code will capture as many frames per second as it can. As you request that all 60 frames be captured in one command, you are already making the request as quickly as practical for that library interface.
With the code you show, there are three possible reasons that your code might take 60 seconds to capture 60 frames:
- your video camera frame-rate itself is set to 1 frame per second and you need to try to set() a different rate; or
- you are running out of physical memory and your system is paging to disk; or
- your bandwidth to your camera is not fast enough to transfer more than one frame per second at that image size
Question: why are you closing the aviobj within the "while 1" loop? You do not show opening the object.