1) Installation de l'application de diffusion de vidéo :
pi@raspberrypi ~ $ sudo apt-get install motion
2) Configuration : Ouvrir :
/etc/motion/motion.conf
Chercher :
daemon off
Remplacer par :
daemon on
Chercher :
# Image width (pixels). Valid range: Camera dependent, default: 352
width 320
# Image height (pixels). Valid range: Camera dependent, default: 288
height 240
Remplacer par :
# Image width (pixels). Valid range: Camera dependent, default: 352
width 640
# Image height (pixels). Valid range: Camera dependent, default: 288
height 480
Chercher :
auto_brightness off
Remplacer par :
auto_brightness on
Chercher :
webcam_maxrate 1
Remplacer par :
webcam_maxrate 2
Chercher :
webcam_localhost on
Remplacer par :
webcam_localhost off
Ouvrir :
/etc/default/motion
Chercher :
start_motion_daemon=no
Remplacer par :
start_motion_daemon=yes
3) Lancement en tâche de fond :
pi@raspberrypi ~ $ sudo /etc/init.d/motion start
[ ok ] Starting motion detection daemon: motion.
5) Visualiser la webcam : Dans un navigateur : http://192.168.1.19:8081/