🙂 J'ai installé le programme motion de surveillance pour détecter et capturer des images ou vidéos à partir de la webcam et pour les transférer sur un serveur distant.
ffmpeg et wput sont bien installés et les autres paramètres sont bons
J'ai copié le fichier motion.conf (qui fonctionne avec Ubuntu) et quand je lance le programme avec le Terminal, ça retourne
cette dernière ligne " [1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video device "
[mabouca@maca ~]$ motion
[0] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "despeckle"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "gap"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "max_mpeg_time"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_all"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_normal"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_motion"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "ppm"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_new"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_motion"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "locate"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "jpeg_filename"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_port"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_quality"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_motion"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_maxrate"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_localhost"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_limit"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_port"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_localhost"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_html_output"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_image"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_snapshot"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_mpeg"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_timelapse"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_query"
[0] [NTC] [ALL] motion_startup: Using default log level (NTC) (6)
[0] [NTC] [ALL] motion_startup: Motion 3.3.0 Started
[0] [NTC] [ALL] motion_startup: Logging to syslog
[0] [NTC] [ALL] motion_startup: Using default log type (ALL)
[0] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
[0] [NTC] [ENC] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3488868 LIBAVFORMAT_BUILD 3481444
[0] [NTC] [ALL] main: Thread 1 is from /etc/motion/motion.conf
[0] [NTC] [ALL] main: Thread 1 is device: /dev/video0 input 8
[0] [NTC] [ALL] main: Stream port 0
[0] [NTC] [ALL] main: Waiting for threads to finish, pid: 6092
[1] [NTC] [ALL] motion_init: Thread 1 started
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input 8
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "CNF8140"
cap.bus_info: "usb-0000:00:1a.7-3"
cap.capabilities=0x04000001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [ERR] [VID] v4l2_select_input: Unable to query input 8. VIDIOC_ENUMINPUT, if you use a WEBCAM change input value in conf by -1:
[1] [NTC] [VID] vid_v4lx_start: Using V4L1
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [ERR] [ALL] motion_init: Error capturing first image
[1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] vid_close: Closing video device /dev/video0
[1] [WRN] [ALL] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input 8
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "CNF8140"
cap.bus_info: "usb-0000:00:1a.7-3"
cap.capabilities=0x04000001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [ERR] [VID] v4l2_select_input: Unable to query input 8. VIDIOC_ENUMINPUT, if you use a WEBCAM change input value in conf by -1:
[1] [NTC] [VID] vid_v4lx_start: Using V4L1
[1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] vid_close: Closing video device /dev/video0
[1] [WRN] [ALL] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input 8
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "CNF8140"
cap.bus_info: "usb-0000:00:1a.7-3"
cap.capabilities=0x04000001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [ERR] [VID] v4l2_select_input: Unable to query input 8. VIDIOC_ENUMINPUT, if you use a WEBCAM change input value in conf by -1:
[1] [NTC] [VID] vid_v4lx_start: Using V4L1
[1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] vid_close: Closing video device /dev/video0
[1] [WRN] [ALL] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input 8
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "CNF8140"
cap.bus_info: "usb-0000:00:1a.7-3"
cap.capabilities=0x04000001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [ERR] [VID] v4l2_select_input: Unable to query input 8. VIDIOC_ENUMINPUT, if you use a WEBCAM change input value in conf by -1:
[1] [NTC] [VID] vid_v4lx_start: Using V4L1
[1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] vid_close: Closing video device /dev/video0
[1] [NTC] [ALL] motion_loop: Video signal lost - Adding grey image
[1] [WRN] [ALL] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input 8
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "CNF8140"
cap.bus_info: "usb-0000:00:1a.7-3"
cap.capabilities=0x04000001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [ERR] [VID] v4l2_select_input: Unable to query input 8. VIDIOC_ENUMINPUT, if you use a WEBCAM change input value in conf by -1:
[1] [NTC] [VID] vid_v4lx_start: Using V4L1
[1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] vid_close: Closing video device /dev/video0
[1] [WRN] [ALL] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input 8
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "CNF8140"
cap.bus_info: "usb-0000:00:1a.7-3"
cap.capabilities=0x04000001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [ERR] [VID] v4l2_select_input: Unable to query input 8. VIDIOC_ENUMINPUT, if you use a WEBCAM change input value in conf by -1:
[1] [NTC] [VID] vid_v4lx_start: Using V4L1
[1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] vid_close: Closing video device /dev/video0
[1] [WRN] [ALL] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input 8
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "CNF8140"
cap.bus_info: "usb-0000:00:1a.7-3"
cap.capabilities=0x04000001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [ERR] [VID] v4l2_select_input: Unable to query input 8. VIDIOC_ENUMINPUT, if you use a WEBCAM change input value in conf by -1:
[1] [NTC] [VID] vid_v4lx_start: Using V4L1
[1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] vid_close: Closing video device /dev/video0
^Ccc[1] [NTC] [ALL] motion_loop: Thread exiting
[0] [NTC] [ALL] main: Threads finished
[0] [NTC] [ALL] main: Motion terminating
[mabouca@maca ~]$ cc
Je pourrais tester avec curl Ă la place de wput mais ne suis pas sur.
Pour installer curl il faut faire? [yum install curl] ou autre chose?