Configure the Raspberry Pi camera
Follow these steps to configure the Raspberry Pi camera to send video from the device to a Kinesis video stream.
-
Open an editor to update the
modules
file with the following command:sudo nano /etc/modules
-
Add the following line to the end of the file, if it's not already there:
bcm2835-v4l2
-
Save the file and exit the editor (Ctrl-X).
-
Reboot the Raspberry Pi:
sudo reboot
-
When the device reboots, connect to it again through your terminal application if you are connecting remotely.
-
Open
raspi-config
:sudo raspi-config
-
Choose Interfacing Options, Legacy Camera. In older builds of the Raspbian Operating System, this menu option might be under Interfacing Options, Camera.
Enable the camera if it's not already enabled, and reboot if prompted.
-
Verify that the camera is working by typing the following command:
raspistill -v -o test.jpg
If your camera is configured correctly, this command captures an image from the camera, saves it to a file named
test.jpg
, and displays informational messages.