Gnome Home Mon compte Rechercher Forum Downloads FAQ Howto Pas encore enregistré? Devenez membre ici. (L'enregistrement est gratuit). 10/09/2010 - 15:33

Howto make Video monitoring
Dernière mise à jour : 2005-10-05 07:57:57 (22646 lectures)
[Imprimer la page | Envoyé à un ami]

Video monitoring HowTo

Author:  Van hees Michel <michel_AT_vanhees.cc>
Contributor:
  
Release supported: e-smith SME 5.6
License: GPL
Last updated: Wednesday, April 03, 2002 08:49 AM

 


Problem:  You want to make video monitoring on your E-Smith
Solution:
  Follow this HowTo

Resources: http://lea-linux.org/hardware/webcam.php3 PLEASE READ!


STEP 1: On your SME 5.6 probe your webcam :

modprobe videodev
Depends on your webcam install type one of the following
modprobe stv680 or modprobe cpia(See this list) or modprobe ov511 (See this list)

# modprobe videodev
# modprobe stv680 or modprobe cpia or modprobe ov511

STEP 2: Install vidcat RPM
Available here
Make test to be sure, every thing working fine
Other format type(jpg,png) are not working

# rpm -ivh --nodeps vidcat-0.7.2-2.i386.rpm
# vidcat -d /dev/video0 -s 320x240 > test.jfif


STEP 3: Install Motion 2.6.3 (Source : http://motion.sourceforge.net)
Availabe here
Motion take photo when it detect some movement in front of your webcam.
After installing RPM, config example are in /usr/local/etc/
You need to launch motion from the directory where the config file are.

# rpm -ivh --nodeps motion-2.6.3-1.i386.rpm

STEP 4:  Install mpeg_encode
Available here
Motion can make mpg file of all pictures take, mpg_encode is needed.
Uncomment line #mpeg_encode yes in the config file

# rpm -ivh --nodeps mpeg_encode-1.5b-4.i386.rpm

STEP 5:  Making template of config file
Create new directory for the template
Copy the example of the config file

# mkdir -p /etc/e-smith/templates-custom/etc/motion.conf
# cp /usr/local/etc/motion.conf /etc/e-smith/templates-custom/etc/motion.conf/
# /sbin/e-smith/expand-template /etc/motion.conf


STEP 6:  Create startup script
Create a shell script in your startup directory
Include the following line :

#!/bin/sh
# Description : Starts and stops an video survey
#/etc/rc.d/init.d/motion

MOTION_CONFIG_FILE=/etc/motion.conf

. /etc/rc.d/init.d/functions

case "$1" in
start)
KIND="MOTION"
echo -n $"Starting $KIND services: "
modprobe videodev
sleep 5
modprobe stv680
sleep 2
daemon /usr/local/bin/motion -f $MOTION_CONFIG_FILE -D
echo
;;
stop)
KIND="MOTION"
echo -n $"Shutting down $KIND services: "
killproc /usr/local/bin/motion
sleep 4
rmmod stv680
sleep 2
rmmod videodev
echo
;;
status)
status /usr/local/bin/motion
;;
*) echo "Usage: $0 { start,stop,status}"
exit 1
esac
exit 0

Adapte line modprobe stv680 and rmmod stv680 with the parametre for your webcam

# pico /etc/rc.d/init.d/motion
# enter the script <CTRL-o><CTRL-x>
# ln -s /etc/rc.d/init.d/motion /etc/rc.d/rc7.d/S99motion
# ln -s /etc/rc.d/init.d/motion /etc/rc.d/rc6.d/K02motion

# chmod ugo+x motion


STEP 7:  See result
Motion create many subdirectory beginning with ./[year]/[month]/[day]
Movie are placed in that directory.
Some more directory may exist, it contains pictures.


 

[Premier]  [Précédent]  [Retour à l'article principal]  [Suivant]  [Dernier]
[Imprimer la page | Envoyé à un ami]
Languages
minimizeclose
Langue préférée :

English Français
bottom_left bottom_right
Site
minimizeclose
bottom_left bottom_right
Staff Status
minimizeclose
Bienvenue visiteur

L'enregistrement est complètement gratuit et vous permettra d'avoir accès à toutes les parties du site
Enregistrement ici

Pseudo:


Mot de passe:


Se souvenir de moi

Membres:  Membres:
Dernier:  Nouveau aujourd'hui: 6
Dernier:  Nouveau hier: 6
Dernier:  Total: 760
Dernier:  Dernier:
kickman7bc
Membres:  Connecté
Membres:  Membres: 0
Visiteurs:  Visiteurs: 6
Total:  Total: 6
Membres:  Membres en ligne
Aucun membre de connecté
bottom_left bottom_right
Vus il y a peu...
minimizeclose
arrow MasterSleepy

15:12:29 - 10.09.2010

arrow cedric

0:40:39 - 10.09.2010

arrow papangue

8:23:52 - 08.09.2010

arrow feeny

7:32:15 - 04.09.2010

arrow steveharvey27

7:48:00 - 31.08.2010

arrow Carpate

23:02:19 - 30.08.2010

arrow dfalt

7:49:50 - 30.08.2010

arrow immind

18:06:21 - 26.08.2010

arrow romu69

13:20:28 - 24.08.2010

arrow alarch

22:31:23 - 23.08.2010

bottom_left bottom_right
Translate
minimizeclose
google

bottom_left bottom_right
Liens
minimizeclose
bottom_left bottom_right
Visiteurs
minimizeclose
Total : 1140980
Aujourd'hui : 249
Connecté : 9
bottom_left bottom_right
Citations
minimizeclose

Il n'y a pas de bonheur parfait! dir l'homme quand sa belle-mèr mourut et qu'on lui présenta la note des pompes funèbre.
Jérôme K. Jérôme

bottom_left bottom_right
goes to top
Page created in 0,2072582244873 seconds.