Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Help needed with 4.2 (Otto Gvert) 2. Re: Help needed with 4.2 (MrDave) 3. Re: Help needed with 4.2 (Tony Ross) ---------------------------------------------------------------------- Message: 1 Date: Tue, 18 Dec 2018 01:27:51 +0000 (UTC) From: Otto Gvert <stuffplac...@yahoo.com> To: Motion Discussion List <motion-user@lists.sourceforge.net> Subject: [Motion-user] Help needed with 4.2 Message-ID: <1766274028.1218083.1545096471...@mail.yahoo.com> Content-Type: text/plain; charset="utf-8" Get the below. Have modified the following: pid_file 0990 target_dir /home/bill/Videos/Test_motion vid_control_params 046d width 800 height 600 Just using Logitech Pro 9000 on laptop. Makes video as a .mkv item. Will only be doing the 1 camera. Have no idea how to deal with what is missing, Be gratefull for any help. oldcity @oldcity ~ $ motion start [0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /usr/local/etc/motion/motion.conf [0:motion] [NTC] [ALL] motion_startup: Logging to syslog [0:motion] [NTC] [ALL] motion_startup: Motion 4.2+git20181127-d8377cb Started [0:motion] [NTC] [ALL] motion_startup: Using default log type (ALL) [0:motion] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC) [0:motion] [NTC] [STR] webu_start_strm: Starting all camera streams on port 8081 [0:motion] [NTC] [STR] webu_start_strm: Unable to start stream for camera 0 [0:motion] [NTC] [STR] webu_start_ctrl: Starting webcontrol on port 8080 [0:motion] [NTC] [STR] webu_start_ctrl: Unable to start MHD [0:motion] [NTC] [ENC] ffmpeg_global_init: ffmpeg libavcodec version 56.60.100 libavformat version 56.40.101 [0:motion] [NTC] [ALL] translate_init: Language: English [0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 is from /usr/local/etc/motion/motion.conf [0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0 [0:motion] [NTC] [ALL] main: Waiting for threads to finish, pid: 6372 [1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection Enabled [1:ml1] [NTC] [VID] vid_start: Opening V4L2 device [1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1 [1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE [1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING [1:ml1] [NTC] [VID] v4l2_input_select: Name = "Camera 1"- CAMERA [1:ml1] [ERR] [VID] v4l2_input_select: Error selecting input 0 VIDIOC_S_INPUT: Device or resource busy [1:ml1] [ERR] [VID] vid_start: V4L2 device failed to open [1:ml1] [WRN] [ALL] motion_init: Could not fetch initial image from camera [1:ml1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s) [1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items [1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 4 items [1:ml1] [WRN] [ALL] mlp_retry: Retrying until successful connection with camera [1:ml1] [NTC] [VID] vid_start: Opening V4L2 device [1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1 [1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE [1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING [1:ml1] [NTC] [VID] v4l2_input_select: Name = "Camera 1"- CAMERA [1:ml1] [ERR] [VID] v4l2_input_select: Error selecting input 0 VIDIOC_S_INPUT: Device or resource busy [1:ml1] [ERR] [VID] vid_start: V4L2 device failed to open [1:ml1] [NTC] [ALL] motion_loop: Thread exiting [0:motion] [NTC] [ALL] main: Motion thread 1 restart -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Mon, 17 Dec 2018 19:55:57 -0700 From: MrDave <motionmrd...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Help needed with 4.2 Message-ID: <bd75ecc9-c531-6fac-3502-1ed2ce873...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" I would recommend starting with a fresh configuration file.? It looks like some of the revisions indicated will not work.? In particular the pid_file and vid_control_params revisions do not look like they would work. Next, I'd recommend rebooting the computer to ensure that there are not multiple instances of Motion running nor that any ports or devices got stuck. Finally, make sure that no other program is using the webcam. Only one program at? time can access a webcam.? The message indicating "device busy" means that some other program is using the webcam. Also, for additional reference, there are a few intro videos available for 4.2 .? They use as a sample a netcam so you would need to revise 'videodevice' where ever in the videos it is revising the 'netcam_url' https://www.youtube.com/channel/UCZpOjUMnc-uO3qIyZAD_4lg/videos Also make sure to consult the motion guide. ??? ??? https://motion-project.github.io/motion_config.html Dave On 12/17/2018 6:27 PM, Otto Gvert via Motion-user wrote: > > Get the below. Have modified the following: > > > pid_file 0990 > target_dir /home/bill/Videos/Test_motion > vid_control_params 046d > width 800 > height 600 > > Just using Logitech Pro 9000 on laptop. > > Makes video as a .mkv item. > > Will only be doing the 1 camera. > > Have no idea how to deal with what is missing, > > Be gratefull for any help. > oldcity > > > > > @oldcity ~ $ motion start > [0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file > /usr/local/etc/motion/motion.conf > [0:motion] [NTC] [ALL] motion_startup: Logging to syslog > [0:motion] [NTC] [ALL] motion_startup: Motion 4.2+git20181127-d8377cb > Started > [0:motion] [NTC] [ALL] motion_startup: Using default log type (ALL) > [0:motion] [NTC] [ALL] motion_startup: Using log type (ALL) log level > (NTC) > [0:motion] [NTC] [STR] webu_start_strm: Starting all camera streams on > port 8081 > [0:motion] [NTC] [STR] webu_start_strm: Unable to start stream for > camera 0 > [0:motion] [NTC] [STR] webu_start_ctrl: Starting webcontrol on port 8080 > [0:motion] [NTC] [STR] webu_start_ctrl: Unable to start MHD > [0:motion] [NTC] [ENC] ffmpeg_global_init: ffmpeg libavcodec version > 56.60.100 libavformat version 56.40.101 > [0:motion] [NTC] [ALL] translate_init: Language: English > [0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 is from > /usr/local/etc/motion/motion.conf > [0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 Camera Name: > (null) Device: /dev/video0 > [0:motion] [NTC] [ALL] main: Waiting for threads to finish, pid: 6372 > [1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection > Enabled > [1:ml1] [NTC] [VID] vid_start: Opening V4L2 device > [1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 > and input -1 > [1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE > [1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING > [1:ml1] [NTC] [VID] v4l2_input_select: Name = "Camera 1"- CAMERA > [1:ml1] [ERR] [VID] v4l2_input_select: Error selecting input 0 > VIDIOC_S_INPUT: Device or resource busy > [1:ml1] [ERR] [VID] vid_start: V4L2 device failed to open > [1:ml1] [WRN] [ALL] motion_init: Could not fetch initial image from > camera > [1:ml1] [WRN] [ALL] motion_init: Motion continues using width and > height from config file(s) > [1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to > 1 items > [1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to > 4 items > [1:ml1] [WRN] [ALL] mlp_retry: Retrying until successful connection > with camera > [1:ml1] [NTC] [VID] vid_start: Opening V4L2 device > [1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 > and input -1 > [1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE > [1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING > [1:ml1] [NTC] [VID] v4l2_input_select: Name = "Camera 1"- CAMERA > [1:ml1] [ERR] [VID] v4l2_input_select: Error selecting input 0 > VIDIOC_S_INPUT: Device or resource busy > [1:ml1] [ERR] [VID] vid_start: V4L2 device failed to open > [1:ml1] [NTC] [ALL] motion_loop: Thread exiting > [0:motion] [NTC] [ALL] main: Motion thread 1 restart > > > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Mon, 17 Dec 2018 19:23:33 -0800 From: Tony Ross <ynots...@yahoo.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Help needed with 4.2 Message-ID: <977c0573-77d9-4bc0-37a6-5dd6fdbbb...@yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed There seems to be the issue. One might "killall motion" prior to starting a new instance: ... On 12/17/18 5:27 PM, Otto Gvert via Motion-user wrote: > [1:ml1] [ERR] [VID] v4l2_input_select: Error selecting input 0 > VIDIOC_S_INPUT: Device or resource busy > [1:ml1] [ERR] [VID] vid_start: V4L2 device failed to open ... ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 150, Issue 6 *******************************************