Complete the code to start recording video using the PiCamera.
from picamera import PiCamera camera = PiCamera() camera.[1]('video.h264')
The start_recording method begins recording video to the specified file.
Complete the code to stop recording video.
from picamera import PiCamera camera = PiCamera() camera.start_recording('video.h264') # After some time camera.[1]()
The stop_recording method stops the video recording.
Fix the error in the code to record a 5-second video.
from picamera import PiCamera import time camera = PiCamera() camera.start_recording('video.h264') time.[1](5) camera.stop_recording()
The time.sleep(5) pauses the program for 5 seconds while recording.
Fill both blanks to record a video with resolution 640x480 and framerate 24.
from picamera import PiCamera camera = PiCamera() camera.[1] = (640, 480) camera.[2] = 24 camera.start_recording('video.h264')
Set resolution to (640, 480) and framerate to 24 before recording.
Fill all three blanks to record a video file named 'myvideo.h264' with resolution 1280x720 and framerate 30.
from picamera import PiCamera camera = PiCamera() camera.[1] = (1280, 720) camera.[2] = 30 camera.start_recording('[3]')
Set resolution and framerate properties, then start recording to 'myvideo.h264'.
