Configure the Raspberry Pi camera - Amazon Kinesis Video Streams
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.

  1. Open an editor to update the modules file with the following command:

    sudo nano /etc/modules
  2. Add the following line to the end of the file, if it's not already there:

    bcm2835-v4l2
  3. Save the file and exit the editor (Ctrl-X).

  4. Reboot the Raspberry Pi:

    sudo reboot
  5. When the device reboots, connect to it again through your terminal application if you are connecting remotely.

  6. Open raspi-config:

    sudo raspi-config
  7. 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.

  8. 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.