pi-cam
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Installs and configures webcam streaming, as cited by Adafruit, for Raspberry Pi running Raspbian


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

  • Using a Raspberry Pi
  • Running Raspbian "Wheezy"
  • Have access to the internet without a proxy
  • Access to root privileges
  • Have a webcam on /dev/video0

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

  • alias in /usr/bin (perhaps)
  • option to run as service from init.d
  • echo url to stream on start? http://$ipaddr:$port/?action=stream
  • detect yuv v mjpeg and configure as appropriate(?)
  • Run as root, service for /etc/init.d (fork)

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

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。