ghoulmann / pi-cam

Installs and configures webcam streaming, as cited by Adafruit, for Raspberry Pi running Raspbian
10 stars 0 forks source link
Scripted by Rik Goldman based on web resources (below), and with integral testing and feedback by Paul and Delonte, high-school students at Chelsea School in Silver Spring, MD. Consider using in conjunction with Zoneminder (scripted for installation on Raspbian at https://github.com/ghoulmann/rpi-zoneminder.

Objective

Install and configure streaming web video for Raspberry Pi running Raspbian. Read about it at Adafruit.

Assumptions

What it Does

In verbose bashish,
  1. Exit if it's not executed with root privileges
  2. Updates repo information
  3. Installs from repos: libv4l-0 and v4l-utils
  4. Downloads MJPG-streamer-rpi.tar.gz to /tmp/MJPG-streamer-rpi.tar.gz (source can be changed)
  5. Untar and decompress to directory in /opt (/opt is default, can be changed to suit taste)
  6. Changes default values for YUV and Port (defaults: YUV="false" and port=8080)

To Do

Sources

Based on links at Adafruit: http://www.adafruit.com/blog/2012/11/02/pieye-streaming-webcam-piday-raspberrypi-raspberry_pi"

Use

  1. Download directly or use git clone.
  2. Edit to customize target directory, enable YUV, or change the download source as you see fit: (using nano from the command line) nano /path/to/pi-face.sh
  3. Run the script as root: sudo /path/to/pi-face.sh