10 lines
298 B
Python
10 lines
298 B
Python
# https://picamera.readthedocs.io/en/release-1.10/recipes1.html#recording-video-to-a-file
|
|
|
|
import picamera
|
|
|
|
with picamera.PiCamera() as camera:
|
|
camera.resolution = (640, 480)
|
|
camera.start_recording('/home/pi/Desktop/my_video.h264')
|
|
camera.wait_recording(10)
|
|
camera.stop_recording()
|