====== Vidéosurveillance avec Motion ====== //sources : http://wiki.debian.org/fr/Motion //\\ //http://www.generation-linux.fr/index.php?post/2013/03/18/Diffuser-une-webcam-%C3%A0-partir-du-Raspberry-Pi-%28grace-%C3%A0-motion%29 //\\ //http://crudelis.fr/sblog/2013/01/installer-une-videosurveillance-avec-motion-et-une-simple-webcam/ // Motion est un petit utilitaire qui permet grâce à une webcam de faire de la détection de mouvement. Motion se chargera de deux choses: * diffuser de manière continue le flux vidéo sur un mini serveur web * enregistrer les moments où il y a du mouvement et les coller "bout à bout" pour ainsi créer plusieurs petites vidéos. On obtient ainsi un système de vidéo-surveillance avec enregistrement des moments "intéressants". ===== Détection du matériel ===== Vérifier que la caméra est bien détecté lsusb Bus 005 Device 002: ID 093a:2468 Pixart Imaging, Inc. SoC PC-Camera Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 046d:0826 Logitech, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Les lignes : **Bus 005 Device 002: ID 093a:2468 Pixart Imaging, Inc. SoC PC-Camera** et **Bus 001 Device 002: ID 046d:0826 Logitech, Inc.** confirme la présence de deux webcams (usb) ===== Installation ===== aptitude install motion ===== Configuration ===== La configuration se fait dans **/etc/motion/motion.conf** ===== Et là, c'est le drame ===== http://ubuntuforums.org/showthread.php?t=1476423&page=2 LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so motion