I am kind of a noob with Raspberry Pi so I guess it is probably a dumb question. Still, I have lost so much time upon it that any idea would be greatly appreciated.
I would like to record a 10 sec video at 60 fps. The code is below:
Code: Select all
import picamera import time input('Press enter to start recording') with picamera.PiCamera() as camera: camera.resolution = (640,480) camera.framerate=30 # camera.start_preview() # input('Press enter to start recording') # camera.stop_preview() camera.start_recording('my_video.h264') camera.wait_recording(10) camera.stop_recording() print('Record done')
Am I perhaps missing something basic?