Motion - Support Question 2014x 05x 06x 220454

Motion start errors

Question

Hello,

I installed the Motion package on my RPi (v2, with Debian) with a RPi camera using the instructions given at http://www.codeproject.com/Articles/665518/Raspberry-Pi-as-low-cost. When I run Motion, the camera light does not come on and I get bunch of errors. (See the full listing below).

I am not sure what to do? My RPi Camera works, because I can use camera functions (rapistill and rapivid) without any problem. Any help would be greatly appreciated.

Thank you.
=[-1242614944] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/mot$

[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "emulate_motion_$
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "output_normal"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "output_motion"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_new"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_moti$
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_video"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "locate"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "jpeg_filename"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_port"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_quality"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_motion"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_maxrate"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_localhos$
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_limit"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "control_port"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "control_localho$
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "control_html_ou$
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_image"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_mpeg"
[-1242512544] [ALR] [ALL] conf_cmdparse: Unknown config option "log_file"
[-1242512544] [NTC] [ALL] motion_startup: Using default log level (NTC) (6)
[-1242512544] [NTC] [ALL] motion_startup: Motion mmaltest Started
[-1242512544] [NTC] [ALL] motion_startup: Logging to syslog
[-1242512544] [NTC] [ALL] motion_startup: Using default log type (ALL)
[-1242512544] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
[-1242512544] [NTC] [ENC] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFOR$
[0] [NTC] [ALL] main: Thread 1 is from /etc/motion.conf
[0] [NTC] [ALL] main: Thread 1 is device: /dev/video1 input -1
[0] [NTC] [ALL] main: Stream port 0
[0] [NTC] [ALL] main: Waiting for threads to finish, pid: 6096
[1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video1 and input -1
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "gspca_zc3xx"
cap.card: "USB Camera (041e:403a)"
cap.bus_info: "usb-bcm2708_usb-1.2.2"
cap.capabilities=0x85000001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - READWRITE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] v4l2_select_input: name = "gspca_zc3xx", type 0x00000002, statu$
[1] [NTC] [VID] v4l2_select_input: - CAMERA
[1] [WRN] [VID] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1] [NTC] [VID] v4l2_set_pix_format: Config palette index 8 (MJPG) doesn't work.
[1] [NTC] [VID] v4l2_set_pix_format: Supported palettes:
[1] [NTC] [VID] v4l2_set_pix_format: (0) JPEG (JPEG)
[1] [NTC] [VID] v4l2_set_pix_format: 0 - JPEG (compressed : 1) (0x4745504a)
[1] [NTC] [VID] v4l2_set_pix_format Selected palette JPEG
[1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette JPEG (320x240)
[1] [NTC] [VID] v4l2_do_set_pix_format: Using palette JPEG (320x240) bytesperli$
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900, "Brightness", ran$
[1] [NTC] [VID] v4l2_scan_controls:     "Brightness", default 128, current 128
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901, "Contrast", range$
[1] [NTC] [VID] v4l2_scan_controls:     "Contrast", default 128, current 128
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980910, "Gamma", range 1,6
[1] [NTC] [VID] v4l2_scan_controls:     "Gamma", default 4, current 4
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980911, "Exposure", range$
[1] [NTC] [VID] v4l2_scan_controls:     "Exposure", default 2343, current 2343
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980912, "Gain, Automatic"$
[1] [NTC] [VID] vid_v4lx_start: Using V4L2
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [ERR] [VID] v4l2_next: VIDIOC_DQBUF:
[1] [ERR] [VID] v4l2_next: VIDIOC_DQBUF:
[1] [ERR] [VID] v4l2_next: VIDIOC_DQBUF:
[1] [ERR] [VID] v4l2_next: VIDIOC_DQBUF:
[1] [ERR] [VID] v4l2_next: VIDIOC_DQBUF:
[1] [ERR] [ALL] motion_init: Error capturing first image
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 3 items
[1] [ERR] [VID] v4l2_next: VIDIOC_DQBUF:
[1] [ERR] [ALL] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] vid_close: Closing video device /dev/video1
[1] [NTC] [ALL] motion_loop: End of event 1
[1] [NTC] [ALL] motion_loop: Thread exiting
[0] [NTC] [ALL] main: Threads finished
[0] [NTC] [ALL] main: Motion terminating
[-1242614944] [NTC] [ALL] motion_startup: Using default log type (ALL)
[-1242614944] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
[-1242614944] [NTC] [ENC] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFOR$
[0] [NTC] [ALL] main: Thread 1 is from /etc/motion.conf
[0] [NTC] [ALL] main: Thread 1 is device: /dev/video1 input -1
[0] [NTC] [ALL] main: Stream port 0
[0] [NTC] [ALL] main: Waiting for threads to finish, pid: 6155
[1] [NTC] [ALL] motion_init: Thread 1 started , motion detection Enabled
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video1 and input -1
[1] [ALR] [VID] vid_v4lx_start: Failed to open video device /dev/video1:
[1] [WRN] [ALL] motion_init: Could not fetch initial image from camera Motion c$
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 3 items
[1] [WRN] [ALL] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video1 and input -1
[1] [ALR] [VID] vid_v4lx_start: Failed to open video device /dev/video1:
[1] [WRN] [ALL] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video1 and input -1
[1] [ALR] [VID] vid_v4lx_start: Failed to open video device /dev/video1:
[1] [WRN] [ALL] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] vid_v4lx_start: Using videodevice /dev/video1 and input -1
[1] [ALR] [VID] vid_v4lx_start: Failed to open video device /dev/video1:=

Environment

Motion version: 3.2.12-3.4
ffmpeg version: 6:0.8.10-1+rpi1
Libraries: libavcodec53 (>= 6:0.8.3-1~) libavcodec-extra-53 (>= 6:0.8.6), libavformat53 (>= 6:0.8.3-1~), libavutil51 (>= 6:0.8.3-1~), libc6 (>= 2.13-28), libjpeg8 (>= 8c), libmysqlclient18 (>= 5.5.24+dfsg-1), libpq5, debconf (>= 0.5) debconf-2.0, adduser, debconf
Server OS: raspberry Debian
-- AthenaHattutash - 06 May 2014

Answer

edit motion.conf file (/usr/local/etc/motion.conf) and check settings. See named of variables, this may be changed it latest versions motion: webcam_maxrate = stream_maxrate webcam_port=stream_port...

-- SemenovAlexey - 08 May 2014

Yes, you are using old config with newever motion. Param names have been changed, so you need to update your config

-- TosiaraT - 12 Apr 2015
Topic revision: r4 - 12 Apr 2015, TosiaraT
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.