Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| motion [Le 03/10/2010, 22:18] – 82.247.85.251 | motion [Le 13/07/2024, 22:52] (Version actuelle) – Ajout du titre spnux | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| ---- | ---- | ||
| - | ====== Motion ====== | ||
| - | **Motion** est un logiciel de détection vidéo et qui permet de diffuser un flux vidéo via internet par le protocole HTTP. Il est une solution simple pour diffuser le flux de sa webcam en ligne, ou de détecter des mouvements dans le champ d'une caméra par exemple. | + | ====== |
| ===== Pré-requis ===== | ===== Pré-requis ===== | ||
| Ligne 19: | Ligne 18: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | Il suffit d' | + | Il suffit d' |
| Ligne 32: | Ligne 31: | ||
| En mode utilisateur (hors daemon), le mieux est de copier le fichier **/ | En mode utilisateur (hors daemon), le mieux est de copier le fichier **/ | ||
| - | | + | cp / |
| - | Puis, mettre les bon droits : | + | |
| - | sudo chown $USER ~/ | + | |
| + | ==== Configuration de base pour une webcam ==== | ||
| + | <note warning> | ||
| - | + | Reportez-vous au fichier / | |
| - | + | ||
| - | ==== Configuration de base pour une webcam ==== | + | |
| Maintenant nous allons [[: | Maintenant nous allons [[: | ||
| Ligne 51: | Ligne 48: | ||
| Voici un exemple de motion.conf : | Voici un exemple de motion.conf : | ||
| - | < | + | |
| - | daemon off | + | daemon off |
| - | process_id_file / | + | process_id_file / |
| - | setup_mode off | + | setup_mode off |
| - | videodevice / | + | videodevice / |
| - | v4l2_palette 8 | + | v4l2_palette 8 |
| - | input 8 | + | input 8 |
| - | norm 0 | + | norm 0 |
| - | frequency 0 | + | frequency 0 |
| - | rotate 0 | + | rotate 0 |
| - | width 640 | + | width 640 |
| - | height 480 | + | height 480 |
| - | framerate 2 | + | framerate 2 |
| - | minimum_frame_time 0 | + | minimum_frame_time 0 |
| - | netcam_tolerant_check off | + | netcam_tolerant_check off |
| - | auto_brightness off | + | auto_brightness off |
| - | brightness 0 | + | brightness 0 |
| - | contrast 0 | + | contrast 0 |
| - | saturation 0 | + | saturation 0 |
| - | hue 0 | + | hue 0 |
| - | roundrobin_frames 1 | + | roundrobin_frames 1 |
| - | roundrobin_skip 1 | + | roundrobin_skip 1 |
| - | switchfilter off | + | switchfilter off |
| - | threshold 1500 | + | threshold 1500 |
| - | threshold_tune off | + | threshold_tune off |
| - | noise_level 32 | + | noise_level 32 |
| - | noise_tune on | + | noise_tune on |
| - | despeckle EedDl | + | despeckle EedDl |
| - | smart_mask_speed 0 | + | smart_mask_speed 0 |
| - | lightswitch 0 | + | lightswitch 0 |
| - | minimum_motion_frames 1 | + | minimum_motion_frames 1 |
| - | pre_capture 0 | + | pre_capture 0 |
| - | post_capture 0 | + | post_capture 0 |
| - | gap 60 | + | gap 60 |
| - | max_mpeg_time 0 | + | max_mpeg_time 0 |
| - | output_all off | + | output_all off |
| - | output_normal on | + | output_normal on |
| - | output_motion off | + | output_motion off |
| - | quality 75 | + | quality 75 |
| - | ppm off | + | ppm off |
| - | ffmpeg_cap_new on | + | ffmpeg_cap_new on |
| - | ffmpeg_cap_motion off | + | ffmpeg_cap_motion off |
| - | ffmpeg_timelapse 0 | + | ffmpeg_timelapse 0 |
| - | ffmpeg_timelapse_mode daily | + | ffmpeg_timelapse_mode daily |
| - | ffmpeg_bps 500000 | + | ffmpeg_bps 500000 |
| - | ffmpeg_variable_bitrate 0 | + | ffmpeg_variable_bitrate 0 |
| - | ffmpeg_video_codec swf | + | ffmpeg_video_codec swf |
| - | ffmpeg_deinterlace off | + | ffmpeg_deinterlace off |
| - | snapshot_interval 0 | + | snapshot_interval 0 |
| - | locate off | + | locate off |
| - | text_right %Y-%m-%d\n%T-%q | + | text_right %Y-%m-%d\n%T-%q |
| - | text_changes off | + | text_changes off |
| - | text_event %Y%m%d%H%M%S | + | text_event %Y%m%d%H%M%S |
| - | text_double off | + | text_double off |
| - | target_dir / | + | target_dir / |
| - | snapshot_filename %v-%Y%m%d%H%M%S-snapshot | + | snapshot_filename %v-%Y%m%d%H%M%S-snapshot |
| - | jpeg_filename %v-%Y%m%d%H%M%S-%q | + | jpeg_filename %v-%Y%m%d%H%M%S-%q |
| - | movie_filename %v-%Y%m%d%H%M%S | + | movie_filename %v-%Y%m%d%H%M%S |
| - | timelapse_filename %Y%m%d-timelapse | + | timelapse_filename %Y%m%d-timelapse |
| - | webcam_port 8081 | + | webcam_port 8081 |
| - | webcam_quality 50 | + | webcam_quality 50 |
| - | webcam_motion off | + | webcam_motion off |
| - | webcam_maxrate 1 | + | webcam_maxrate 1 |
| - | webcam_localhost off | + | webcam_localhost off |
| - | webcam_limit 0 | + | webcam_limit 0 |
| - | control_port 8080 | + | control_port 8080 |
| - | control_localhost on | + | control_localhost on |
| - | control_html_output on | + | control_html_output on |
| - | track_type 0 | + | track_type 0 |
| - | track_auto off | + | track_auto off |
| - | track_motorx 0 | + | track_motorx 0 |
| - | track_motory 0 | + | track_motory 0 |
| - | track_maxx 0 | + | track_maxx 0 |
| - | track_maxy 0 | + | track_maxy 0 |
| - | track_iomojo_id 0 | + | track_iomojo_id 0 |
| - | track_step_angle_x 10 | + | track_step_angle_x 10 |
| - | track_step_angle_y 10 | + | track_step_angle_y 10 |
| - | track_move_wait 10 | + | track_move_wait 10 |
| - | track_speed 255 | + | track_speed 255 |
| - | track_stepsize 40 | + | track_stepsize 40 |
| - | quiet on | + | quiet on |
| - | sql_log_image on | + | sql_log_image on |
| - | sql_log_snapshot on | + | sql_log_snapshot on |
| - | sql_log_mpeg off | + | sql_log_mpeg off |
| - | sql_log_timelapse off | + | sql_log_timelapse off |
| - | sql_query insert into security(camera, | + | sql_query insert into security(camera, |
| - | </ | + | |
| <note tip> Pour connaitre les résolutions supportées, | <note tip> Pour connaitre les résolutions supportées, | ||
| Ligne 147: | Ligne 143: | ||
| - | Pour démarrer le processus : | + | Pour démarrer le processus : |
| motion -c motion.conf | motion -c motion.conf | ||
| - | ==== Configuration pour plusieurs webcams ==== | ||
| - | Lorsque plusieurs webcams sont utilisées, il faut dédier un fichier // | ||
| - | A la fin du fichier // | + | ===== Mettre en place une vidéosurveillance à distance ===== |
| - | | + | ==== Grâce à Motion et Dropbox ==== |
| + | « Vidéosurveiller son domicile », c'est bien, mais encore faut-il pouvoir consulter les images simplement et rapidement, de l' | ||
| + | La démarche ci-dessous a été testée sur Ubuntu 12.04 et sur Debian Wheezy 7.1. | ||
| - | Chaque fichier // | + | === Ce qu' |
| - | Bien renseigner le paramètre | + | * Votre ordinateur (avec Ubuntu ou Debian), |
| + | | ||
| + | | ||
| + | | ||
| - | Par défaut, | + | === Ce qu'il faut faire === |
| + | * Installez Motion sur votre ordinateur. | ||
| + | * Configurez Motion (avec les [[:sudo | droits d' | ||
| + | * Installer Dropbox sur votre ordinateur comme indiqué ici : [[https://www.dropbox.com/install2]] | ||
| + | * Une fois l' | ||
| + | | ||
| - | Exemple | + | === La mise en route de la vidéosurveillance === |
| + | * Démarrez Dropbox sur votre ordinateur : | ||
| - | videodevice | + | < |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | < |
| + | |||
| + | <note tip> Vérifiez à cet instant que vos photographies sont bien enregistrées automatiquement dans le dossier « Dropbox ». si ce n'est pas le cas, vérifier votre fichier de configuration motion.conf. </ | ||
| + | |||
| + | Désormais, vos images enregistrées dans le dossier Dropbox sont automatiquement sauvegardées en lignes vers votre stockage Dropbox ! Il ne vous reste plus qu'à les consulter quand vous le souhaitez avec votre smartphone ! ;-) | ||
| + | |||
| + | ==== Autres méthodes ==== | ||
| + | |||
| + | Description à venir. | ||
| + | |||
| + | |||
| + | ===== Problèmes connus ===== | ||
| + | ==== Erreur de segmentation, | ||
| + | Si vous avez une erreur de segmentation au lancement, essayez avec : | ||
| + | |||
| + | | ||
| + | | ||
| + | Cette commande peux résoudre suur certaines machines , l' | ||
| + | // | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | ====Unable to find a palette format==== | ||
| + | Si votre webcam fonctionne avec d' | ||
| + | LD_PRELOAD=/ | ||
| + | | ||
| + | Attention sous Ubuntu 14.04 LTS la commande est la suivante | ||
| + | LD_PRELOAD=/ | ||
| + | | ||
| + | Sous Ubuntu 16.04 LTS pour une architecture 64bits la commande est la suivante | ||
| + | LD_PRELOAD=/ | ||
| ===== Voir aussi ===== | ===== Voir aussi ===== | ||
| - | * [[http://www.lavrsen.dk/twiki/ | + | * [[https://motion-project.github.io/index.html|Site officiel de Motion]] |
| - | * qmotion : | + | |
| - | * Kmotion avec interface web http:// | + | |
| ---- | ---- | ||
