While true
Posted: Thu Jun 25, 2015 5:41 am
I am wanting to use this code in a infinite loop where it overwrites the files 1-10, Can someone please help with a example
would it be while true:
would it be while true:
Code: Select all
import picamera
with picamera.PiCamera() as camera:
camera.resolution = (640, 480)
camera.start_recording('1.h264')
camera.wait_recording(5)
for i in range(2, 11):
camera.split_recording('%d.h264' % i)
camera.wait_recording(5)
camera.stop_recording()