H3AM0

Streaming webcam with motion on Raspberry Pi (Raspbian)
-------------------------------------------------------

Equipment used:

  + Raspberry Pi II
  + Logitech Webcam c170 (USB, mic.)
  + Kingston 16GB class 10 SD / Jessie 2017.03.02 w. Pixel

Install prerequsites for "motion"

  apt-get install cheese # ( run $ cheese --display=:0.0)
  apt-get install guvcview # ( run $ guvcview --audio=none)
  
Deal with "motion"

  apt-get install motion
  vi /etc/motion/motion.conf
     11 daemon on
     90 width 640
     93 height 480
     97 framerate 25
    250 output_pictures off
    270 ffmpeg_output_movies off
    474 stream_maxrate 25
    477 stream_localhost off
    
  vi /etc/default/motion
      2 start_motion_daemon=yes

  # /usr/bin/motion
  # service motion start
  $ firefox 192.168.1.204:8081

Just in case.. it doesn't load on boot

  # vi /etc/rc.local
     ..
     20 service motion start &
     21 exit 0

  # init 6

Links
-----

1. https://pimylifeup.com/raspberry-pi-webcam-server/

2. http://raspberrypi.stackexchange.com/questions/47353
        /motion-goes-active-exited-after-a-few-minutes
